tinc router 测试

 
 
#    VLAN1101    tinc服务器网络环境
 
[root@tinc-1101-server ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.11.96  netmask 255.255.240.0  broadcast 10.0.15.255
        inet6 fe80::5054:ff:fe03:5d84  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:84  txqueuelen 1000  (Ethernet)
        RX packets 157462  bytes 13236277 (12.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1818  bytes 154500 (150.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 122.14.192.192  netmask 255.255.255.0  broadcast 122.14.192.255
        inet6 fe80::5054:1ff:fe03:c2  prefixlen 64  scopeid 0x20<link>
        ether 52:54:01:03:00:c2  txqueuelen 1000  (Ethernet)
        RX packets 964614  bytes 80482348 (76.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22794  bytes 3109918 (2.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1101-server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         122.14.192.1    0.0.0.0         UG    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.240.0   U     0      0        0 eth0
122.14.192.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
 
 
#    VLAN1101    tinc客户端网络环境
 
[root@tinc-1101-client ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.9.201  netmask 255.255.240.0  broadcast 10.0.15.255
        inet6 fe80::5054:ff:fe03:5d83  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:83  txqueuelen 1000  (Ethernet)
        RX packets 144012  bytes 11949447 (11.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11086  bytes 1095588 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1101-client ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.11.96      0.0.0.0         UG    0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.240.0   U     0      0        0 eth0
 
 
#    VLAN1103    tinc服务器网络环境
 
[root@tinc-1103-server ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.18.214  netmask 255.255.240.0  broadcast 10.0.31.255
        inet6 fe80::5054:ff:fe03:5d81  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:81  txqueuelen 1000  (Ethernet)
        RX packets 237255  bytes 22017452 (20.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1647  bytes 143632 (140.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 122.14.218.22  netmask 255.255.255.0  broadcast 122.14.218.255
        inet6 fe80::5054:1ff:fe03:bf  prefixlen 64  scopeid 0x20<link>
        ether 52:54:01:03:00:bf  txqueuelen 1000  (Ethernet)
        RX packets 544889  bytes 55931533 (53.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23847  bytes 3192964 (3.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1103-server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         122.14.218.1    0.0.0.0         UG    0      0        0 eth1
10.0.16.0       0.0.0.0         255.255.240.0   U     0      0        0 eth0
122.14.218.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
 
 
#    VLAN1103    tinc客户端网络环境
 
[root@tinc-1103-client ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.17.103  netmask 255.255.240.0  broadcast 10.0.31.255
        inet6 fe80::5054:ff:fe03:5d82  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:82  txqueuelen 1000  (Ethernet)
        RX packets 194835  bytes 18036032 (17.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 10953  bytes 1080435 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1103-client ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.0.18.214     0.0.0.0         UG    0      0        0 eth0
10.0.16.0       0.0.0.0         255.255.240.0   U     0      0        0 eth0
 
 
#    VLAN1101    tinc服务器配置
 
[root@tinc-1101-server ~]# cd /etc/tinc/dock/
[root@tinc-1101-server dock]# ls
hosts  rsa_key.priv  tinc.conf  tinc-down  tinc-up
 
[root@tinc-1101-server dock]# cat tinc.conf
 
Name = vlan1101
ConnectTo = vlan1103
 
[root@tinc-1101-server dock]# cat tinc-up
 
ifconfig $INTERFACE 10.0.11.96 netmask 255.255.0.0
 
[root@tinc-1101-server dock]# cat hosts/vlan1101
 
Address = 122.14.192.192
Port = 655
Subnet = 10.0.0.0/20
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEArVqXGau2Qmlc5U+Jsrgqbo9xYgkJ6ojELh0JQrsfW1U6nx5cvsc/
RV9rtyA7JV1RW1TQpBxp7/2odDl4GPNaayXsB5JzCw0kc7eZ/LOeDYYrDvTxbswH
32676l7oATcZxkryqHVj5+3oYoRMBAcs2SPOkk6wreOq9dVwLYEr7onvsSakqKWf
x8wsKUZwBRLMz1z/IOpHdlrcQ/1gkT8LY64g59PDDcprkEbLBVd4vzo1wMBxroMB
+MdBSzl8SCXW/M3o+jcd81Jt82T4c8uFrUsqGOy0gTJfe9ZNChQdsfGfBw7yzXSz
fVKvxB1m6Ush0+87XiJuy9Kvgwce/afbSwIDAQAB
-----END RSA PUBLIC KEY-----
 
[root@tinc-1101-server dock]# cat hosts/vlan1103
 
Address = 122.14.218.22
Port = 655
Subnet = 10.0.16.0/20
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA5sVVhxiDBsqRaOBMUrTrn0f/84E38bPGPfvpYTZHNZtiPXwsAoiX
vqw6v7u8PlllACzs5jvbqq0lXKmRs5ehEruSaFHu8jATyCvVvmXmWjF4iCUNH7y+
19QQNYUmtPh3caI3z/t2RwGYEtccXhJDzuotTfh3iu8QRjpo92MpA7gN408ouH43
dRLjOcGrcE9Z+2NmQOU4rNPMeBCvXeBaYr/wNK/dCGpOPLEyqUqELoT/ZRnT8965
+djxigepbQjBpfAkXVQ0KkLhtBpN/8mORsbzLsEn5j1eriaLS3ulpmAjeLe6BUOJ
a81mbjLf+NJey5mqKOreGW69O4m2aue6UwIDAQAB
-----END RSA PUBLIC KEY-----
 
 
#    VLAN1103    tinc服务器配置
 
[root@tinc-1103-server ~]# cd /etc/tinc/dock/
[root@tinc-1103-server dock]# ls
hosts  rsa_key.priv  tinc.conf  tinc-down  tinc-up
 
[root@tinc-1103-server dock]# cat tinc.conf
 
Name = vlan1103
ConnectTo = vlan1101
 
[root@tinc-1103-server dock]# cat tinc-up
 
ifconfig $INTERFACE 10.0.18.214 netmask 255.255.0.0
 
[root@tinc-1103-server dock]# cat hosts/vlan1101
 
Address = 122.14.192.192
Port = 655
Subnet = 10.0.0.0/20
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEArVqXGau2Qmlc5U+Jsrgqbo9xYgkJ6ojELh0JQrsfW1U6nx5cvsc/
RV9rtyA7JV1RW1TQpBxp7/2odDl4GPNaayXsB5JzCw0kc7eZ/LOeDYYrDvTxbswH
32676l7oATcZxkryqHVj5+3oYoRMBAcs2SPOkk6wreOq9dVwLYEr7onvsSakqKWf
x8wsKUZwBRLMz1z/IOpHdlrcQ/1gkT8LY64g59PDDcprkEbLBVd4vzo1wMBxroMB
+MdBSzl8SCXW/M3o+jcd81Jt82T4c8uFrUsqGOy0gTJfe9ZNChQdsfGfBw7yzXSz
fVKvxB1m6Ush0+87XiJuy9Kvgwce/afbSwIDAQAB
-----END RSA PUBLIC KEY-----
 
[root@tinc-1103-server dock]# cat hosts/vlan1103
 
Address = 122.14.218.22
Port = 655
Subnet = 10.0.16.0/20
 
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEA5sVVhxiDBsqRaOBMUrTrn0f/84E38bPGPfvpYTZHNZtiPXwsAoiX
vqw6v7u8PlllACzs5jvbqq0lXKmRs5ehEruSaFHu8jATyCvVvmXmWjF4iCUNH7y+
19QQNYUmtPh3caI3z/t2RwGYEtccXhJDzuotTfh3iu8QRjpo92MpA7gN408ouH43
dRLjOcGrcE9Z+2NmQOU4rNPMeBCvXeBaYr/wNK/dCGpOPLEyqUqELoT/ZRnT8965
+djxigepbQjBpfAkXVQ0KkLhtBpN/8mORsbzLsEn5j1eriaLS3ulpmAjeLe6BUOJ
a81mbjLf+NJey5mqKOreGW69O4m2aue6UwIDAQAB
-----END RSA PUBLIC KEY-----
 
 
 
#    VLAN1101    tinc服务器启动
 
[root@tinc-1101-server dock]# ls
hosts  rsa_key.priv  tinc.conf  tinc-down  tinc-up
[root@tinc-1101-server dock]# tincd -n dock -D -d 3
tincd 1.0.35 starting, debug level 3
/dev/net/tun is a Linux tun/tap device (tun mode)
Executing script tinc-up
Listening on 0.0.0.0 port 655
Listening on :: port 655
Ready
Trying to connect to vlan1103 (122.14.218.22 port 655)
Error while connecting to vlan1103 (122.14.218.22 port 655): Connection refused
Could not set up a meta connection to vlan1103
Trying to re-establish outgoing connection in 5 seconds
Purging unreachable nodes
Connection from 122.14.218.22 port 34033
Got ID from <unknown> (122.14.218.22 port 34033)
Sending ID to vlan1103 (122.14.218.22 port 34033)
Sending METAKEY to vlan1103 (122.14.218.22 port 34033)
Got METAKEY from vlan1103 (122.14.218.22 port 34033)
Sending CHALLENGE to vlan1103 (122.14.218.22 port 34033)
Got CHALLENGE from vlan1103 (122.14.218.22 port 34033)
Got CHAL_REPLY from vlan1103 (122.14.218.22 port 34033)
Sending CHAL_REPLY to vlan1103 (122.14.218.22 port 34033)
Sending ACK to vlan1103 (122.14.218.22 port 34033)
Got ACK from vlan1103 (122.14.218.22 port 34033)
Connection with vlan1103 (122.14.218.22 port 34033) activated
Sending ADD_SUBNET to vlan1103 (122.14.218.22 port 34033)
Sending ADD_EDGE to everyone (BROADCAST)
Got ADD_SUBNET from vlan1103 (122.14.218.22 port 34033)
Forwarding ADD_SUBNET from vlan1103 (122.14.218.22 port 34033)
Got ADD_EDGE from vlan1103 (122.14.218.22 port 34033)
Forwarding ADD_EDGE from vlan1103 (122.14.218.22 port 34033)
UDP address of vlan1103 set to 122.14.218.22 port 655
Sending ANS_KEY to vlan1103 (122.14.218.22 port 34033)
Sending REQ_KEY to vlan1103 (122.14.218.22 port 34033)
Sending PACKET to vlan1103 (122.14.218.22 port 34033)
Sending PACKET to vlan1103 (122.14.218.22 port 34033)
Got ANS_KEY from vlan1103 (122.14.218.22 port 34033)
Got ANS_KEY from vlan1103 (122.14.218.22 port 34033)
Already connected to vlan1103
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Got PING from vlan1103 (122.14.218.22 port 34033)
Sending PONG to vlan1103 (122.14.218.22 port 34033)
Sending PING to vlan1103 (122.14.218.22 port 34033)
Got PONG from vlan1103 (122.14.218.22 port 34033)
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Got PING from vlan1103 (122.14.218.22 port 34033)
Sending PONG to vlan1103 (122.14.218.22 port 34033)
Sending PING to vlan1103 (122.14.218.22 port 34033)
Got PONG from vlan1103 (122.14.218.22 port 34033)
 
[root@tinc-1101-server ~]# ifconfig
dock: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.0.11.96  netmask 255.255.0.0  destination 10.0.11.96
        inet6 fe80::6056:1b85:69aa:e108  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 16  bytes 1272 (1.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17  bytes 1320 (1.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.11.96  netmask 255.255.240.0  broadcast 10.0.15.255
        inet6 fe80::5054:ff:fe03:5d84  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:84  txqueuelen 1000  (Ethernet)
        RX packets 193050  bytes 16201354 (15.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2158  bytes 188982 (184.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 122.14.192.192  netmask 255.255.255.0  broadcast 122.14.192.255
        inet6 fe80::5054:1ff:fe03:c2  prefixlen 64  scopeid 0x20<link>
        ether 52:54:01:03:00:c2  txqueuelen 1000  (Ethernet)
        RX packets 1187247  bytes 94384926 (90.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 24151  bytes 3530531 (3.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1101-server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         122.14.192.1    0.0.0.0         UG    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.240.0   U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 dock
122.14.192.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
 
#    VLAN1103    tinc服务器启动
 
[root@tinc-1103-server dock]# ls
hosts  rsa_key.priv  tinc.conf  tinc-down  tinc-up
[root@tinc-1103-server dock]# tincd -n dock -D -d 3
tincd 1.0.35 starting, debug level 3
/dev/net/tun is a Linux tun/tap device (tun mode)
Executing script tinc-up
Listening on 0.0.0.0 port 655
Listening on :: port 655
Ready
Trying to connect to vlan1101 (122.14.192.192 port 655)
Connected to vlan1101 (122.14.192.192 port 655)
Sending ID to vlan1101 (122.14.192.192 port 655)
Got ID from vlan1101 (122.14.192.192 port 655)
Sending METAKEY to vlan1101 (122.14.192.192 port 655)
Got METAKEY from vlan1101 (122.14.192.192 port 655)
Sending CHALLENGE to vlan1101 (122.14.192.192 port 655)
Got CHALLENGE from vlan1101 (122.14.192.192 port 655)
Sending CHAL_REPLY to vlan1101 (122.14.192.192 port 655)
Got CHAL_REPLY from vlan1101 (122.14.192.192 port 655)
Sending ACK to vlan1101 (122.14.192.192 port 655)
Got ACK from vlan1101 (122.14.192.192 port 655)
Connection with vlan1101 (122.14.192.192 port 655) activated
Sending ADD_SUBNET to vlan1101 (122.14.192.192 port 655)
Sending ADD_EDGE to everyone (BROADCAST)
Got ADD_SUBNET from vlan1101 (122.14.192.192 port 655)
Forwarding ADD_SUBNET from vlan1101 (122.14.192.192 port 655)
Got ADD_EDGE from vlan1101 (122.14.192.192 port 655)
Forwarding ADD_EDGE from vlan1101 (122.14.192.192 port 655)
UDP address of vlan1101 set to 122.14.192.192 port 655
Sending ANS_KEY to vlan1101 (122.14.192.192 port 655)
Got ANS_KEY from vlan1101 (122.14.192.192 port 655)
Got REQ_KEY from vlan1101 (122.14.192.192 port 655)
Sending ANS_KEY to vlan1101 (122.14.192.192 port 655)
Got PACKET from vlan1101 (122.14.192.192 port 655)
Got PACKET from vlan1101 (122.14.192.192 port 655)
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Sending PING to vlan1101 (122.14.192.192 port 655)
Got PONG from vlan1101 (122.14.192.192 port 655)
Got PING from vlan1101 (122.14.192.192 port 655)
Sending PONG to vlan1101 (122.14.192.192 port 655)
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Purging unreachable nodes
Sending PING to vlan1101 (122.14.192.192 port 655)
Got PONG from vlan1101 (122.14.192.192 port 655)
Got PING from vlan1101 (122.14.192.192 port 655)
Sending PONG to vlan1101 (122.14.192.192 port 655)
 
[root@tinc-1103-server ~]# ifconfig
dock: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 10.0.18.214  netmask 255.255.0.0  destination 10.0.18.214
        inet6 fe80::5261:4f20:9b70:6fb  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 16  bytes 1272 (1.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 17  bytes 1320 (1.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.18.214  netmask 255.255.240.0  broadcast 10.0.31.255
        inet6 fe80::5054:ff:fe03:5d81  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:81  txqueuelen 1000  (Ethernet)
        RX packets 285789  bytes 26494124 (25.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1903  bytes 170526 (166.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 122.14.218.22  netmask 255.255.255.0  broadcast 122.14.218.255
        inet6 fe80::5054:1ff:fe03:bf  prefixlen 64  scopeid 0x20<link>
        ether 52:54:01:03:00:bf  txqueuelen 1000  (Ethernet)
        RX packets 653961  bytes 63134698 (60.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 25078  bytes 3578315 (3.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
[root@tinc-1103-server ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         122.14.218.1    0.0.0.0         UG    0      0        0 eth1
10.0.0.0        0.0.0.0         255.255.0.0     U     0      0        0 dock
10.0.16.0       0.0.0.0         255.255.240.0   U     0      0        0 eth0
122.14.218.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
 
#    VLAN1101    tinc客户端测试
 
[root@tinc-1101-client ~]# ping -c 7 10.0.17.103
PING 10.0.17.103 (10.0.17.103) 56(84) bytes of data.
64 bytes from 10.0.17.103: icmp_seq=1 ttl=62 time=1.06 ms
64 bytes from 10.0.17.103: icmp_seq=2 ttl=62 time=1.23 ms
64 bytes from 10.0.17.103: icmp_seq=3 ttl=62 time=0.969 ms
64 bytes from 10.0.17.103: icmp_seq=4 ttl=62 time=1.32 ms
64 bytes from 10.0.17.103: icmp_seq=5 ttl=62 time=1.58 ms
64 bytes from 10.0.17.103: icmp_seq=6 ttl=62 time=1.21 ms
64 bytes from 10.0.17.103: icmp_seq=7 ttl=62 time=4.27 ms
 
--- 10.0.17.103 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6007ms
rtt min/avg/max/mdev = 0.969/1.666/4.274/1.080 ms
 
[root@tinc-1101-client ~]# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.9.201  netmask 255.255.240.0  broadcast 10.0.15.255
        inet6 fe80::5054:ff:fe03:5d83  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:83  txqueuelen 1000  (Ethernet)
        RX packets 160482  bytes 13320181 (12.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11264  bytes 1119505 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 
#    VLAN1103    tinc客户端测试
 
[root@tinc-1103-client ~]# ping -c 7 10.0.9.201
PING 10.0.9.201 (10.0.9.201) 56(84) bytes of data.
64 bytes from 10.0.9.201: icmp_seq=1 ttl=62 time=2.80 ms
64 bytes from 10.0.9.201: icmp_seq=2 ttl=62 time=1.78 ms
64 bytes from 10.0.9.201: icmp_seq=3 ttl=62 time=1.27 ms
64 bytes from 10.0.9.201: icmp_seq=4 ttl=62 time=1.64 ms
64 bytes from 10.0.9.201: icmp_seq=5 ttl=62 time=1.15 ms
64 bytes from 10.0.9.201: icmp_seq=6 ttl=62 time=1.32 ms
64 bytes from 10.0.9.201: icmp_seq=7 ttl=62 time=1.13 ms
 
--- 10.0.9.201 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6008ms
rtt min/avg/max/mdev = 1.138/1.589/2.809/0.548 ms
 
[root@tinc-1103-client ~]# ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.17.103  netmask 255.255.240.0  broadcast 10.0.31.255
        inet6 fe80::5054:ff:fe03:5d82  prefixlen 64  scopeid 0x20<link>
        ether 52:54:00:03:5d:82  txqueuelen 1000  (Ethernet)
        RX packets 218602  bytes 20216949 (19.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 11083  bytes 1098896 (1.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
 
原文地址:https://www.cnblogs.com/www1707/p/13904863.html