PrerequisitesWe are using standard interface naming to demonstrate the Concepts. See the article Dell Networking S-Series: Basic Interface Configuration - SONiC 4.0 for more information regarding interface naming |
Below is a Sample MCLAG Topology. See article Dell EMC Networking SONiC Multi-Chassis Link Aggregation Group (MCLAG) Terminology to understand more regarding MCLAG terminologies. |
Configuration | Explanation |
---|---|
admin@DELLSONiC:~$ sonic-cli |
Log in to Dell MF-CLI |
DELLSONiC# configure |
Enter configuration mode. |
DELLSONiC(config)# interface <Portchannel/Ethernet> |
Enter Interface or Port Channel. |
DELLSONiC(conf-if-XXX)# switchport trunk allowed Vlan <Vlan-id/all> |
Configure MCLAG Peer Link as a trunk link. You may also configure the specific VLAN. |
DELLSONiC(conf-if-XXX)# no shutdown |
Bring the interface up. |
Configuration | Explanation |
---|---|
DELLSONiC# configure |
Enter configuration mode. |
DELLSONiC(config)# mclag domain <Domain ID> |
Configure MCLAG domain ID. The Domain ID can be 1-4095. |
Define MCLAG Peer link An MCLAG Peer link Connects MCLAG peer switches and acts as data backup path between MCLAG peers. |
|
DELLSONiC(config-mclag-domain-<ID>)# peer-link <Interface Number> |
Configure the MCLAG Peer link interface. This can be a single interface or PortChannel. |
Configure MCLAG Peer keepalive link MCLAG Keepalive link is a Layer 3 link that connects MCLAG peer switches. It carries periodic heartbeat messages between MCLAG peers. |
|
DELLSONiC(config-mclag-domain-<ID>)# source-ip <IP address> |
Configure the MCLAG Peer keepalive link in the switch end. |
DELLSONiC(config-mclag-domain-<ID>)# peer-ip <IP address> |
Configure the MCLAG Peer keepalive link in peer switch end. |
Configure MCLAG system MAC address (Optional) Dell Technologies recommends configuring a system MAC address to prevent the MCLAG port channel flapping on the standby peer when the active peer reboots. |
|
DELLSONiC(config-mclag-domain-<ID>)# mclag-system-mac nn:nn:nn:nn:nn:nn |
Configure same MCLAG system mac address on both MCLAG peers. If we do not configure a system MAC address, the MAC address of the active peer is used as the MCLAG MAC address across both peers. |
(Optional) Configure MCLAG Gateway MAC See article How to Configure a Gateway MAC Address in Dell EMC Networking SONiC MF-CLI for more details on gateway-mac. |
|
DELLSONiC(config-mclag-domain-<ID>)# mclag gateway-mac xx:xx:xx:xx:xx:xx |
Configure the gateway mac address |
Configuration | Explanation |
---|---|
DELLSONiC# configure |
Enter configuration mode. |
DELLSONiC(config)# interface PortChannel X |
Configure MCLAG PortChannel |
DELLSONiC(conf-if-poX)# mclag <Domain ID> |
Define the PortChannel under MCLAG Domain. |
DELLSONiC(conf-if-poX )# no shutdown |
Bring the PortChannel up. |
Configure The interfaces as part of PortChannel |
|
DELLSONiC(config)# interface range Eth 1/X-1/Y |
Configure interface/ range of interfaces in the PortChannel. |
DELLSONiC(conf-if-range-eth**)# channel-group <Portchannel number> |
Configure the PortChannel number. |
ELLSONiC(conf-if-range-eth**)# no shutdown |
Bring the interfaces up. |
MCLAG Peer switch 1 (Hostname: MCLAGSW1) | MCLAG Peer switch 2 (Hostname: MCLAGSW2) |
---|---|
Logging to Dell MF-CLI admin@MCLAGSW1:~$ sonic-cli MCLAGSW1# |
Logging to Dell MF-CLI admin@MCLAGSW2:~$ sonic-cli MCLAGSW2# |
Configure a Trunk port/PortChannel for MCLAG Peer Link MCLAGSW1# configure MCLAGSW1(config)# interface Eth 1/1 MCLAGSW1(conf-if-Eth1/1)# switchport trunk allowed Vlan all MCLAGSW1(conf-if-Eth1/1)# no shutdown MCLAGSW1(conf-if-Eth1/1)# exit MCLAGSW1(config)# exit |
Configure a Trunk port/PortChannel for MCLAG Peer Link MCLAGSW2# configure MCLAGSW2(config)# interface Eth 1/1 MCLAGSW2(conf-if-Eth1/1)# switchport trunk allowed Vlan all MCLAGSW2(conf-if-Eth1/1)# no shutdown MCLAGSW2(conf-if-Eth1/1)# exit MCLAGSW2(config)# exit |
Configure MCLAG Domain MCLAGSW1# configure MCLAGSW1(config)# mclag domain 1 MCLAGSW1(config-mclag-domain-1)# peer-link Eth 1/1 MCLAGSW1(config-mclag-domain-1)# source-ip 192.168.1.1 MCLAGSW1(config-mclag-domain-1)# peer-ip 192.168.1.2 MCLAGSW1(config-mclag-domain-1)# mclag-system-mac 00:11:22:33:44:55 MCLAGSW1(config-mclag-domain-1)# exit MCLAGSW1(config)# exit |
Configure MCLAG Domain MCLAGSW2# configure MCLAGSW2(config)# mclag domain 1 MCLAGSW2(config-mclag-domain-1)# peer-link Eth 1/1 MCLAGSW2(config-mclag-domain-1)# source-ip 192.168.1.2 MCLAGSW2(config-mclag-domain-1)# peer-ip 192.168.1.1 MCLAGSW2(config-mclag-domain-1)# mclag-system-mac 00:11:22:33:44:55 MCLAGSW2(config-mclag-domain-1)# exit MCLAGSW2(config)# exit |
Configuring MCLAG PortChannel MCLAGSW1# configure MCLAGSW1(config)# interface PortChannel 1 MCLAGSW1(conf-if-po1)# mclag 1 MCLAGSW1(conf-if-po1)# no shutdown MCLAGSW1(conf-if-po1)# exit MCLAGSW1(config)# Configure The interface Eth 1/8 as part of PortChannel 1 MCLAGSW1(config)# interface range Eth 1/8 %Info: Configuring only existing interfaces in range MCLAGSW1(conf-if-range-eth**)# channel-group 1 MCLAGSW1(conf-if-range-eth**)# no shutdown MCLAGSW1(conf-if-range-eth**)# exit MCLAGSW1(config)# exit |
Configuring MCLAG PortChannel MCLAGSW2# configure MCLAGSW2(config)# interface PortChannel 1 MCLAGSW2(conf-if-po1)# mclag 1 MCLAGSW2(conf-if-po1)# no shutdown MCLAGSW2(conf-if-po1)# exit MCLAGSW2(config)# Configure The interface Eth 1/8 as part of PortChannel 1 MCLAGSW2(config)# interface range Eth 1/8 %Info: Configuring only existing interfaces in range MCLAGSW2(conf-if-range-eth**)# channel-group 1 MCLAGSW2(conf-if-range-eth**)# no shutdown MCLAGSW2(conf-if-range-eth**)# exit MCLAGSW2(config)# exit |
MCLAGSW1# show mclag brief Domain ID : 1 Role : active Session Status : up Peer Link Status : up Source Address : 192.168.1.1 Peer Address : 192.168.1.2 Session Vrf : default Peer Link : Eth1/1 Keepalive Interval : 1 secs Session Timeout : 30 secs Delay Restore : 300 secs System Mac : 0c:de:4c:81:00:0a Mclag System Mac : 00:11:22:33:44:55 Number of MLAG Interfaces:1 ----------------------------------------------------------- MLAG Interface Local/Remote Status ----------------------------------------------------------- PortChannel1 up/up |
MCLAGSW2# show mclag brief Domain ID : 1 Role : standby Session Status : up Peer Link Status : up Source Address : 192.168.1.2 Peer Address : 192.168.1.1 Session Vrf : default Peer Link : Eth1/1 Keepalive Interval : 1 secs Session Timeout : 30 secs Delay Restore : 300 secs System Mac : 0c:de:4c:81:00:0a Mclag System Mac : 00:11:22:33:44:55 Number of MLAG Interfaces:1 ----------------------------------------------------------- MLAG Interface Local/Remote Status ----------------------------------------------------------- PortChannel1 up/up |