OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : Hybrid Switch Router Configuration : Configuring Layer 2 Interfaces
Configuring Layer 2 Interfaces
For the Hybrid Switch Router, it is important to understand that by default, all interfaces are configured as routed interfaces. To configure a Layer 2 interface (switched interface), you must explicitly configure this using the switchport command in the interface mode. For example:
 
#configure terminal
Enter the Configure mode.
(config)#bridge 1 protocol mstp
Create a MSTP bridge.
(config)#interface eth2
Specify an interface to configure and enter the Interface mode.
(config-if)#switchport
Configure eth2 as a Layer 2 port.
(config-if)#bridge-group 1
Associate interface to bridge 1.
(config-if)#no shutdown
Start interface.eth2
(config-if)#commit
Commit the candidate configuration to the running configuration
(config-if)#exit
Exit interface mode
Last modified date: 10/16/2023