[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]# [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 cf) 사설에서 사설로 접속할때 서버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' 카테고리의 다른 글
라우터 설정 (0) | 2017.01.08 |
---|---|
라우터 패스워드 복구 (0) | 2017.01.08 |
TTL (Time To Live) (0) | 2017.01.08 |
VoIP 개요, 구성도, 도입장점, 네트워크 구성도 (0) | 2017.01.07 |
netstat 상태 설명 (0) | 2017.01.06 |