:: 라우팅 경로 추가

[root@s92 network-scripts]# route add -host 211.63.89.90 eth0
[root@s92 network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.63.89.91 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.63.89.90 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.63.89.93 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.238.132.0 211.63.89.1 255.255.255.0 UG 0 0 0 eth0
211.63.89.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 211.63.89.1 0.0.0.0 UG 0 0 0 eth0
[root@s92 network-scripts]#

:: 라우팅 경로 추가 (network 대역)

[root@s92 network-scripts]# route add -net 211.238.133.0 netmask 255.255.255.0 gw 211.63.89.1 dev eth0
[root@s92 network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
211.63.89.91 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.63.89.90 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.63.89.93 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
211.238.133.0 211.63.89.1 255.255.255.0 UG 0 0 0 eth0
211.238.132.0 211.63.89.1 255.255.255.0 UG 0 0 0 eth0
211.63.89.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 211.63.89.1 0.0.0.0 UG 0 0 0 eth0

사설에서 사설로 접속할때 서버1에서 아래와 같이 세팅해준다.
[root@s92 network-scripts]# route add -net 172.16.30.0/24 gw 211.63.89.93 dev eth0

:: 삭제 방법
route del -net 211.63.89.0 netmask 25

'Network' 카테고리의 다른 글

각 포트별 TCP/UDP 서비스  (0) 2017.01.06
router root bridge  (0) 2017.01.06
PCAP 파일에서 UNIX 도구를 이용한 IP 주소 요약  (0) 2017.01.06
SLB 구성 - DSR vs Inline  (0) 2017.01.05
tcpdump  (0) 2017.01.04

+ Recent posts