|
|

楼主 |
发表于 2006-5-8 19:18:59
|
显示全部楼层
root@khchan:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@khchan:~# cat /etc/resolv.conf
nameserver 202.96.128.86
nameserver 202.96.134.133
root@khchan:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E4:29:A5:98
inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e4ff:fe29:a598/64 Scope ink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3267 (3.1 KiB) TX bytes:3393 (3.3 KiB)
lo Link encap ocal 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:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)
root@khchan:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.96.128.86 202.96.134.133
root@khchan:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
root@khchan:~# ping 202.96.128.86
PING 202.96.128.86 (202.96.128.86) 56(84) bytes of data.
64 bytes from 202.96.128.86: icmp_seq=1 ttl=242 time=195 ms
64 bytes from 202.96.128.86: icmp_seq=2 ttl=242 time=225 ms
64 bytes from 202.96.128.86: icmp_seq=3 ttl=242 time=191 ms
64 bytes from 202.96.128.86: icmp_seq=4 ttl=242 time=209 ms
nslookup www.linuxsir.cn 没有反应~~~
真是头昏 |
|