|
|
[root@RH72 sbin]# ./ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:39:9A:AB
inet addr:192.168.1.215 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12185 errors:0 dropped:0 overruns:0 frame:0
TX packets:4384 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1065762 (1.0 Mb) TX bytes:678234 (662.3 Kb)
Interrupt:11 Base address:0x2e00
lo Link encap ocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14359 errors:0 dropped:0 overruns:0 frame:0
TX packets:14359 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1408204 (1.3 Mb) TX bytes:1408204 (1.3 Mb)
[root@RH72 sbin]# ./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
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@RH72 sbin]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.215 : 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=288 usec
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=156 usec
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=155 usec
64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=144 usec
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.144/0.185/0.288/0.061 ms
[root@RH72 sbin]#
我的网关是好的,因为用别的机能访问外网。 |
|