- 论坛徽章:
- 0
|
我按照书上和网络上介绍的方法在/etc/network/interfaces 设置IP 子网 网关 ;同时也设置了DNS。但而且也激活了,但是就是不能上网。
我IP:***.***.***.239
网关::***.***.***.254
下面是我用ifconfig -a 输出的结果:
eth0 Link encap:Ethernet HWaddr 00:E0:4C:3B:09:E9
inet addr::***.***.***.239 Bcast:210.34.14.255 Mask:255.255.255.0
inet6 addr: 2001:da8:e800:ff:2e0:4cff:fe3b:9e9/64 Scope:Global
inet6 addr: fe80::2e0:4cff:fe3b:9e9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2346 errors:0 dropped:207 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:164274 (160.4 KiB) TX bytes:3113 (3.0 KiB)
Interrupt:16 Base address:0x6000
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
下面是用route输出的结果:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 1000 0 0 eth0
default :***.***.***.254 0.0.0.0 UG 0 0 0 eth0
请教各位大虾为什么不能上网! |
|