How to configure MLAG for Mellanox SN switches?

Sample configuration is at below:

########
DC-SW-1:
########
DC-SW-1 [standalone: master] # conf t

DC-SW-1 [standalone: master] # no interface mgmt0 dhcp

DC-SW-1 [standalone: master] # interface mgmt0 ip address 10.10.10.11 /24
DC-SW-1 [standalone: master] #   ip domain-list osinetworks.com
DC-SW-1 [standalone: master] #   ip name-server vrf vrf-default 10.11.11.11
DC-SW-1 [standalone: master] #   ip route vrf mgmt 0.0.0.0/0 10.10.10.1

DC-SW-1 [standalone: master] (config) # ip routing
DC-SW-1 [standalone: master] (config) # lacp
DC-SW-1 [standalone: master] (config) # dcb priority-flow-control enable force
DC-SW-1 [standalone: master] (config) # protocol mlag
DC-SW-1 [standalone: master] (config) # vlan 4000
DC-SW-1 [standalone: master] (config vlan 4000) # exit
DC-SW-1 [standalone: master] (config) # int port-channel 4000
DC-SW-1 [standalone: master] (config interface port-channel 4000) # exit
DC-SW-1 [standalone: master] (config) # int e 1/21 channel-group 4000 mode active
DC-SW-1 [standalone: master] (config) # int e 1/22 channel-group 4000 mode active
DC-SW-1 [standalone: master] (config) # int port-channel 4000
DC-SW-1 [standalone: master] (config interface port-channel 4000) # ipl 1
DC-SW-1 [standalone: master] (config interface port-channel 4000) # dcb priority-flow-control mode on force
DC-SW-1 [standalone: master] (config interface port-channel 4000) # exit
DC-SW-1 [standalone: master] (config) # int vlan 4000

DC-SW-1 [standalone: master] (config interface vlan 4000) #
DC-SW-1 [standalone: master] (config interface vlan 4000) # ip add 10.255.255.1 /30
DC-SW-1 [standalone: master] (config interface vlan 4000) # ipl 1 peer-address 10.255.255.2
DC-SW-1 [standalone: master] (config interface vlan 4000) # exit
DC-SW-1 [standalone: master] (config) # mlag-vip MLNX-MLAG ip 10.10.10.10 /24
DC-SW-1 [MLNX-MLAG: master] (config) # exit

DC-SW-1 [MLNX-MLAG: master] (config) # int e 1/21-1/22
DC-SW-1 [MLNX-MLAG: master] (config interface ethernet 1/21-1/22) # no shut
DC-SW-1 [MLNX-MLAG: master] (config interface ethernet 1/21-1/22) # exit

DC-SW-1 [MLNX-MLAG: master] (config) # interface mlag-port-channel 1

DC-SW-1 [MLNX-MLAG: master] (config interface mlag-port-channel 1)#

DC-SW-1 [MLNX-MLAG: master] (config interface ethernet 1/2)# mlag-channel-group 1 mode on

DC-SW-1 [MLNX-MLAG: master] (config interface mlag-port-channel 1)# no shutdown

DC-SW-1 [MLNX-MLAG: master] (config)# mlag

DC-SW-1 [MLNX-MLAG: master] (config mlag)# no shutdown
DC-SW-1 [MLNX-MLAG: master] (config) # exit
DC-SW-1 [MLNX-MLAG: master] # wr mem
DC-SW-1 [MLNX-MLAG: master] #

########
DC-SW-2:
########
DC-SW-2 [standalone: master] # conf t

DC-SW-1 [standalone: master] # no interface mgmt0 dhcpDC-SW-1 [standalone: master] # interface mgmt0 ip address 10.10.10.12 /24
DC-SW-1 [standalone: master] #   ip domain-list osinetworks.com
DC-SW-1 [standalone: master] #   ip name-server vrf vrf-default 10.11.11.11
DC-SW-1 [standalone: master] #   ip route vrf mgmt 0.0.0.0/0 10.10.10.1

DC-SW-2 [standalone: master] (config) # ip routing
DC-SW-2 [standalone: master] (config) # lacp
DC-SW-2 [standalone: master] (config) # dcb priority-flow-control enable force
DC-SW-2 [standalone: master] (config) # protocol mlag
DC-SW-2 [standalone: master] (config) # vlan 4000
DC-SW-2 [standalone: master] (config vlan 4000) # exit
DC-SW-2 [standalone: master] (config) # int port-channel 4000
DC-SW-2 [standalone: master] (config interface port-channel 4000) # exit
DC-SW-2 [standalone: master] (config) # int e 1/21 channel-group 4000 mode active
DC-SW-2 [standalone: master] (config) # int e 1/22 channel-group 4000 mode active
DC-SW-2 [standalone: master] (config) # int port-channel 4000
DC-SW-2 [standalone: master] (config interface port-channel 4000) # ipl 1
DC-SW-2 [standalone: master] (config interface port-channel 4000) # dcb priority-flow-control mode on force
DC-SW-2 [standalone: master] (config interface port-channel 4000) # exit
DC-SW-2 [standalone: master] (config) # int vlan 4000

DC-SW-2 [standalone: master] (config interface vlan 4000) #
DC-SW-2 [standalone: master] (config interface vlan 4000) # ip add 10.255.255.2 /30
DC-SW-2 [standalone: master] (config interface vlan 4000) # ipl 1 peer-address 10.255.255.1
DC-SW-2 [standalone: master] (config interface vlan 4000) # exit
DC-SW-2 [standalone: master] (config) # mlag-vip MLNX-MLAG
DC-SW-2 [[MLNX-MLAG: standby] (config) #

DC-SW-2 [MLNX-MLAG: standby] (config) # int e 1/21-1/22
DC-SW-2 [MLNX-MLAG: standby] (config interface ethernet 1/21-1/22) # no shut
DC-SW-2 [MLNX-MLAG: standby] (config interface ethernet 1/21-1/22) # exit

DC-SW-2 [MLNX-MLAG: standby] (config) # interface mlag-port-channel 1

DC-SW-2 [MLNX-MLAG: standby] (config interface mlag-port-channel 1)#

DC-SW-2 [MLNX-MLAG: standby] (config interface ethernet 1/2)# mlag-channel-group 1 mode on
DC-SW-2 [MLNX-MLAG: standby] (config interface mlag-port-channel 1)# no shutdown

DC-SW-1 [MLNX-MLAG: standby] (config)# mlagDC-SW-1 [MLNX-MLAG: standby] (config mlag)# no shutdown


DC-SW-2 [MLNX-MLAG: standby] (config) # exit
DC-SW-2 [MLNX-MLAG: standby] # wr mem
DC-SW-2 [MLNX-MLAG: standby] #

By:

Posted in:


Leave a comment