Difference between revisions of "CentOS interface configuration"

From Teknologisk videncenter
Jump to: navigation, search
m (Created page with "=Example= File: /etc/sysconfig/network-scripts/ifcfg-eth1 <source lang=cli> # IBM QETH DEVICE=eth1 BOOTPROTO=static IPADDR=192.168.70.87 NETMASK=255.255.255.0 ONBOOT=yes TYPE=Et...")
 
m (Example)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
File: /etc/sysconfig/network-scripts/ifcfg-eth1
 
File: /etc/sysconfig/network-scripts/ifcfg-eth1
 
<source lang=cli>
 
<source lang=cli>
# IBM QETH
+
# COMMENT LINE
 
DEVICE=eth1
 
DEVICE=eth1
BOOTPROTO=static
+
BOOTPROTO=none
 
IPADDR=192.168.70.87
 
IPADDR=192.168.70.87
 
NETMASK=255.255.255.0
 
NETMASK=255.255.255.0
Line 11: Line 11:
 
TYPE=Ethernet
 
TYPE=Ethernet
 
</source>
 
</source>
 +
 +
To start eth1 issue the '''service network restart''' command.
 +
[[Category:CentOS]]

Latest revision as of 10:05, 15 September 2015

Example

File: /etc/sysconfig/network-scripts/ifcfg-eth1

# COMMENT LINE
DEVICE=eth1
BOOTPROTO=none
IPADDR=192.168.70.87
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet

To start eth1 issue the service network restart command.