I want to enable inter-vlan routing on L3 switch. I have accomplished this by the following commands executed on Gig1/0/16 and Gig1/0/10 and setting the respective (192.168.x.1) as gateway on the devices belonging to vlan x. Then inter-vlan routing works.
ip routing interface vlan 30 ip address 192.168.30.1 255.255.255.0 no shutdown exit interface vlan 20 ip address 192.168.20.1 255.255.255.0 no shutdown exit interface vlan 10 ip address 192.168.10.1 255.255.255.0 no shutdown exit interface vlan 99 ip address 192.168.99.1 255.255.255.0 no shutdown exit
However in my script the professor uses an additional command
S1(config)#interface Fa0/40 S1(config-if)#no switchport S1(config-if)#ip address 10.30.30.1 255.255.255.0
As I understand it one port should become a routing port and this port can then be used to route traffic between vlans via the L3 switch. But which port should I take? I tried it with Gig1/0/16 but it did not work.