Centos7和RHEL7最小安装中替换ifconfig和netstat的命令
2017-11-05 11:16
525 查看
ifconfig改用ip addr
查看介面传输状态
netstat改用ss
netstat是很重要的连线观察工具,使用新的指令ss来取代,功能也是差不多。
TCP listen
UDP listen
TCP连线
traceroute/traceroute6改成tracepath
route改为
route table 看起来有点不习惯
route6 IPv6的route table
arp改为ip nei查看附件的arp和IPv6的neighbor,这个把v6 v4整合的还不错。
网卡接口开关
改为
仅为记录
# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 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: ens192: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:50:56:ba:0b:07 brd ff:ff:ff:ff:ff:ff inet 163.17.xx.xx/25 brd 163.17.40.127 scope global ens192 valid_lft forever preferred_lft forever inet6 2001:288:5400:0:250:56ff:feba:b07/64 scope global dynamic valid_lft 2591718sec preferred_lft 2591718sec inet6 fe80::250:56ff:feba:b07/64 scope link valid_lft forever preferred_lft forever
查看介面传输状态
-s是详细显示
# ip -s link 1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 4400 45 0 0 0 0 TX: bytes packets errors dropped carrier collsns 4400 45 0 0 0 0 2: ens192: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 00:50:56:ba:0b:07 brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 207938930 2541628 0 1809366 0 495 TX: bytes packets errors dropped carrier collsns 788417 8512 0 0 0 0
# ip link 1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens192: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 00:50:56:ba:0b:07 brd ff:ff:ff:ff:ff:ff
netstat改用ss
netstat是很重要的连线观察工具,使用新的指令ss来取代,功能也是差不多。
TCP listen
# ss -lt
UDP listen
# ss -ul
TCP连线
# ss -t
traceroute/traceroute6改成tracepath
# tracepath 168.95.1.1 1: 163.17.XX.XX 0.187ms pmtu 1500 1: 163.17.40.126 0.263ms 2: 163.17.38.250 0.555ms 3: br-NCHU-APTG.TANet.edu.tw 19.799ms 4: no reply 5: tchn-3302.hinet.net 1.395ms asymm 6 6: tchn-3011.hinet.net 15.089ms 7: 202-39-179-185.HINET-IP.hinet.net 1.533ms 8: 202-39-179-173.HINET-IP.hinet.net 4.435ms reached Resume: pmtu 1500 hops 8 back 248
route改为
ip -route
route table 看起来有点不习惯
# ip route
route6 IPv6的route table
# ip -6 rou
arp改为ip nei查看附件的arp和IPv6的neighbor,这个把v6 v4整合的还不错。
# ip neighbor
网卡接口开关
# ifconfig eth1 up # ifconfig eth1 down
改为
# ip l set eth1 up # ip l set eth1 down
仅为记录
相关文章推荐
- 最小版本CentOS7 安装完成后ifconfig命令不能用
- CentOS 7.2最小安装后不能使用ifconfig,netstat等命令解决方法?
- centos7安装ifconfig命令
- linux学习教程(一)(安装篇)centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- CentOS最小安装无法使用ifconfig命令
- centos7没有安装ifconfig命令的解决方法
- 最小化安装centos7不能执行ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7安装ifconfig命令
- 解决centos7最小化安装没有ifconfig和netstat
- RHEL7精简安装后fuser或ifconfig命令提示command not found
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- centos7没有安装ifconfig命令的解决方法
- (3)centos7没有安装ifconfig命令的解决方法---学习笔记
- 虚拟机 ----- 最小安装如何安装设置ip ,并启用ifconfig命令
- centos7 最小化安装没有ifconfig 命令