当前位置: 技术问答>linux和unix
装了Red Hat Enterprise 5.3 但是ping不通网关和其他机器,具体见贴内。
来源: 互联网 发布时间:2016-10-27
本文导语: route 的结果 Destinatin Gateway Genmask Flags Metric Ref Use lface 192.168.6.0 * 255.255.255.0 U 0 0 0 eth0 192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 ...
route 的结果
Destinatin Gateway Genmask Flags Metric Ref Use lface
192.168.6.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.6.1 0.0.0.0 UG 0 0 0 eth0
ifconfig的结果
eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.6.238 Bcast 192.168.6.255
mask:255.255.255.0
inet6 addr:fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICASE MTU:1500 metric:1
RX packets:290392 errors:0 dropped:0
overruns:0 frame:0 TXpackets:91 collisions:0 txqueuelen:0
RX bytes:31634822(30.1MiB) TX bytes 21317(20.8 KiB)
lo ....
peth0 ....
vif0.0....
virbr0....
已经确认网线和网络设备没有问题。
(用一张能自启动的ubantu linux启动后,配置同样的ip和网关可以Ping通网关和其他机器)
请问会是什么问题?
Destinatin Gateway Genmask Flags Metric Ref Use lface
192.168.6.0 * 255.255.255.0 U 0 0 0 eth0
192.168.122.0 * 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.6.1 0.0.0.0 UG 0 0 0 eth0
ifconfig的结果
eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.6.238 Bcast 192.168.6.255
mask:255.255.255.0
inet6 addr:fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICASE MTU:1500 metric:1
RX packets:290392 errors:0 dropped:0
overruns:0 frame:0 TXpackets:91 collisions:0 txqueuelen:0
RX bytes:31634822(30.1MiB) TX bytes 21317(20.8 KiB)
lo ....
peth0 ....
vif0.0....
virbr0....
已经确认网线和网络设备没有问题。
(用一张能自启动的ubantu linux启动后,配置同样的ip和网关可以Ping通网关和其他机器)
请问会是什么问题?
|
试试先将不需要的接口 down...
# ifconfig vif0.0 down
# ifconfig virbr0 down
|
ifconfig的结果
eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.6.238 Bcast 192.168.6.255
mask:255.255.255.0
inet6 addr:fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICASE MTU:1500 metric:1
RX packets:290392 errors:0 dropped:0
overruns:0 frame:0 TXpackets:91 collisions:0 txqueuelen:0
RX bytes:31634822(30.1MiB) TX bytes 21317(20.8 KiB)
貌似没有通过 eth0 发送嘛...
eth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:192.168.6.238 Bcast 192.168.6.255
mask:255.255.255.0
inet6 addr:fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING MULTICASE MTU:1500 metric:1
RX packets:290392 errors:0 dropped:0
overruns:0 frame:0 TXpackets:91 collisions:0 txqueuelen:0
RX bytes:31634822(30.1MiB) TX bytes 21317(20.8 KiB)
貌似没有通过 eth0 发送嘛...