Setup network on Centos 6.x
vim /etc/sysconfig/network-script/ifcfg-eth0
DEVICE="eth0"
HWADDR="8A:89:9D:6B:DE:8B"
NM_CONTROLLED="no"
ONBOOT="yes"
NETMASK=255.255.255.0
IPADDR=192.168.1.2
TYPE=Ethernet
vim /etc/sysconfig/network-script/ifcfg-eth1
DEVICE="eth1"
HWADDR="6E:40:8F:1C:7B:1F"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=11x.6x.1x.18x
GATEWAY=1xx.6x.1x.1
BOOTPROTO=none
eth0 = LAN
eth1 = WAN
NM_CONTROLLED = 是否使用其他網路管理程式
BOOTPROTO = DHCP
ONBOOT = 開機時啟動
啟動網路
service network start
沒有留言:
張貼留言