Linux系统网络管理
文章目录
一、网络参数配置
1.图形化配置
网络端口最大为65535个
NetworkManager,Linux7系统中,一般建议停止该管理方式;Linux8以上操作系统统一将网络管理交给NetworkManager管理。
#开启
[root@localhost ~]# systemctl start NetworkManager
#关闭
[root@localhost ~]# systemctl stop NetworkManager
#关闭并开机不自启
[root@localhost ~]# systemctl disable --now NetworkManager
#开启并开机自启
[root@localhost ~]# systemctl enable --now NetworkManager
2.命令行配置
2.1、ifconfig命令
语法:ifconfig
选项:
选项 | 作用 |
---|---|
-a | 查看所有网卡的配置信息,包括未启用网卡 |
up | 启用网卡,ifconfig ens33 up,不会重新读取配置文件 |
down | 停用网卡,ifconfig ens33 down |
[root@bogon ~]# ifconfig
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.49.135 netmask 255.255.255.0 broadcast 192.168.49.255
inet6 fe80::20c:29ff:fe4b:4d64 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:4b:4d:64 txqueuelen 1000 (Ethernet)
RX packets 95 bytes 13199 (12.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 203 bytes 152558 (148.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 60 bytes 5100 (4.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 60 bytes 5100 (4.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:ba:82:9e txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
语法:临时配置网卡参数
ifconfig ens192 192.168.115.136/24
[root@bogon ~]# ifconfig ens192 192.168.49.136/24
[root@bogon ~]# ifconfig ens192
ens192: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.49.136 netmask 255.255.255.0 broadcast 192.168.49.255
ether 00:0c:29:4b:4d:6e txqueuelen 1000 (Ethernet)
RX packets 29 bytes 1856 (1.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 882 (882.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
**注意:**临时配置,重启网络服务、网卡启停、主机重启都将失效
2.2、ifup和ifdown
子接口配置
- 基于物理网卡的逻辑接口
- 可以使系统基于一块网卡配置多个IP地址
#Linux7默认安装
#Rocry8以上需要安装
yum install -y network-scripts
ifup ens160
#启用网卡,并读取配置文件
ifdown ens160
#停用网卡
复制ifcfg-ens160为ifcfg-ens160:0
[root@bogon network-scripts]# cp ifcfg-ens160 ifcfg-ens160:0
修改ifcfg-ens160:0属性
[root@bogon network-scripts]# vim ifcfg-ens160:0
TYPE=Ethernet
BOOTPROTO=static
NAME=ens160:0
DEVICE=ens160:0
ONBOOT=yes
IPADDR=192.168.49.123
PREFIX=24
GATEWAY=192.168.49.2
DNS=192.168.49.2
~
~
~
~
~
~
~
#停用和启动ens160:0
[root@bogon network-scripts]# ifdown ens160:0 && ifup ens160:0
WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.
WARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
#查看网卡
[root@bogon network-scripts]# ifconfig
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.49.110 netmask 255.255.255.0 broadcast 192.168.49.255
inet6 fe80::20c:29ff:fe32:1f14 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:32:1f:14 txqueuelen 1000 (Ethernet)
RX packets 34947 bytes 47808462 (45.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8302 bytes 476145 (464.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens160:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.49.123 netmask 255.255.255.0 broadcast 192.168.49.255
ether 00:0c:29:32:1f:14 txqueuelen 1000 (Ethernet)
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 48 bytes 4080 (3.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 48 bytes 4080 (3.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:58:e5:b9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
2.3、ip a[ddress]命令
查看网络参数,可以查看到未启用的网卡列表,能够查看基于配置文件实现的多IP地址配置后的网络参数
语法:IP
[root@bogon network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:4b:4d:64 brd ff:ff:ff:ff:ff:ff
altname enp3s0
inet 192.168.49.135/24 brd 192.168.49.255 scope global dynamic noprefixroute ens160
valid_lft 1742sec preferred_lft 1742sec
inet6 fe80::20c:29ff:fe4b:4d64/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:ba:82:9e brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:0c:29:4b:4d:6e brd ff:ff:ff:ff:ff:ff
altname enp11s0
inet 192.168.115.136/24 brd 192.168.115.255 scope global ens192
valid_lft forever preferred_lft forever
2.4、配置文件配置
2.4.1、单一IP地址配置
自动获得,必须在当前网络中存在DHCP服务器。
[root@bogon network-scripts]# vim ifcfg-ens160
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=eui64
NAME=ens160
UUID=9a963904-667c-4238-a84b-44887461f065
DEVICE=ens160
ONBOOT=yes
~
~
~
~
~
"ifcfg-ens160" 15L, 273C
2.4.2、多IP地址配置
[root@localhost network-scripts]# vim ifcfg-ens160
TYPE=Ethernet
BOOTPROTO=static
NAME=ens160
DEVICE=ens160
ONBOOT=yes
IPADDR=192.168.49.110
PREFIX=24
GATEWAY=192.168.49.2
DNS=192.168.49.2
IPADDR1=192.168.49.111
PREFIX1=24
DNS1=192.168.49.2
~
~
~
~
~
~
~
"ifcfg-ens160" 12L, 190C
注意:#域名解析服务器地址,不建议在多网卡的情况下书写DNS,因为后启动的网卡会覆盖原有的DNS服务器地址。
查看 DNS ,确保一致,否则就会ping不通
cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.49.2
[root@localhost network-scripts]# ping www.baidu.com
PING www.a.shifen.com (220.181.111.232) 56(84) bytes of data.
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=1 ttl=128 time=2603 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=2 ttl=128 time=2261 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=3 ttl=128 time=2231 ms
64 bytes from 220.181.111.232 (220.181.111.232): icmp_seq=4 ttl=128 time=2704 ms
^C
--- www.a.shifen.com ping statistics ---
3.路由配置
route命令
route命令用来显示并设置Linux内核中的网络路由表,route命令设置的路由主要是静态路由。
选项:
选项 | 描述 |
---|---|
-n | 直接显示数字形式的IP地址; |
-net | 到一个网络的路由表; |
-host | 到一个主机的路由表。 |
参数 | 描述 |
---|---|
add | 增加指定的路由记录; |
del | 删除指定的路由记录; |
gw | 设置默认网关; |
dev | 路由记录所表示的网络接口。 |
route add -net 0/0 gw 192.168.49.2 dev ens160
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.49.2 0.0.0.0 UG 100 0 0 ens160
0.0.0.0 192.168.49.2 0.0.0.0 UG 101 0 0 ens192
192.168.49.0 0.0.0.0 255.255.255.0 U 100 0 0 ens160
192.168.49.0 0.0.0.0 255.255.255.0 U 100 0 0 ens160
192.168.49.0 0.0.0.0 255.255.255.0 U 100 0 0 ens160
192.168.49.0 0.0.0.0 255.255.255.0 U 101 0 0 ens192
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
二、网络连接查看
1、netstat
作用
-
查看本地服务的网络监听状态
-
查看客户端连接到本地服务的连接状态
[root@localhost ~]# netstat -anptu
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2120/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1201/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1185/cupsd
tcp 0 0 192.168.49.110:55484 210.28.130.3:80 ESTABLISHED 2276/packagekitd
tcp 0 0 192.168.49.110:33190 210.28.130.3:80 ESTABLISHED 2276/packagekitd
tcp 1 0 192.168.49.110:35700 44.213.238.211:443 CLOSE_WAIT 4124/gnome-shell
tcp 0 0 192.168.49.110:48872 210.28.130.3:80 ESTABLISHED 2276/packagekitd
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 1201/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1185/cupsd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 979/avahi-daemon: r
udp 0 0 0.0.0.0:37320 0.0.0.0:* 979/avahi-daemon: r
udp 0 0 192.168.122.1:53 0.0.0.0:* 2120/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 2120/dnsmasq
udp 0 0 192.168.49.136:68 192.168.49.254:67 ESTABLISHED 1178/NetworkManager
udp 0 0 0.0.0.0:111 0.0.0.0:* 1/systemd
udp6 0 0 :::5353 :::* 979/avahi-daemon: r
udp6 0 0 :::55363 :::* 979/avahi-daemon: r
udp6 0 0 :::111 :::* 1/systemd
-n, --numeric :显示数字形式地址而不是去解析主机、端口或用户名。
-a, --all :显示所有的监听或连接状态
-p, --program :显示连接所属进程的PID和名称。
-t,--tcp :显示TCP连接
-u,--udp :显示UDP连接
-l :查看监听
2、ss
作用
-
查看本地服务的网络监听状态
-
查看客户端连接到本地服务的连接状态
[root@localhost ~]# ss -anptuli
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=979,fd=12))
udp UNCONN 0 0 0.0.0.0:37320 0.0.0.0:* users:(("avahi-daemon",pid=979,fd=14))
udp UNCONN 0 0 192.168.122.1:53 0.0.0.0:* users:(("dnsmasq",pid=2120,fd=5))
udp UNCONN 0 0 0.0.0.0%virbr0:67 0.0.0.0:* users:(("dnsmasq",pid=2120,fd=3))
udp UNCONN 0 0 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=938,fd=5),("systemd",pid=1,fd=35))
udp UNCONN 0 0 [::]:5353 [::]:* users:(("avahi-daemon",pid=979,fd=13))
udp UNCONN 0 0 [::]:55363 [::]:* users:(("avahi-daemon",pid=979,fd=15))
udp UNCONN 0 0 [::]:111 [::]:* users:(("rpcbind",pid=938,fd=7),("systemd",pid=1,fd=37))
tcp LISTEN 0 128 0.0.0.0:111 0.0.0.0:* users:(("rpcbind",pid=938,fd=4),("systemd",pid=1,fd=33))
cubic cwnd:10
tcp LISTEN 0 32 192.168.122.1:53 0.0.0.0:* users:(("dnsmasq",pid=2120,fd=6))
cubic cwnd:10
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1201,fd=3))
cubic cwnd:10
tcp LISTEN 0 128 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=1185,fd=7))
cubic cwnd:10
tcp LISTEN 0 128 [::]:111 [::]:* users:(("rpcbind",pid=938,fd=6),("systemd",pid=1,fd=36))
cubic cwnd:10
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=1201,fd=4))
cubic cwnd:10
tcp LISTEN 0 128 [::1]:631 [::]:* users:(("cupsd",pid=1185,fd=6))
cubic cwnd:10
-n, --numeric :显示数字形式地址而不是去解析主机、端口或用户名。
-a, --all :显示所有的监听或连接状态
-p, --program :显示连接所属进程的PID和名称。
-t,--tcp :显示TCP连接
-u,--udp :显示UDP连接
-i,--info :查看客户端连接到本地的状态
-l :查看监听
3、bond绑定
将多个物理网卡进行排列组合,形成逻辑网卡,网卡的高可用
3.1、绑定模式
-
mode0(平衡负载模式):平时两块网卡均工作,且自动备援,但需要在与服务器本地 网卡相连的交换机设备上进行端口聚合来支持绑定技术。
-
mode1(自动备援模式):平时只有一块网卡工作,在它故障后自动替换为另外的网卡。
-
mode6(平衡负载模式):平时两块网卡均工作,且自动备援,无须交换机设备提供辅助支持。
3.2、绑定案例
服务器有两块网卡 ens160和ens192
[root@localhost network-scripts]# ls
ifcfg-bond0 ifdown-isdn ifup-bnep ifup-sit
ifcfg-ens160 ifdown-post ifup-eth ifup-Team
ifcfg-ens192 ifdown-routes ifup-ippp ifup-TeamPort
ifcfg-lo ifdown-sit ifup-ipv6 ifup-tunnel
ifdown ifdown-Team ifup-isdn ifup-wireless
ifdown-bnep ifdown-TeamPort ifup-plip init.ipv6-global
ifdown-eth ifdown-tunnel ifup-plusb network-functions
ifdown-ippp ifup ifup-post network-functions-ipv6
ifdown-ipv6 ifup-aliases ifup-routes
[root@localhost network-scripts]# vim /etc/modprobe.d/bond.conf
ens160操作
TYPE=ethernet
BOOTPROTO=none
NAME=ens160
DEVICE=ens160
ONBOOT=yes
MASTER=bond0
SLAVE=yes
ens192操作
TYPE=ethernet
BOOTPROTO=none
NAME=ens192
DEVICE=ens192
ONBOOT=yes
MASTER=bond0
SLAVE=yes
bond0操作
TYPE=ethernet
BOOTPROTO=none
NAME=bond0
DEVICE=bond0
ONBOOT=yes
IPADDR=192.168.49.135
PREFIX=24
GATEWAY=192.168.49.2
DNS1=192.168.49.2
添加bond配置文件
[root@localhost network-scripts]#vim /etc/modprobe.d/bond.conf
alias bond0 bonding
options bonding mode=6 miimon=200
关闭网络图形化服务和重启网络服务
[root@localhost network-scripts]# systemctl stop NetworkManager
[root@localhost network-scripts]#
[root@localhost network-scripts]# ifdown ens160 && ifup ens160 && ifdown ens192 && ifup ens192 && ifup bond0
ARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.
WARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
/etc/sysconfig/network-scripts/ifdown-eth:行129: /sys/class/net/bond0/bonding/slaves: 没有那个文件或目录
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifdown] You are using 'ifdown' script provided by 'network-scripts', which are now deprecated.
WARN : [ifdown] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifdown] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
WARN : [ifup] You are using 'ifup' script provided by 'network-scripts', which are now deprecated.
WARN : [ifup] 'network-scripts' will be removed in one of the next major releases of RHEL.
WARN : [ifup] It is advised to switch to 'NetworkManager' instead - it provides 'ifup/ifdown' scripts as well.
测试:
[root@localhost network-scripts]# ifconfig
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
inet 192.168.49.135 netmask 255.255.255.0 broadcast 192.168.49.255
inet6 fe80::20c:29ff:fe06:1b4e prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:06:1b:4e txqueuelen 1000 (Ethernet)
RX packets 54 bytes 6682 (6.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 113 bytes 10406 (10.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens160: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 00:0c:29:06:1b:4e txqueuelen 1000 (Ethernet)
RX packets 36 bytes 5530 (5.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 50 bytes 3258 (3.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens192: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 00:0c:29:06:1b:58 txqueuelen 1000 (Ethernet)
RX packets 18 bytes 1152 (1.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 63 bytes 7148 (6.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 96 bytes 8160 (7.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 96 bytes 8160 (7.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:cb:c6:d2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@localhost network-scripts]# ping www.baidu.com
PING www.a.shifen.com (39.156.70.46) 56(84) bytes of data.
64 bytes from 39.156.70.46 (39.156.70.46): icmp_seq=1 ttl=128 time=39.6 ms
64 bytes from 39.156.70.46 (39.156.70.46): icmp_seq=2 ttl=128 time=69.9 ms
64 bytes from 39.156.70.46 (39.156.70.46): icmp_seq=3 ttl=128 time=50.6 ms
64 bytes from 39.156.70.46 (39.156.70.46): icmp_seq=4 ttl=128 time=115 ms
^X64 bytes from 39.156.70.46 (39.156.70.46): icmp_seq=5 ttl=128 time=45.9 ms
^C
--- www.a.shifen.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4007ms
rtt min/avg/max/mdev = 39.576/64.110/114.525/27.172 ms