Friday, June 4, 2021

To Enable ethernet and make persistent in CentOS

 CENTOS :

ip r to check ip address

sudo ip addr add 10.102.66.200/24 dev enp0s25

nmcli to check ethernet 

nmcli dev connect ethernetname to enable port

ip link set dev enp0s25 up

Open the configuration file for your network interface.

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Add the following settings to the file:

DEVICE=enp3s0

ONBOOT=yes

IPADDR=192.168.1.10

NETMASK=255.255.255.0

GATEWAY=192.168.1.1


No comments: