Popular Posts

Jul 1, 2021

How to Manually Set Your IP in Linux - Set IP Address in Linux with ifcfg-eth0

 

APPLIES TO :  RHEL

ISSUE :  How to configure network configuration file ifcfg-eth0. OR ifcfg-eth0 file format

GOAL :  Configure IP address in RHEL server in ifcfg-eth0 file

SOLUTION :  Create a file /etc/sysconfig/networkscripts/ifcfg-eth0 with below sample. 

Prerequisites :   


NAME=eth0

DEVICE=eth0

ONBOOT=yes

NETBOOT=yes

BOOTPROTO=none

TYPE=Ethernet

PROXY_METHOD=none

BROWSER_ONLY=no

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

IPADDR=192.168.1.10

PREFIX=24

GATEWAY=192.168.1.1

DNS1=192.168.1.101

DNS2=192.168.1.102

DNS3=192.168.1.103

DOMAIN="sagariah.com"

/etc/resolv.conf will automatically configured after every reboot by network manager

# Generated by NetworkManager

search sagariah.com

nameserver 192.168.1.101

nameserver 192.168.1.102

nameserver 192.168.1.103




~Judi~



Popular Posts