CentOS7 just released, I couldn't help upgrading the Dell T410 from CentOS6 to CentOS7. Finally, when the installation is complete, configure the network immediately, then install the environment on the Yum source. But the system prompts me to be silly when performing ifconfig:
[Root@chaoge ~]# Ifconfig
-bash:ifconfig: Command not found
This is a newly installed system, how can not find familiar ifconfig command? Online search, a lot of people are said to be environmental variables, but I am sure my/etc/profile set is right, so finally found an article that is installed under the Net-tools good
The code is as follows |
Copy Code |
[Root@chaoge ~]# Yum Install Net-tools
|
Loaded plugins: Fastestmirror
The code is as follows |
Copy Code |
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 |
Package net-tools-2.0-0.17.20131004git.el7.x86_64 has been installed and is the latest version
No processing required
Because I have installed net-tools so prompt I have installed, now the familiar ifconfig is back again
The code is as follows |
Copy Code |
[Root@chaoge ~]# 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 12 76 bytes 204913 (200.1 KiB) TX errors 0 dropped 0 overruns 0&NB Sp 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 loop txqueuelen 0 (local loopback RX packets 12 Bytes 1071 (1.0 KiB) & nbsp; RX Errors 0 dropped 0 overruns frame 0 0 nbsp TX packets 12 Bytes 1071 (1.0 KiB) TX errors 0 dropped 0 overru NS 0 carrier 0 collisions 0 |