centos7 ifconfig命令不存在

安装centos7.1后提示ifconfig:command not find

centos7 取消了ifconfig

解决办法:

用 ip addr 查看IP地址

或者安装ifconfig

yum install net-tools


[root@localhost ~]# 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: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether c0:3f:d5:e2:4e:59 brd ff:ff:ff:ff:ff:ff
    inet 172.16.176.127/20 brd 172.16.191.255 scope global dynamic enp3s0
       valid_lft 2590971sec preferred_lft 2590971sec
    inet6 fe80::c23f:d5ff:fee2:4e59/64 scope link
       valid_lft forever preferred_lft forever


你可能感兴趣的:(command,ifconfig,IP地址)