- 建立VLAN
RouterA
configure vlan default delete ports all
create vlan V10
configure vlan V10 tag 10
configure vlan V10 add ports 1-10
configure vlan V10 ipaddress 192.168.1.252/24
create vlan V20
configure vlan V20 tag 20
configure vlan V20 add ports 11-20
configure vlan V20 paddress 192.168.2.252/24
create vlan V30
configure vlan V30 tag 30
configure vlan V30 add ports 24
configure vlan V30 ipaddress 192.168.3.252/24
create vlan ISC
enable sharing 21 group 21,22 lacp
configure vlan ISC tag 3000
configure vlan ISC add ports 21 tag
configure vlan ISC ipaddress 10.0.0.1/30
RouterB
configure vlan default delete ports all
create vlan V10
configure vlan V10 tag 10
configure vlan V10 add ports 1-10
configure vlan V10 ipaddress 192.168.1.253/24
create vlan V20
configure vlan V20 tag 20
configure vlan V20 add ports 11-20
configure vlan V20 paddress 192.168.2.253/24
create vlan V30
configure vlan V30 tag 30
configure vlan V30 add ports 24
configure vlan V30 ipaddress 192.168.3.253/24
create vlan ISC
enable sharing 21 group 21,22 lacp
configure vlan ISC tag 3000
configure vlan ISC add ports 21 tag
configure vlan ISC ipaddress 10.0.0.2/30
- 啟用Routing
enable ipforwarding vlan V10
enable ipforwarding vlan V20
enable ipforwarding vlan V30
configure iproute add default 192.168.3.1
兩邊router都要啟用routing,但ISC vlan不用加入routing。
- 設定MLAG Peer
RouterA
create mlag peer "RouterB"
configure mlag peer "RouterB" ipaddress 10.0.0.2
RouterB
create mlag peer "RouterA"
configure mlag peer "RouterA" ipaddress 10.0.0.1
- 設定MLAG Port
RouterA
enable sharing 1 grouping 1 lacp
enable mlag port 1 peer "RouterB" id 1
enable sharing 11 grouping 11 lacp
enable mlag port 11 peer "RouterB" id 11
enable sharing 24 grouping 24 lacp
enable mlag port 24 peer "RouterB" id 24
RouterB
enable sharing 1 grouping 1 lacp
enable mlag port 1 peer "RouterA" id 1
enable sharing 11 grouping 11 lacp
enable mlag port 11 peer "RouterA" id 11
enable sharing 24 grouping 24 lacp
enable mlag port 24 peer "RouterA" id 24
- 增加ISC Port所對應的VLAN TAG
configure vlan V10 add port 21 tag
configure vlan V20 add port 21 tag
configure vlan V30 add port 21 tag
兩邊Router都要做。
- Edge Switch設定LACP與上層MLAG port對接
enable sharing 1 group 1,2 lacp
這範例Edge Switch是以第1,2 port組成lacp group,與上層Core Switch的MLAG port對接。
由於MLAG的部分順子採用lacp,故Edge Switch一樣要用lacp才能對應。
- 架設VRRP
RouterA
create vrrp vlan V10 vrid 1
configure vrrp vlan V10 vrid 1 add 192.168.1.254
configure vrrp vlan V10 vrid 1 priority 150
enable vrrp vlan V10 vrid 1
create vrrp vlan V20 vrid 1
configure vrrp vlan V20 vrid 1 add 192.168.2.254
configure vrrp vlan V10 vrid 1 priority 150
enable vrrp vlan V20 vrid 1
create vrrp vlan V30 vrid 1
configure vrrp vlan V30 vrid 1 add 192.168.3.254
configure vrrp vlan V30 vrid 1 priority 150
enable vrrp vlan V30 vrid 1
RouterB
create vrrp vlan V10 vrid 1
configure vrrp vlan V10 vrid 1 add 192.168.1.254
enable vrrp vlan V10 vrid 1
create vrrp vlan V20 vrid 1
configure vrrp vlan V20 vrid 1 add 192.168.2.254
enable vrrp vlan V20 vrid 1
create vrrp vlan V30 vrid 1
configure vrrp vlan V30 vrid 1 add 192.168.3.254
enable vrrp vlan V30 vrid 1