网络相关命令

网络通信指令:
write
write <用户名>
向另外一个用户发信息,以Ctrl+D作为结束。
root@lee-pc:/home/lee# write lee
write: warning: write will appear from lee
hello how are you


wall
wall [message] [文件名]
向所有用户广播信息。


ping命令:测试网络连通性
ping -c 数字 地址(指定次数)
lee@lee-pc:~$ ping -c 3 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=2.97 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=1.22 ms
64 bytes from 192.168.1.1: icmp_req=3 ttl=64 time=2.68 ms


--- 192.168.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 1.222/2.293/2.970/0.766 ms
lee@lee-pc:~$
ping -s 数字 地址(指定包大小)
lee@lee-pc:~$ ping -s 30000 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 30000(30028) bytes of data.
30008 bytes from 192.168.1.1: icmp_req=1 ttl=64 time=27.2 ms
30008 bytes from 192.168.1.1: icmp_req=2 ttl=64 time=13.2 ms
30008 bytes from 192.168.1.1: icmp_req=3 ttl=64 time=54.7 ms
30008 bytes from 192.168.1.1: icmp_req=4 ttl=64 time=14.5 ms
30008 bytes from 192.168.1.1: icmp_req=5 ttl=64 time=13.6 ms
30008 bytes from 192.168.1.1: icmp_req=6 ttl=64 time=13.3 ms
30008 bytes from 192.168.1.1: icmp_req=7 ttl=64 time=34.1 ms
^C
--- 192.168.1.1 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7012ms
rtt min/avg/max/m


ifconfig 查看网络设置信息。
ifconfig 选项[-a] [网卡设备标识]
 -a 显示所有网卡信息

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值