Sunday, 11 August 2024

Auto Start Network Interface of cent os after reboot.

 When you are giving IP address in a cent os , By default that IP gets removed when the machine reboots. So you have to configure the on boot Yes to make it permanent .


  1. Create a file named [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-enp8s0 as follows:

  2. DEVICE=eth0
  3. BOOTPROTO=none
  4. ONBOOT=yes
  5. PREFIX=24
  6. IPADDR=192.168.2.203
  7. PREFIX=24
  8. GATEWAY=192.168.2.1
  9. DNS1=8.8.8.8
  10. DNS2=4.2.2.2
  11. Restart network service: systemctl restart network

No comments:

Post a Comment