Enable CentOS 7.x Ethernet Ports
Situation shows Ethernet (eno2) as unavailable in the GUI Settings - Network.
It is possible to verify “eno2” is detected, but not turned on.
Confirm that “eno2” is able to acquire an IP address. Use the following command.
sudo ifup eno2
If “eno2” is able to acquire an IP address, then it is possible to edit the configuration so it is active on OS boot.
Look for and modify the configuration for “eno2” so it starts up on reboot.
To enable eno2 autoconnection look for the “ifcfg-en02” configuration file. Look for the entry “ONBOOT” edit the value to show “ONBOOT=yes”.
Example:
[root@rdlab /]# cd /etc/sysconfig/network-scripts
[root@rdlab network-scripts]# ls ifcfg-eno*
ifcfg-eno1 ifcfg-eno2
[root@rdlab network-scripts]# cat ifcfg-eno2
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eno1
UUID=7482c4f0-da35-4693-b6bc-e1dadb9f3f6f
DEVICE=eno1
ONBOOT=no
IPV6_PRIVACY=no
Edit the file with, “nano ifcfg-en02”.
Set the value for “ONBOOT=yes”.