- 论坛徽章:
- 0
|
回复 8# chenyx - [root@myhost ~]# ifconfig eth0 down
- [root@myhost ~]# ifconfig eth0 192.168.1.200 netmask 255.255.255.0 up
- [root@myhost ~]# 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=3.98 ms
- 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.915 ms
- 64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.877 ms
- 64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=0.869 ms
- --- 192.168.1.1 ping statistics ---
- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms
- rtt min/avg/max/mdev = 0.869/1.660/3.982/1.341 ms
- [root@myhost ~]# 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=4.22 ms
- 64 bytes from 192.168.1.100: icmp_seq=2 ttl=64 time=0.629 ms
- 64 bytes from 192.168.1.100: icmp_seq=3 ttl=64 time=0.630 ms
- 64 bytes from 192.168.1.100: icmp_seq=4 ttl=64 time=0.528 ms
- --- 192.168.1.100 ping statistics ---
- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms
- rtt min/avg/max/mdev = 0.528/1.502/4.224/1.572 ms
- [root@myhost ~]# ping www.baidu.com
- ping: unknown host www.baidu.com
复制代码 哇~~~看到点希望了~~~局域网内的网络通了~~
PING了两个地址,其中192.168.1.1是路由的地址,另一个192.168.1.100是另一个电脑的地址。
但是PING不到Baidu呀~~~~
{:3_202:} |
|