Cumulus VX에서 BGP를 설정해보십시오.

환경



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

우분투에 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

참고


  • Cumulus VX에서 VXLAN + EVPN (original : 2017/03/22)
  • Border Gateway Protocol - BGP | Cumulus Linux 4.1
  • 좋은 웹페이지 즐겨찾기