SoftLayer의 VyOS/Vyatta에서 GRE 연결 -> Static Routing으로 NW간 연결

1. 소개



SoftLayer의 VyOS/Vyatta로 GRE 연결 의 계속입니다.
이번에는 Static Routing에서 172.16.0.0/24와 172.16.1.0.24 사이를 연결하고 싶습니다. 네트워크가 2개밖에 없다면, Static Routing으로 충분하겠지요.



2. Static Routing 설정



vyostok1에서 172.16.1.0/24는 192.168.0.1을 통해 액세스합니다.
vyoshkg1에서 172.16.0.0/24는 192.168.0.2를 통해 액세스합니다.

static_routing 설정
#vyostok1
vyos@vyostok1# set protocols static route 172.16.1.0/24 next-hop 192.168.0.2
vyos@vyostok1# commit

#vyoshkg1
vyos@vyoshkg1# set protocols static route 172.16.0.0/24 next-hop 192.168.0.1
vyos@vyoshk1g# commit

static_routing 확인
vyos@vyostok1:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       I - ISIS, B - BGP, > - selected route, * - FIB route

S>* 0.0.0.0/0 [1/0] via 161.202.86.1, eth1
S>* 10.0.0.0/8 [1/0] via 10.132.75.65, eth0
C>* 10.132.75.64/26 is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
C>* 161.202.xx.xx/27 is directly connected, eth1
C>* 172.16.0.0/24 is directly connected, eth0
S>* 172.16.1.0/24 [1/0] via 192.168.0.2, tun0
C>* 192.168.0.0/30 is directly connected, tun0


vyos@vyoshkg1:~$ show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
       I - ISIS, B - BGP, > - selected route, * - FIB route

S>* 0.0.0.0/0 [1/0] via 119.81.163.33, eth1
S>* 10.0.0.0/8 [1/0] via 10.111.147.65, eth0
C>* 10.111.147.64/26 is directly connected, eth0
C>* 119.81.xx.xx/29 is directly connected, eth1
C>* 127.0.0.0/8 is directly connected, lo
S>* 172.16.0.0/24 [1/0] via 192.168.0.1, tun0
C>* 172.16.1.0/24 is directly connected, eth0
C>* 192.168.0.0/30 is directly connected, tun0


이제 네트워크가 연결되었습니다.

좋은 웹페이지 즐겨찾기