SONiC MC-LAG
Configuration Example

SONiC (L2 MC-LAG)構築例

SONiCを利用したオープンネットワーク環境の構成例です。
MC-LAGによる高可用性ネットワークを実現し、AI/HPC基盤や大規模ストレージ環境における冗長化構成をシンプルに構築できます。


HOSTNAME設定
sudo config hostname LEAF-1
sudo config hostname LEAF-2
時刻マニュアル設定
sudo date -s "10/19 14:47 2023"
Thu Oct 19 14:47:00 UTC 2023
MC-LAG L2設定 シナリオ

1.PortChannel01~04を作成する
MC1 & MC2とも同様に設定する

sudo config portchannel add PortChannel01
sudo config portchannel add PortChannel02
sudo config portchannel add PortChannel03
sudo config portchannel add PortChannel04

2.PortChannel01~04に其々Ethernet portを付属させる
MC1 & MC2とも同様に設定する

sudo config portchannel member add PortChannel01 Ethernet48
sudo config portchannel member add PortChannel01 Ethernet52
sudo config portchannel member add PortChannel02 Ethernet0
sudo config portchannel member add PortChannel03 Ethernet1
sudo config portchannel member add PortChannel04 Ethernet2

3.PortChannel01~04をVlanに其々付属させる
MC1 & MC2とも同様に設定する

sudo config vlan add 10
sudo config vlan add 1
sudo config vlan member add 10 PortChannel01
sudo config vlan member add -u 1 PortChannel01
sudo config vlan member add -u 1 PortChannel02
sudo config vlan member add -u 1 PortChannel03
sudo config vlan member add -u 1 PortChannel04

4.MCLAGのDomainおよび、Vlanにunique-ipを設定する準備

MC1

sudo config mclag add 1 192.168.10.1 192.168.10.2 PortChannel01
sudo config mclag unique-ip add Vlan10
sudo config mclag member add 1 PortChannel02
sudo config mclag member add 1 PortChannel03
sudo config mclag member add 1 PortChannel04

MC2

sudo config mclag add 1 192.168.10.2 192.168.10.1 PortChannel01 sudo config mclag unique-ip add Vlan10 sudo config mclag member add 1 PortChannel02 sudo config mclag member add 1 PortChannel03 sudo config mclag member add 1 PortChannel04

5.MCLAGのVlanにunique-ipを設定する

MC1

sudo config interface ip add Vlan10 192.168.10.1/24

MC2

sudo config interface ip add Vlan10 192.168.10.2/24

設定が終了したら保存を必ず行います

上位MLAG Up Link設定 シナリオ

1.PortChannel作成とメンバーを含める
MC1 & MC2とも同様に設定する

sudo config portchannel add PortChannel05 sudo config portchannel member add PortChannel05 Ethernet46 sudo config portchannel member add PortChannel05 Ethernet47

2.Vlanにuntaggメンバーにする
MC1 & MC2とも同様に設定する

sudo config vlan member add -u 1 PortChannel05

3.MCLAGメンバーに含める
MC1 & MC2とも同様に設定する

sudo config mclag member add 1 PortChannel05

4.設定保存

sudo config save Existing files wil be overwritten, continue? [y/N]: y

上位のMCLAG装置でも同様にMCLAGのメンバーに含めます

Vlan2にport-channel6,7,8追加シナリオ

1.PortChannel作成とメンバーを含める
MC1 & MC2とも同様に設定する

sudo config vlan add 2 sudo config portchannel add PortChannel06 sudo config portchannel add PortChannel07 sudo config portchannel add PortChannel08 sudo config portchannel member add PortChannel06 Ethernet3 sudo config portchannel member add PortChannel07 Ethernet4 sudo config portchannel member add PortChannel08 Ethernet5

2.Vlanにuntaggメンバーにする
MC1 & MC2とも同様に設定する

sudo config vlan member add -u 2 PortChannel06 sudo config vlan member add -u 2 PortChannel07 sudo config vlan member add -u 2 PortChannel08

3.MCLAGメンバーに含める
MC1 & MC2とも同様に設定する

sudo config mclag member add 1 PortChannel06 sudo config mclag member add 1 PortChannel07 sudo config mclag member add 1 PortChannel08

4.PortChannel05をtagでVlan2のメンバーにする

sudo config vlan member add 2 PortChannel05

5.設定保存

sudo config save Existing files wil be overwritten, continue? [y/N]: y