This article explains how interfaces can be configured at Layer 2 of the OSI model.
Interfaces placed into "switchport" mode alone can pass one of the following types of traffic:
Command |
Purpose |
FTOS# configure |
Enter configuration mode. |
FTOS(conf)# interface gi 0/1 |
Enter the specific physical interface. |
FTOS(conf-if-gi-0/1)# switchport |
Enable Layer 2 switchport mode. Interface will automatically be added to the Default VLAN and pass untagged traffic. |
FTOS(conf-if-gi-0/1)# no shutdown |
Enable the interface. |
Hybrid mode plus switchport mode
The native or untagged VLAN on the connecting switch interface should always match for proper switch management traffic to pass successfully.
Command |
Purpose |
FTOS# configure |
Enter configuration mode. |
FTOS(conf)# interface gi 0/1 |
Enter the specific physical interface. |
FTOS(conf-if-gi-0/1)# portmode hybrid |
Only required if the interface must pass both untagged and tagged traffic. Must be configured prior to setting all Layer 2 configurations. Switchport mode must be removed before placing into hybrid mode. |
FTOS(conf-if-gi-0/1)# switchport |
Enable Layer 2 switchport mode. Interface will automatically be added to the Default VLAN and pass untagged traffic. |
FTOS(conf-if-gi-0/1)# no shutdown |
Enable the interface. |
Command |
Purpose |
FTOS# configure |
Enter configuration mode. |
FTOS(conf)# interface gi 0/1 |
Enter interface configuration mode. |
FTOS(config-if-gi-0/1)# no switchport |
Disable Layer 2 switchport mode. Interface must only be in default VLAN as untagged in order to remove. |
FTOS(config-if-gi-0/1)# no portmode hybrid |
Disable hybrid mode. Layer 2 switchport mode must be disabled prior to removing hybrid mode. |