System environment:
[Email protected] ~]# cat/etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[Email protected] ~]# rpm-q centos-release
Centos-release-7-2.1511.el7.centos.2.10.x86_64
Kernel version:
[Email protected] ~]# cat/proc/version
Linux version 3.10.0-327.18.2.el7.x86_64 ([email protected]) (GCC version 4.8.3 20140911 (Red H
[Email protected] ~]# uname-a
Linux linuxidc 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu may 11:03:55 UTC x86_64 x86_64 x86_64 gnu/linux
To edit the NIC configuration file:
vi/etc/sysconfig/network-scripts/ifcfg-eno16777736
After entering the configuration file, change Onboot=no to Yes, then Wq save and exit.
Restart Web service: Systemctl Restart Network
Use the IP Add command to see if the NIC has been assigned an IP address
Test Network is healthy: (ping command)
Ping www.baidu.com
At this point, you can remotely manipulate the machine using either the CRT or the Xshell.
Network operation after initial installation of Linux