【发布时间】:2014-01-13 09:14:49
【问题描述】:
这些结果的配置文件在哪里?
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
在以下文件中找不到条目
/etc/sysconfig/network
/etc/sysconfig/network-scripts/route-eth0
当我在 /etc/sysconfig/network-scripts/ifcfg-eth0 中更新 GATEWAY 时,但当我运行时
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
我应该在哪里搜索才能找到这些条目?
【问题讨论】:
标签: networking routing centos gateway