ping 是送一个ICMP的封包给那个主机
[root@cnca-test-linux /]# ping 10.10.9.158
PING 10.10.9.158 (10.10.9.158) 56(84) bytes of data.
64 bytes from 10.10.9.158: icmp_seq=0 ttl=57 time=5.79 ms
64 bytes from 10.10.9.158: icmp_seq=1 ttl=57 time=1.68 ms
64 bytes from 10.10.9.158: icmp_seq=2 ttl=57 time=8.58 ms
64 bytes from 10.10.9.158: icmp_seq=3 ttl=57 time=5.95 ms
64 bytes from 10.10.9.158: icmp_seq=4 ttl=57 time=4.46 ms
--- 10.10.9.158 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 1.685/5.295/8.583/2.247 ms, pipe 2
[root@cnca-test-linux /]#
ifconfig 设定网络参数使用的命令
[root@cnca-test-linux /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:CD:5F:B6
inet addr:10.10.81.16 Bcast:10.10.81.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fecd:5fb6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:261604 errors:0 dropped:0 overruns:0 frame:0
TX packets:7600 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21295623 (20.3 MiB) TX bytes:797222 (778.5 KiB)
Interrupt:10 Base address:0x1400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7219 errors:0 dropped:0 overruns:0 frame:0
TX packets:7219 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10461306 (9.9 MiB) TX bytes:10461306 (9.9 MiB)
ifup/ifdown 激活、关闭益而高网卡
root@cnca-test-linux /]# ifup eth0
root@cnca-test-linux /]# ifdown eth0
