- 论坛徽章:
- 0
|
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:61:AC:1E:9E
inet addr:192.168.1.38 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::204:61ff:feac:1e9e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:524 (524.0 b) TX bytes:0 (0.0 b)
Interrupt:18 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:71 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5099 (4.9 KiB) TX bytes:5099 (4.9 KiB)
[root@localhost ~]#
________________________________________________________________________________
[root@localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
[root@localhost ~]#
(这个是我用ctrl+c强行结束的 ,等了半天没有反应)
找了点资料,还有和我已安装的虚拟机下的route返回结果相比较,看到route少了一条"default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0",
____________________________________
可是我尝试添加路由,用命令"route add default gw 192.168.1.1"时,不能成功,出现错误"SIOCADDRT 文件已存在",baidu,google了半天也没有找到解决的办法.. 望各位高手帮我解决,谢谢了..
PS:这个 问题搞了我好几天了.. |
|