環境
GNS3で動かしてます.
インストール方法はこちら.
GNS3 Remote Server - Qiita
Cumulus VXの導入はこちら
GNS3 and QEMU - KVM | Cumulus VX 3.7
インターフェース設定
こんな感じで行きます.
ログインは, これでいけました.
id: cumulus
password: CumulusLinux!
CumulusVX1
net add interface swp1 ip address 192.168.0.1/31
net add interface swp2 ip address 192.168.0.5/31
net commit
CumulusVX2
net add interface swp1 ip address 192.168.0.0/31
net add interface swp2 ip address 192.168.0.2/31
net add interface swp23 ip address 172.16.0.1/16
net commit
CumulusVX3
net add interface swp1 ip address 192.168.0.7/31
net add interface swp2 ip address 192.168.0.3/31
net commit
CumulusVX4
net add interface swp1 ip address 192.168.0.6/31
net add interface swp2 ip address 192.168.0.4/31
net add interface swp23 ip address 172.17.0.1/16
net commit
インターフェース確認
net show interface all
ubuntuにIPアドレスとデフォルトゲートウェイを設定します
ubuntu1
ip a add 172.16.0.10/16 dev eth0
ip route add default via 172.16.0.1
ubuntu2
ip a add 172.17.0.10/16 dev eth0
ip route add default via 172.17.0.1
BGP設定
CumulusVX1
net add bgp autonomous-system 64512
net add bgp neighbor 192.168.0.0 remote-as 64513
net add bgp neighbor 192.168.0.4 remote-as 64514
net commit
CumulusVX2
net add bgp autonomous-system 64513
net add bgp neighbor 192.168.0.1 remote-as 64512
net add bgp neighbor 192.168.0.3 remote-as 64512
net add bgp network 172.16.0.0/16
net commit
CumulusVX3
net add bgp autonomous-system 64512
net add bgp neighbor 192.168.0.2 remote-as 64513
net add bgp neighbor 192.168.0.6 remote-as 64514
net commit
CumulusVX4
net add bgp autonomous-system 64514
net add bgp neighbor 192.168.0.5 remote-as 64512
net add bgp neighbor 192.168.0.7 remote-as 64512
net add bgp network 172.17.0.0/16
net commit
確認
CumulusVX
net show bgp
net show route
疎通確認します.
ubuntu1
ping -c 1 172.17.0.10
ubuntu2
ping -c 1 172.16.0.10