Cumulus VX에서 BGP를 설정해보십시오.
환경
GNS3에서 움직입니다.
설치 방법은 여기.
GNS3 Remote Server - Qiita
Cumulus VX의 도입은 이쪽
GNS3 and QEMU - KVM | Cumulus VX 3.7
인터페이스 설정
이런 식으로 가자.
로그인은 이것으로 끝났습니다.
id: cumulus
password: CumulusLinux!
CumulusVX1net add interface swp1 ip address 192.168.0.1/31
net add interface swp2 ip address 192.168.0.5/31
net commit
CumulusVX2net 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
CumulusVX3net add interface swp1 ip address 192.168.0.7/31
net add interface swp2 ip address 192.168.0.3/31
net commit
CumulusVX4net 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 주소와 기본 게이트웨이를 설정합니다.
ubuntu1ip a add 172.16.0.10/16 dev eth0
ip route add default via 172.16.0.1
ubuntu2ip a add 172.17.0.10/16 dev eth0
ip route add default via 172.17.0.1
BGP 설정
CumulusVX1net 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
CumulusVX2net 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
CumulusVX3net 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
CumulusVX4net 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
확인
CumulusVXnet show bgp
net show route
소통을 확인하십시오.
ubuntu1ping -c 1 172.17.0.10
ubuntu2ping -c 1 172.16.0.10
참고
이런 식으로 가자.
로그인은 이것으로 끝났습니다.
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 설정
CumulusVX1net 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
CumulusVX2net 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
CumulusVX3net 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
CumulusVX4net 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
확인
CumulusVXnet show bgp
net show route
소통을 확인하십시오.
ubuntu1ping -c 1 172.17.0.10
ubuntu2ping -c 1 172.16.0.10
참고
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
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
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
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
참고
Reference
이 문제에 관하여(Cumulus VX에서 BGP를 설정해보십시오.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/_x8/items/3a2425a20a88b9ceb2c5텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)