Port-Channel (Ether-Channel)

ccie-data-center
Bundling links into one logical interface on NX-OS with static port-channels and LACP, covering L3 port-channels and MC-LAG.
Published

May 7, 2022

Port-Channel: Static LAG

Static LAG is one method of making a link aggregation by forcing member ports to be part of the LAG without any negotiation. This is prune to STP loop if LAG fails.

N9K01# configure terminal
N9K01(config)# feature lacp
N9K01(config)# interface ethernet 1/1-2
N9K01(config-if-range)# channel-group 1 mode on

L3 Port-Channel

You can also bundle L3 interfaces to together. It does not require the other side also to be L3 as LACP is independent of the port mode. (Do not confuse this with LACP combability parameters wherein the parameters must match locally on the switch for different interfaces).

N9K01# configure terminal
N9K01(config)# feature lacp
N9K01(config)# interface ethernet 1/1-2
N9K01(config-if-range)# no switchport
N9K01(config-if-range)# channel-group 1 mode active

MultiChassis LAG (MCLAG)

Our overall point is to add more redundancy to the network. However, having a single switch is a single point of failure. To remove the single failure on the access side of the network, we connect the server to two different switches (chassis). The following is different technologies used to provide redundancy at the chassis level:

  • Cisco StackWise
  • Virtual Switching System
  • Virtual Port Channel (vPC)

The goal with MCLAG is make the server think that it is multihomed to a single switch. For that to work, switches must synchronize their control plane amongst them while forwarding the traffic in and out the member ports on both chassis.

Port-Channel workshop

Port-Channel Workshop

Configuration

N9K01

feature lacp
interface ethernet 1/1-2
channel-group 1 mode active
interface port-channel 1
  switchport mode trunk
  spanning-tree port type network
interface ethernet 1/6-7
channel-group 2 mode active
interface port-channel 2
  switchport mode access
  spanning-tree port type edge
interface ethernet 1/3-4
no switchport
  no shutdown
channel-group 3 mode active
interface port-channel 3
  ip address 192.168.1.0/31

N9K02

feature lacp
interface ethernet 1/1-2
channel-group 1 mode passive
interface port-channel 1
  switchport mode trunk
  spanning-tree port type network
interface ethernet 1/6-7
channel-group 2 mode active
interface port-channel 2
  switchport mode access
  spanning-tree port type edge

CSR01

interface port-channel 3
interface range gigabitEthernet 1-2
 channel-group 1 mode passive
interface port-channel 3
 ip address 192.168.1.1 255.255.255.254

Windows

NIC Teaming - Local Server

NIC Teaming - Add to New Team

NIC Teaming - LACP Dynamic

NIC Teaming - LACP OK

Verification

N9K01(config)# show port-channel summary
Flags:  D - Down        P - Up in port-channel (members)
        I - Individual  H - Hot-standby (LACP only)
        s - Suspended   r - Module-removed
        b - BFD Session Wait
        S - Switched    R - Routed
        U - Up (port-channel)
        p - Up in delay-lacp mode (member)
        M - Not in use. Min-links not met
--------------------------------------------------------------------------------
Group Port-       Type     Protocol  Member Ports
      Channel
--------------------------------------------------------------------------------
1     Po1(SU)     Eth      LACP      Eth1/1(P)    Eth1/2(P)
2     Po2(SU)     Eth      LACP      Eth1/6(P)    Eth1/7(P)
3     Po3(RU)     Eth      LACP      Eth1/3(P)    Eth1/4(P)

N9K01(config)# show lacp counters
NOTE: Clear lacp counters to get accurate statistics

------------------------------------------------------------------------------
                           LACPDUs                      Markers/Resp LACPDUs
Port              Sent              Recv                  Recv Sent  Pkts Err
------------------------------------------------------------------------------
port-channel1
Ethernet1/1        318                287                    0      0    0

Ethernet1/2        318                288                    0      0    0


port-channel2
Ethernet1/6        7876               267                    0      0    0

Ethernet1/7        7877               269                    0      0    0


port-channel3
Ethernet1/3        92                 39                     0      0    0

Ethernet1/4        90                 38                     0      0    0
Back to top