OcNOS-SP : Layer 3 Guide : Layer 3 Unicast Configuration Guide : Hybrid Switch Router Configuration : Configuring Layer 3 Interfaces
Configuring Layer 3 Interfaces
For the Hybrid Switch Router, it is important to understand that by default, all interfaces in OcNOS are L3 ports. If a port has been configured as L2, then use the no switchport command to make it a L3 port.
For example:
 
#configure terminal
Enter the Configure mode.
(config)#interface eth3
Specify an interface to configure and enter the Interface mode.
(config-if)#no switchport
Configure eth3 as a Layer 3 port.
(config-if)#commit
Commit the candidate configuration to the running configuration
(config-if)#exit
Exit interface mode
In the Hybrid Switch Router mode, if a VLAN is configured, a Layer 3 interface based on the bridge-group number and VLAN ID is created. This Layer 3 interface is advertised to all the Layer 3 protocols. For example:
 
#configure terminal
Enter the Configure mode.
(config)#bridge 1 protocol mstp
Creating bridge.
(config)#vlan database
Enter the VLAN configure mode.
(config-vlan)#vlan 2 bridge 1
Enable VLAN 2 on bridge 1.
(config-vlan)#commit
Commit the candidate configuration to the running configuration
(config-vlan)#exit
Exit VLAN configure mode
The last step in the example above show an interface given a name with the following format:
vlanXX.YYYY
Where XX is the bridge ID, and YYYY is the VLAN ID,
For example, the name, vlan1.3 indicates that VLAN IP’s interface is in VLAN 3, and bridge-group 1.
Last modified date: 10/16/2023