Overview of Layer Modes
On all systems running FTOS, you can place physical interfaces, port channels, and VLANs in Layer 2
mode or Layer 3 mode.
By default, VLANs are in Layer 2 mode.
Table 19-1. Interfaces Types
Type of Interface
10/100/1000 Ethernet, Gigabit
Ethernet, 10 Gigabit Ethernet
SONET (PPP encapsulation)
Management
Loopback
Null interface
Port Channel
VLAN
Configure Layer 2 (Data Link) Mode
switchport
Use the
individual interface. The user can not configure switching or Layer 2 protocols such as spanning tree
protocol on an interface unless the interface has been set to Layer 2 mode.
Figure 19-4
Figure 19-4. show config Command Example of a Layer 2 Interface
FTOS(conf-if)#show config
!
interface Port-channel 1
no ip address
switchport
no shutdown
FTOS(conf-if)#
To configure an interface in Layer 2 mode, use these commands in the INTERFACE mode:
Command Syntax
no shutdown
switchport
|
Interfaces
378
Possible
Modes
Layer 2
Layer 3
Layer 3
n/a
Layer 3
n/a
Layer 2
Layer 3
Layer 2
Layer 3
command in INTERFACE mode to enable Layer 2 data transmissions through an
displays the basic configuration found in a Layer 2 interface.
Command Mode
INTERFACE
INTERFACE
Requires
Creation
Default State
No
Shutdown (disabled)
No
Shutdown (disabled)
No
Shutdown (disabled)
Yes
No shutdown (enabled)
No
Enabled
Yes
Shutdown (disabled)
Yes, except for the
No shutdown (active for Layer 2)
default VLAN
Shutdown (disabled for Layer 3)
Purpose
Enable the interface.
Place the interface in Layer 2 (switching) mode.