Figure 49-1. Example of Configuring Interfaces for Layer 2 Mode
R1(conf)# int range gi 1/1 - 4
R1(conf-if-gi-1/1-4)# switchport
R1(conf-if-gi-1/1-4)# no shutdown
R1(conf-if-gi-1/1-4)#show config
!
interface GigabitEthernet 1/1
no ip address
switchport
no shutdown
!
interface GigabitEthernet 1/2
no ip address
switchport
no shutdown
!
interface GigabitEthernet 1/3
no ip address
switchport
no shutdown
!
interface GigabitEthernet 1/4
no ip address
switchport
no shutdown
To configure the interfaces for Layer 2 and then enable them:
Step
Task
1
If the interface has been assigned an IP address,
remove it.
2
Place the interface in Layer 2 mode.
3
Enable the interface.
Verify that an interface is in Layer 2 mode and enabled using the
mode.
FTOS(conf-if-gi-1/1)#show config
!
interface GigabitEthernet 1/1
no ip address
switchport
no shutdown
FTOS(conf-if-gi-1/1)#
R1
1/3
1/4
1/1
1/2
3/2
3/1
3/3
3/4
R3
Command Syntax
no ip address
switchport
no shutdown
show config
R2
2/1
2/2
2/4
2/3
Command Mode
INTERFACE
INTERFACE
INTERFACE
command from INTERFACE
Spanning Tree Protocol (STP) | 1005