본문 바로가기

Networking

[NSX] Setup - 7. Tier-0 Gateway 생성 및 BGP 연결

 

Network > Tier-0 Gateways > ADD GATEWAY > Tier-0

  • Name : Tier0-01
  • HA Mode : Active Standby
  • Edge Cluster : edge-cl01

 

SAVE 하고 다음 설정 이어서 진행

INTERFACES > Set

 

ADD INTERFACE

아래 정보를 이용하여 동일하게 설정

 

 

Status가 모두 Success로 변경되는지 확인

 

Virtual Router에서 Edge Uplink IP Address를 이용하여 Ping 테스트

vyos@vyos# ping 192.168.12.11
PING 192.168.12.11 (192.168.12.11) 56(84) bytes of data.
64 bytes from 192.168.12.11: icmp_seq=1 ttl=64 time=1.48 ms
^C
--- 192.168.12.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.487/1.487/1.487/0.000 ms
[edit]
 
vyos@vyos# ping 192.168.12.12
PING 192.168.12.12 (192.168.12.12) 56(84) bytes of data.
64 bytes from 192.168.12.12: icmp_seq=1 ttl=64 time=1.35 ms
^C
--- 192.168.12.12 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.359/1.359/1.359/0.000 ms
[edit]
 
vyos@vyos# ping 192.168.13.11
PING 192.168.13.11 (192.168.13.11) 56(84) bytes of data.
64 bytes from 192.168.13.11: icmp_seq=1 ttl=64 time=2.41 ms
^C
--- 192.168.13.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.412/2.412/2.412/0.000 ms
[edit]
 
vyos@vyos# ping 192.168.13.12
PING 192.168.13.12 (192.168.13.12) 56(84) bytes of data.
64 bytes from 192.168.13.12: icmp_seq=1 ttl=64 time=1.48 ms
64 bytes from 192.168.13.12: icmp_seq=2 ttl=64 time=0.189 ms
^C
--- 192.168.13.12 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.189/0.836/1.483/0.647 ms
[edit]

 

BGP 설정

Virtual Router에서 BGP 설정부터 진행

Tier-0 Gateway 입장에서 Local AS는 Default인 65000으로 놔두고, Virtual Router 쪽은 설정 시 65002를 이용

vyos@vyos:~$ configure
[edit]
vyos@vyos# set protocols bgp 65002 address-family ipv4-unicast redistribute connected
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.12.11 remote-as '65000'
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.12.12 remote-as '65000'
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.13.11 remote-as '65000'
[edit]
vyos@vyos# set protocols bgp 65002 neighbor 192.168.13.12 remote-as '65000'
[edit]
 
vyos@vyos# commit
[edit]
vyos@vyos# save
Saving configuration to '/config/config.boot'...
Done
[edit]
 
vyos@vyos# exit
exit
vyos@vyos:~$ show ip bgp summary
 
IPv4 Unicast Summary:
BGP router identifier 192.168.13.1, local AS number 65002 vrf-id 0
BGP table version 6
RIB entries 11, using 2024 bytes of memory
Peers 4, using 82 KiB of memory
 
Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
192.168.12.11   4      65000       0       1        0    0    0    never       Active
192.168.12.12   4      65000       0       1        0    0    0    never       Active
192.168.13.11   4      65000       0       1        0    0    0    never       Active
192.168.13.12   4      65000       0       1        0    0    0    never       Active
 
Total number of neighbors 4

 

Networking > Tier-0 Gateways > Edit Tier0-01 > BGP > BGP Neighbors > Set

 

ADD BGP NEIGHBOR

  • IP Address : 192.168.12.1
  • Remote AS number : 65002
  • Source Addresses : 192.168.12.11, 192.168.12.12

 

  • IP Address : 192.168.13.1
  • Remote AS number : 65002
  • Source Addresses : 192.168.13.11, 192.168.13.12

 

Status가 Success로 변경되는지 확인

 

Virtual Router에서 BPG 정보 다시 확인

## 기존 정보와 비교해보면 Tier-0 Gateway에서 BGP 설정을 하기 전에는 아래 명령어의 결과 중 Up/Down Column이 Never 였으나, Tier-0 Gateway 쪽 설정 후에는 시간이 표시되는 것을 알 수 있음

vyos@vyos:~$ show ip bgp summary
 
IPv4 Unicast Summary:
BGP router identifier 192.168.13.1, local AS number 65002 vrf-id 0
BGP table version 6
RIB entries 11, using 2024 bytes of memory
Peers 4, using 82 KiB of memory
 
Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
192.168.12.11   4      65000       6      15        0    0    0 00:03:17            0
192.168.12.12   4      65000       6      15        0    0    0 00:03:17            0
192.168.13.11   4      65000       5      14        0    0    0 00:02:52            0
192.168.13.12   4      65000       5      14        0    0    0 00:02:52            0
 
Total number of neighbors 4

 

Redistribution 설정

## Tier-0 Gateway 하위에 생성된 Segment에 대한 Route 정보를 상위 Router에 Advertise 하는 기능

## Tier-1 Gateway도 생성하게 되면 동일하게 Redistribution 설정 필요

Networking > Tier-0 Gateways > Edit Tier0-01 > ROUTE RE-DISTRIBUTION > Route Re-distribution > Set

 

ADD ROUTE RE-DISTRIBUTION

Name : tier0-01-Redistribution

Route Re-distribution Column 밑에 Set 클릭