刚装上的时候是直接从第一个路由器连接来的,可以上网(开机后用dhclient eth0)然后就正常上网,
但后来,从第一个路由器再接出一个路由器,网关设为192.168.1.2,XP下是正常上网的,但是slackware却不知道是什么进修上不了网,命令都用过了,却一直得到IP 192.168.1.100 第二个路由器IP地址池是从192.168.1.100开始的
slackware 不能上网
-
- 帖子: 49
- 注册时间: 2007-03-06 19:23
-
- 帖子: 49
- 注册时间: 2007-03-06 19:23
Why is it called a funny bone when it hurts so much?
root@wrf:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:4e:20:29:82
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4eff:fe20:2982/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1306 (1.2 KiB) TX bytes:1656 (1.6 KiB)
Interrupt:5 Base address:0xd000
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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3948 (3.8 KiB) TX bytes:3948 (3.8 KiB)
root@wrf:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:e0:4e:20:29:82
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4eff:fe20:2982/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1306 (1.2 KiB) TX bytes:1656 (1.6 KiB)
Interrupt:5 Base address:0xd000
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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3948 (3.8 KiB) TX bytes:3948 (3.8 KiB)
root@wrf:~# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:e0:4e:20:29:82
Sending on LPF/eth0/00:e0:4e:20:29:82
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.2
bound to 192.168.1.100 -- renewal in 2833 seconds.
root@wrf:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.13 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.606 ms
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.606/0.871/1.137/0.267 ms
root@wrf:~# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=4.57 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=0.677 ms
--- 192.168.1.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.677/2.626/4.576/1.950 ms
root@wrf:~# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.043 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.034 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.034 ms
--- 192.168.1.100 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.034/0.037/0.043/0.004 ms
root@wrf:~# ping baidu.com
ping: unknown host baidu.com
root@wrf:~# ping sina.com
ping: unknown host sina.com
root@wrf:~# ping www.tom.com
ping: unknown host www.tom.com
root@wrf:~# more /etc/network/interfaces
/etc/network/interfaces: 没有那个文件或目录
root@wrf:~# more /etc/networks/interfaces
/etc/networks/interfaces: 不是目录
root@wrf:~#
root@wrf:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:4e:20:29:82
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4eff:fe20:2982/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1306 (1.2 KiB) TX bytes:1656 (1.6 KiB)
Interrupt:5 Base address:0xd000
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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3948 (3.8 KiB) TX bytes:3948 (3.8 KiB)
root@wrf:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:e0:4e:20:29:82
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4eff:fe20:2982/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1306 (1.2 KiB) TX bytes:1656 (1.6 KiB)
Interrupt:5 Base address:0xd000
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:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3948 (3.8 KiB) TX bytes:3948 (3.8 KiB)
root@wrf:~# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:e0:4e:20:29:82
Sending on LPF/eth0/00:e0:4e:20:29:82
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.2
bound to 192.168.1.100 -- renewal in 2833 seconds.
root@wrf:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.13 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.606 ms
--- 192.168.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.606/0.871/1.137/0.267 ms
root@wrf:~# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=4.57 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=0.677 ms
--- 192.168.1.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.677/2.626/4.576/1.950 ms
root@wrf:~# ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=64 time=0.043 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.034 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.034 ms
--- 192.168.1.100 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.034/0.037/0.043/0.004 ms
root@wrf:~# ping baidu.com
ping: unknown host baidu.com
root@wrf:~# ping sina.com
ping: unknown host sina.com
root@wrf:~# ping www.tom.com
ping: unknown host www.tom.com
root@wrf:~# more /etc/network/interfaces
/etc/network/interfaces: 没有那个文件或目录
root@wrf:~# more /etc/networks/interfaces
/etc/networks/interfaces: 不是目录
root@wrf:~#