LACP Force-Up
In an aggregated environment, there are some parameters that are set for member ports in lag. Whenever the parameters are set and conditions are satisfied, the port channel will be in SYNC. If force-up mode is enabled for the member port, the port channel will always be in SYNC even if the parameters are not set i.e. the traffic will not be affected and the port channel will never go down.
LACP Force-up with Dynamic LAG
Topology
Figure 13. LACP force-up with dynamic LAG
CE1
|
#configure terminal |
Enter configure mode. |
|
(config)#hostname CE1 |
Configure host name |
|
(config)#bridge 1 protocol rstp vlan-bridge |
Create a RSTP VLAN bridge on customer side |
|
(config)#vlan database |
Enter VLAN database mode. |
|
(config-vlan)#vlan 2-100 bridge 1 state enable |
Configure VLAN for the bridge |
|
(config-vlan)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-vlan)#exit |
Exit the VLAN configure mode. |
|
(config)#interface ge46 |
Enter interface mode |
|
(config-if)#switchport |
Make interface as Switchport |
|
(config-if)#bridge-group 1 |
Associate the interface to bridge |
|
(config-if)#switchport mode hybrid |
Configure the mode as hybrid |
|
(config-if)#switchport hybrid allowed vlan all |
Configure allowed VLAN all on the interface |
|
(config-if)#load-interval 30 |
Configure load period in multiple of 30 seconds |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
|
(config)#interface po1 |
Enter the interface mode |
|
(config-if)#switchport |
Make the interface as switch port |
|
(config-if)#bridge-group 1 |
Associate the interface to bridge |
|
(config-if)#switchport mode hybrid |
Configure the mode as hybrid |
|
(config-if)#switchport hybrid allowed vlan all |
Configure allowed vlan all for the hybrid mode |
|
(config-if)#load-interval 30 |
Configure load period in multiple of 30 seconds |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
|
(config)#interface ge44 |
Enter interface mode |
|
(config-if)#channel-group 1 mode active |
Adding interface to channel-group 1 |
|
(config-if)#exit |
Exit interface mode. |
|
(config)#interface ge45 |
Enter interface mode |
|
(config-if)#channel-group 1 mode active |
Adding interface to channel-group 1 |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
CE2
|
#configure terminal |
Enter configure mode. |
|
(config)#hostname CE2 |
Configure host name |
|
(config)#bridge 1 protocol provider-rstp edge |
Create provider rstp edge bridge |
|
(config)#vlan database |
Enter vlan database mode |
|
(config-vlan)#vlan 2-100 type customer bridge 1 state enable |
Configure customer VLAN for the bridge |
|
(config-vlan)#vlan 100 type service point-point bridge 1 state enable |
Configure service VLAN for the bridge |
|
(config)#exit |
Exit vlan database mode |
|
(config)#cvlan registration table map1 bridge 1 |
Creating registration table |
|
(config-cvlan-registration)#cvlan 2-100 svlan 100 |
Mapping cvlan to svlan |
|
(config-cvlan-registration)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-cvlan-registration)#exit |
Exit the cvlan registration mode. |
|
(config)#interface ge43 |
Enter interface mode |
|
(config-if)#switchport |
Make interface as Switchport |
|
(config-if)#bridge-group 1 |
Associate the interface to bridge |
|
(config-if)#switchport mode provider-network |
Configure the mode as provider-network |
|
(config-if)# switchport provider-network allowed vlan all |
Configure allowed VLAN all on the interface |
|
(config-if)#load-interval 30 |
Configure load period in multiple of 30 seconds |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
|
(config)#interface po1 |
Enter the interface mode |
|
(config-if)#switchport |
Make the interface as switch port |
|
(config-if)#bridge-group 1 |
Associate the interface with bridge group 1 |
|
(config-if)#switchport mode customer-edge hybrid |
Set the switching characteristics of this interface to customer-edge hybrid |
|
(config-if)#switchport customer-edge hybrid allowed vlan all |
Set the switching characteristics of this interface to customer-edge hybrid and allow vlan all |
|
(config-if)#switchport customer-edge vlan registration map1 |
Configuring the registration table mapping on lag interface |
|
(config-if)#load-interval 30 |
Configure load period in multiple of 30 seconds |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
|
(config)#interface ge44 |
Enter interface mode |
|
(config-if)#channel-group 1 mode active |
Adding interface to channel-group 1 |
|
(config-if)#lacp force-up |
Enable lacp force-up for the member port interface |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
|
(config)#interface ge45 |
Enter interface mode |
|
(config-if)#channel-group 1 mode active |
Adding interface to channel-group 1 |
|
(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
(config-if)#exit |
Exit the configure mode. |
Send L2 traffic with incremental source mac of 1000 and with VLAN 100 from CE1 and with incremental source mac of 1000 and with SVLAN 100(TPID 0x88a8), CVLAN 100 from CE2.
Validation
CE1
CE1#show mac address-table count bridge 1
MAC Entries for all vlans:
Dynamic Address Count: 2001
Static (User-defined) Unicast MAC Address Count: 0
Static (User-defined) Multicast MAC Address Count: 0
Total MAC Addresses in Use: 2001
CE1#show etherchannel summary
Aggregator po1 100001
Aggregator Type: Layer2
Admin Key: 0001 - Oper Key 0001
Link: ge44 (5043) sync: 1
Link: ge45 (5046) sync: 1
CE1#show interface counters rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
ge44 363.65 710252 772.76 1420506
ge45 363.63 710222 0.00 0
ge46 772.77 1420525 727.31 1420526
po1 728.56 1422971 774.09 1422966
CE2#show mac address-table count bridge 1
MAC Entries for all vlans:
Dynamic Address Count: 2001
Static (User-defined) Unicast MAC Address Count: 0
Static (User-defined) Multicast MAC Address Count: 0
Total MAC Addresses in Use: 2001
CE2#show interface counters rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
ge43 774.26 1423267 784.17 1361411
ge44 774.26 1423268 364.36 711634
ge45 0.00 0 364.36 711634
po1 774.26 1423267 728.71 1423267
CE2#show etherchannel summary
Aggregator po1 100001
Aggregator Type: Layer2
Admin Key: 0001 - Oper Key 0001
Link: ge44 (5020) sync: 1
Link: ge45 (5022) sync: 1
On server side (PE1) to make LAG down you can unconfigure the channel-group 1 configurations and verify force-up is getting enabled in PE2.
To simulate the force-up:
|
PE1(config)#interface ge44 |
Enter interface mode. |
|
PE1(config-if)#no channel-group |
Removing channel-group configurations from interface. |
|
PE1(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
PE1(config)#interface ge45 |
Enter interface mode. |
|
PE1(config-if)#no channel-group |
Removing channel-group configurations from interface. |
|
PE1(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
PE1(config-if)#exit |
Exit interface mode. |
PE2
PE2#show interface brief | include po1
po1 AGG 1 customer-edge up none 1g
PE2#show etherchannel summary
Aggregator po1 100001
Aggregator Type: Layer2
Admin Key: 0001 - Oper Key 0001
Link: ge44 (5020) sync: 0 (force-up)
Link: ge45 (5022) sync: 0
PE2#show etherchannel detail
Aggregator po1 100001
Aggregator Type: Layer2
Mac address: b8:6a:97:4d:65:d5
Admin Key: 0001 - Oper Key 0001
Actor LAG ID- 0x8000,b8-6a-97-28-a5-c0,0x0001
Receive link count: 0 - Transmit link count: 0
Individual: 0 - Ready: 1
Partner LAG ID- 0x0000,00-00-00-00-00-00,0x0000
Link: ge44 (5020) sync: 0 (force-up)
Link: ge45 (5022) sync: 0
Collector max delay: 5
To forward traffic from ge44 of PE1:
|
PE1(config)#interface ge44 |
Enter interface mode. |
|
PE1(config-if)#switchport |
Make the interface as switch port. |
|
PE1(config-if)#bridge-group 1 |
Associate the interface to bridge. |
|
PE1(config-if)#switchport mode hybrid |
Configure the mode as hybrid. |
|
PE1(config-if)#switchport hybrid allowed vlan all |
Configure allowed vlan all for the hybrid mode. |
|
PE1(config-if)#load-interval 30 |
Configure load period in multiple of 30 seconds. |
|
PE1(config-if)#commit |
Commit the candidate configuration to the running Configuration. |
|
PE1(config-if)#exit |
Exit the configure mode. |
PE2#show interface counters rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
ge43 774.25 1423257 784.17 1361400
ge44 774.25 1423258 728.71 1423257
ge45 0.00 0 0.00 0
po1 774.25 1423247 728.70 1423245
PE2#
PE1#show interface counters rate mbps
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx mbps | Rx pps | Tx mbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
ge44 657.67 1284505 640.77 1177884
ge45 0.00 0 0.00 0
ge46 772.71 1420426 603.08 1177886