ITPub博客

首页 > 数据库 > MySQL > LINUX网关维护命令

LINUX网关维护命令

原创 MySQL 作者:oraclesuperman 时间:2015-08-02 18:41:07 0 删除 编辑
[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 www.baidu.com
PING www.a.shifen.com (119.75.217.109) 56(84) bytes of data.
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
--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2627ms
rtt min/avg/max/mdev = 3.437/3.480/3.561/0.074 ms

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29313086/viewspace-1759578/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-03-20

  • 博文量
    178
  • 访问量
    422844