Difference between revisions of "redhat centos static network ifcfg example"

From thelinuxwiki
Jump to: navigation, search
(Created page with "DEVICE=eth0 HWADDR=E6:97:60:37:9F:9F TYPE=Ethernet UUID=7e955f19-fe9c-418e-9824-ad7eed980eff ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none NETWORK=10.10.150.0 NETMASK=255.255.25...")
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
DEVICE=eth0
+
file /etc/sysconfig/network-scripts/ifcfg-eth0
HWADDR=E6:97:60:37:9F:9F
+
 
TYPE=Ethernet
+
DEVICE=eth0
UUID=7e955f19-fe9c-418e-9824-ad7eed980eff
+
HWADDR=E6:97:60:37:9F:9F
ONBOOT=yes
+
TYPE=Ethernet
NM_CONTROLLED=yes
+
UUID=7e955f19-fe9c-418e-9824-ad7eed980eff
BOOTPROTO=none
+
ONBOOT=yes
NETWORK=10.10.150.0
+
NM_CONTROLLED=yes
NETMASK=255.255.255.248
+
BOOTPROTO=none
IPADDR=10.10.150.4
+
NETWORK=10.10.150.0
DNS1=192.168.1.10
+
NETMASK=255.255.255.248
DNS2=10.0.0.10
+
IPADDR=10.10.150.4
GATEWAY=10.10.150.254
+
DNS1=192.168.1.10
 +
DNS2=10.0.0.10
 +
GATEWAY=10.10.150.254

Latest revision as of 13:52, 29 April 2017

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

DEVICE=eth0
HWADDR=E6:97:60:37:9F:9F
TYPE=Ethernet
UUID=7e955f19-fe9c-418e-9824-ad7eed980eff
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
NETWORK=10.10.150.0
NETMASK=255.255.255.248
IPADDR=10.10.150.4
DNS1=192.168.1.10
DNS2=10.0.0.10
GATEWAY=10.10.150.254