OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Link Aggregation Configuration : Static LAG Configuration
Static LAG Configuration
SW1
 
SW1#configure terminal
Enter configure mode.
SW1(config)# bridge 1 protocol mstp
Configure bridge 1 as MSTP bridge
SW1(config)# vlan database
Enter VLAN database mode.
SW1(config-vlan)# vlan 2-10 bridge 1 state enable
Configure a VLAN and add it to the bridge.
SW1(config-vlan)# commit
Commit the candidate configuration to the running Configuration.
SW1(config-vlan)# exit
Exit the VLAN configuration mode.
SW1(config)#lacp system-priority 20000
Set the system priority of this switch. This priority is used for determining the system that is responsible for resolving conflicts in the choice of aggregation groups. A lower numerical value has a higher priority.
SW1(config)#interface sa10
Enter into port channel interface sa10.
SW1(config-if)#switchport
Configure po10 as a layer 2 port.
SW1(config-if)#bridge-group 1
Associate bridge to an interface.
SW1(config-if)#switchport mode trunk
Configure port as a trunk.
SW1(config-if)#switchport trunk allowed vlan all
Allow all the VLANs on the po10 interface.
SW1(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW1(config-if)#exit
Exit interface mode.
SW1(config)#interface eth1
Enter interface mode.
SW1(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW1(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW1(config-if)#exit
Exit interface mode.
SW1(config)#interface eth2
Enter interface mode.
SW1(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW1(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW1(config-if)#exit
Exit interface mode.
SW1(config)#interface eth3
Enter interface mode.
SW1(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW1(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW1(config-if)#exit
Exit interface mode.
SW2
 
SW2#configure terminal
Enter configure mode.
SW2(config)# bridge 1 protocol mstp
Configure bridge 1 as MSTP bridge
SW2(config)# vlan database
Enter VLAN database mode.
SW2(config-vlan)# vlan 2-10 bridge 1 state enable
Configure a VLAN and add it to the bridge.
SW2(config-vlan)# commit
Commit the candidate configuration to the running Configuration.
SW2(config-vlan)# exit
Exit the VLAN configuration mode.
SW2(config-if)#bridge-group 1
Associate bridge to an interface.
SW2(config-if)#switchport mode trunk
Configure port as a trunk.
SW2(config-if)#switchport trunk allowed vlan all
Allow all the VLANs on the po10 interface.
SW2(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface eth2
Enter interface mode.
SW2(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW2(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface eth3
Enter interface mode.
SW2(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface eth4
Enter interface mode.
SW2(config-if)#static-channel-group 10
Add this interface to channel group 10 and enable link aggregation so that it can be selected for aggregation by the local system.
SW2(config-if)#commit
Commit the candidate configuration to the running
Configuration.
SW2(config-if)#exit
Exit interface mode.
Validation
#show static-channel-group
% Static Aggregator: sa10
% Member status:
eth1 up
eth2 up
eth3 up
 
#show running-config interface sa10
!
interface sa10
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
 
#show running-config interface eth1
!
interface eth1
static-channel-group 10
Last modified date: 10/12/2023