Multi-level M-LAG
After M-LAG is deployed between SW1 and SW2, M-LAG is deployed between SW3 and SW4. The two M-LAGs are connected. This deployment simplifies networking and allows more servers to be connected to the network in dual-homing mode. Before deploying multi-level M-LAG, configure Virtual Spanning Tree Protocol (V-STP).
The virtual ip will be work as the gateway of the server.
Multi-level M-LAG + VRRP configuration(CE device as example)
SW1:
interface eth-trunk x //connect to SW3 and SW4
mode lacp-static
port link-type trunk
port trunk allow-pass vlan x
trunkport 10ge x/0/a to x/0/b
dfs-group 1 m-lag 2
//no vrrp configuration others is same with Single-level M-LAG
SW2:
interface eth-trunk x //connect to SW3 and SW4
mode lacp-static
port link-type trunk
port trunk allow-pass vlan x
trunkport 10ge x/0/a to x/0/b
dfs-group 1 m-lag 2
//no vrrp configuration others is same with Single-level M-LAG
SW3:
stp mode rstp
stp root primary
stp bridge-address xxx-xxx-xxx // the MAC address of the DFS master device
stp v-stp enable
#
ip vpn-instance management
ipv4-family
route-distinguisher 100:1
vpn-target 111:1 both
#
interface Meth 0/0/0
ip binding vpn-instance management
ip address x.x.x.x x
#
dfs-group 1
source ip x.x.x.x //ip of meth0/0/0
priority 150
#
interface eth-trunk x //to SW4
trunkport 10ge 1/0/a to 1/0/b
mode lacp-static
peer-link 1
#
vlan x //service vlan
#
interface eth-trunk x //connect to SW1 and SW2
mode lacp-static
port link-type trunk
port trunk allow-pass vlan x
trunkport 10ge 1/0/a to 1/0/b
dfs-group 1 m-lag 1
#
interface vlanif x
ip address x.x.x.2 x
vrrp vrid 1 virtual-ip x.x.x.1
#
commit
SW4:
stp mode rstp
stp root primary
stp bridge-address xxx-xxx-xxx // the MAC address of the DFS master device
stp v-stp enable
#
ip vpn-instance management
ipv4-family
route-distinguisher 100:1
vpn-target 111:1 both
#
interface Meth 0/0/0
ip binding vpn-instance management
ip address x.x.x.x x
#
dfs-group 1
source ip x.x.x.x //ip of meth0/0/0
priority 120
#
interface eth-trunk x //to SW3
trunkport 10ge 1/0/a to 1/0/b
mode lacp-static
peer-link 1
#
vlan x //service vlan
#
interface eth-trunk x //to SW1 and SW2
mode lacp-static
port link-type trunk
port trunk allow-pass vlan x
trunkport 10ge 1/0/a to 1/0/b
dfs-group 1 m-lag 1
#
interface vlanif x
ip address x.x.x.3 x
vrrp vrid 1 virtual-ip x.x.x.1
#
commit