How to Set the IP Address in Redhat 7 || RHEL7 or Centos7 Step by Step

How to Set the IP Address in Redhat 7 || RHEL7 or Centos7 Step by Step

go to terminal 

login to root 

# su -

# ip a to check the ip address and details

# dhclient  use to request a client from the dns server

# browse to the below location


cd /etc/sysconfig/network-scripts


open vi ifcfg-eno(the connection file)

edit the connection file and remove

IPV6 records and add 


ONBOOT = YES

IPADDR = 192.168.160.32

PREFIX = 24

GATEWAY = 192.168.160.1


save the file and cat open the file to check if its saved properly.


then ifdown ifcfg-eno 

and ifup ifcfg-eno


restart the pc by using shutdown -r and see the results


reference : https://www.youtube.com/watch?v=oQd5eG9BZXE

 

Comments

Popular Posts