Inter-VLAN Communication on a Multilayer Switch Through a Switch Virtual Interface
Configuring Inter-VLAN Communication on an L3 Switch
Switch9300(config)# interface vlan 1 |
Creates a virtual interface for VLAN 1 and enters interface configuration mode |
Switch9300(config-if)# ip address 172.16.1.1 255.255.255.0 |
Assigns an IP address and netmask |
Switch9300(config-if)# no shutdown |
Enables the interface |
Switch9300(config)# interface vlan 10 |
Creates a virtual interface for VLAN 10 and enters interface configuration mode |
Switch9300(config-if)# ip address 172.16.10.1 255.255.255.0 |
Assigns an IP address and netmask |
Switch9300(config-if)# no shutdown |
Enables the interface |
Switch9300(config)# interface vlan 20 |
Creates a virtual interface for VLAN 20 and enters interface configuration mode |
Switch9300(config-if)# ip address 172.16.20.1 255.255.255.0 |
Assigns an IP address and netmask |
Switch9300(config-if)# no shutdown |
Enables the interface |
Switch9300(config-if)# exit |
Returns to global configuration mode |
Switch9300(config)# ip routing |
Enables routing on the switch |
Removing L2 Switchport Capability of an Interface on an L3 Switch
Switch9300(config)# interface gigabitethernet 0/1 |
Moves to interface configuration mode |
Switch9300(config-if)# no switchport |
Creates a Layer 3 port on the switch |