변군이글루
[route] Default GateWay 추가 본문
Default GateWay 추가
route add default gw 10.0.2.2 eth0
Addition GateWay 추가
route add -net 192.168.56.0/24 gw 192.168.56.1 eth1
[root@kss ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.56.0 192.168.56.1 255.255.255.0 UG 0 0 0 eth1
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth1
0.0.0.0 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
2010.04.18
[root@vm1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth3
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth2
// 192.168.100.1 gateway 추가
[root@vm1 ~]# route add -net 192.168.100.0/24 gw 192.168.100.1 eth1
[root@vm1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 192.168.100.1 255.255.255.0 UG 0 0 0 eth3
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth3
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth2
// 192.168.100.1 gateway 삭제
[root@vm1 ~]# route del -net 192.168.100.0/24 gw 192.168.100.1 eth3
[root@vm1 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth3
169.254.0.0 0.0.0.0 255.255.0.0 U 1003 0 0 eth2
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth2
'* 리눅스' 카테고리의 다른 글
[VNC] VNC "xauth: (stdin):1: bad display name" 에러 발생 시 (0) | 2013.09.20 |
---|---|
[Bonding] CentOS6 Linux NIC bonding 구성 (0) | 2013.09.16 |
[route] Default GateWay 추가 (0) | 2013.09.16 |
[kickstart] ks.cfg 파일 (0) | 2013.09.16 |
[리눅스] grep 명령어 (1) | 2013.09.16 |
[Kickstart] Generating Kickstart Files (0) | 2013.09.16 |
- Tag
- ADD GateWay, Default GateWay, GATEWAY, route, sangchul.kr, 라우터, 라우터 추가, 변군, 변군이글루, 변상철