返回首頁
當前位置: 主頁 > 精通Office > Ubuntu教程 >

CentOS7 ifconfig Command not found

時間:2014-08-29 08:56來源:知行網www.aotfjk.live 編輯:麥田守望者

CentOS7剛發布,我忍不住把DELL T410從CentOS6升級到CentOS7。好不容易等安裝結束后,立即配置網絡,然后在yum源上安裝環境。可是執行ifconfig的時候系統提示讓我傻了眼:

[[email protected] ~]# ifconfig
-bash: ifconfig: 未找到命令
這可是新安裝的系統,怎么會沒找到熟悉ifconfig命令呢?網上搜一下,一大堆人都在說是環境變量問題,但我確信我的/etc/profile設置是對的,于是終于找到一篇文章說是安裝下net-tools就好

[[email protected] ~]# yum install net-tools
已加載插件:fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base | 3.6 kB 00:00:00
extras | 3.3 kB 00:00:00
updates | 3.4 kB 00:00:00
updates/7/x86_64/primary_db | 2.8 MB 00:00:08
Determining fastest mirrors
軟件包 net-tools-2.0-0.17.20131004git.el7.x86_64 已安裝并且是最新版本
無須任何處理
因為我已安裝過net-tools所以提示我已經安裝,現在熟悉的ifconfig又回來了

[[email protected] ~]# ifconfig
em2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 78:2b:cb:41:9a:03 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.48 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::7a2b:cbff:fe41:9a02 prefixlen 64 scopeid 0x20<link>
ether 78:2b:cb:41:9a:02 txqueuelen 1000 (Ethernet)
RX packets 82668 bytes 7831470 (7.4 MiB)
RX errors 0 dropped 153388 overruns 0 frame 0
TX packets 1276 bytes 204913 (200.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 12 bytes 1071 (1.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12 bytes 1071 (1.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 

CentOS7 ifconfig Command not found
------分隔線----------------------------
標簽(Tag):Ubuntu Linux Android 操作系統 Unix fedora debian
------分隔線----------------------------
推薦內容
猜你感興趣
湖南刘雪龙黑彩