Network
Routing Table
leopit
2017. 1. 8. 16:35
[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 |