When an interface is in switchport mode, it passes multiple tagged VLANs, or one untagged VLAN. It cannot accept both untagged and tagged traffic.
To configure switchport:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#switchport
To remove switchport:
FTOS(conf-if-te-0/5)#no switchport
When an interface is in hybrid switchport mode, the interface may pass both untagged and tagged VLANs.
To configure hybrid switchport:
FTOS#config FTOS(conf)#Interface Te0/5 FTOS(conf-if-te-0/5)#portmode hybrid FTOS(conf-if-te-0/5)#switchport
To remove hybrid switchport:
FTOS(conf-if-te-0/5)#no switchport FTOS(conf-if-te-0/5)#no portmode hybrid
To create a VLAN, input the following commands. This example creates VLANs 414 and 515.
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#exit FTOS(conf)#Interface Vlan 515
To add a VLAN to an interface untagged, input the following commands:
FTOS#config FTOS(conf)#Interface Vlan 414 FTOS(conf-if-vl-414)#untagged te0/5
To add a VLAN to an interface with an 802.1Q tag, input the following command:
FTOS(conf-if-vl-414)#tagged te0/9
To apply multiple VLANs to an interface:
FTOS(conf)#interface range Vlan 414 – 515 % Warning: interface-range ignores Non-existing ports (not configured).
To apply the VLAN to a range of interfaces:
FTOS(conf-if-vl-414)#tagged te0/5-10
To remove the VLAN from the interface:
FTOS(conf-if-vl-414)#no tagged te0/5-10
show vlan |
Shows the existing VLANs and their ports |
show run interface te0/5 |
Shows configuration of Interface te0/5 |
show run interface vlan 414 |
Shows configuration of VLAN 414 |
show interface switchport te0/5 |
Shows the tagged and untagged VLANs on a port |