[root@dba ~]# route add default gw 192.168.0.10 dev eth0
[root@dba ~]#
[root@dba ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0
0.0.0.0 192.168.0.10 0.0.0.0 UG 0 0 0 eth0
[root@dba ~]# ping 119.75.217.109
PING 119.75.217.109 (119.75.217.109) 56(84) bytes of data.
64 bytes from 119.75.217.109: icmp_seq=1 ttl=55 time=3.24 ms
64 bytes from 119.75.217.109: icmp_seq=2 ttl=55 time=3.09 ms
64 bytes from 119.75.217.109: icmp_seq=3 ttl=55 time=2.56 ms
64 bytes from 119.75.217.109: icmp_seq=4 ttl=55 time=3.82 ms
64 bytes from 119.75.217.109: icmp_seq=5 ttl=55 time=4.03 ms
^C
--- 119.75.217.109 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4113ms
rtt min/avg/max/mdev = 2.561/3.352/4.038/0.530 ms
[root@dba ~]#
[root@dba ~]# ping
64 bytes from 119.75.217.109: icmp_seq=1 ttl=55 time=3.43 ms
64 bytes from 119.75.217.109: icmp_seq=2 ttl=55 time=3.56 ms
64 bytes from 119.75.217.109: icmp_seq=3 ttl=55 time=3.44 ms
^C
--- 来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29313086/viewspace-1759578/,如需转载,请注明出处,否则将追究法律责任。