문제

where is the configuration file for these result ?

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.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     1002   0        0 eth0
0.0.0.0         192.168.0.204   0.0.0.0         UG    0      0        0 eth0

there entries aren't found in the following files

/etc/sysconfig/network
/etc/sysconfig/network-scripts/route-eth0

when i update GATEWAY in /etc/sysconfig/network-scripts/ifcfg-eth0, but when i run

route -n

it gives me the old result:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.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     1002   0        0 eth0
0.0.0.0         192.168.0.204   0.0.0.0         UG    0      0        0 eth0

where i should search to find these entries?

도움이 되었습니까?

해결책

Please check "/etc/network/interfaces" file

Refer the following link:

http://www.cyberciti.biz/faq/centos-linux-add-route-command/

~Shiva

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top