linux网络参数配置方法详解

2019-10-14 21:41:51王旭

          TX packets:917 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:81417 (81.4 KB)  TX bytes:81417 (81.4 KB)

// ping vip.jb51.net

PING movie.kankan.co.sandai.net (114.80.189.60) 56(84) bytes of data.
64 bytes from 114.80.189.60: icmp_seq=1 ttl=54 time=31.2 ms
64 bytes from 114.80.189.60: icmp_seq=2 ttl=54 time=29.9 ms
64 bytes from 114.80.189.60: icmp_seq=3 ttl=54 time=31.1 ms
64 bytes from 114.80.189.60: icmp_seq=4 ttl=54 time=30.5 ms
64 bytes from 114.80.189.60: icmp_seq=5 ttl=54 time=31.4 ms
64 bytes from 114.80.189.60: icmp_seq=6 ttl=54 time=32.6 ms
64 bytes from 114.80.189.60: icmp_seq=7 ttl=54 time=30.8 ms
64 bytes from 114.80.189.60: icmp_seq=8 ttl=54 time=30.9 ms
64 bytes from 114.80.189.60: icmp_seq=9 ttl=54 time=32.0 ms
64 bytes from 114.80.189.60: icmp_seq=10 ttl=54 time=31.3 ms
64 bytes from 114.80.189.60: icmp_seq=11 ttl=54 time=31.3 ms
64 bytes from 114.80.189.60: icmp_seq=12 ttl=54 time=30.3 ms

--- movie.kankan.co.sandai.net ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11004ms
rtt min/avg/max/mdev = 29.954/31.148/32.608/0.704 ms

// netstat -nr

root@CinemaTest2:/usr/local/jdk# netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.232.2   0.0.0.0         UG        0 0          0 eth0
192.168.232.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0

// nslookup vip.jb51.net

root@CinemaTest2:/etc# nslookup vip.jb51.net
Server:         192.168.8.150
Address:        192.168.8.150#53

Non-authoritative answer:
vip.jb51.net  canonical name = movie.jb51.net.
movie.jb51.net        canonical name = movie.kankan.co.sandai.net.
Name:   movie.kankan.co.sandai.net
Address: 114.80.189.60
Name:   movie.kankan.co.sandai.net
Address: 119.147.41.209