在Windows Server 2012 R2 安裝完CentOS 6.7 minimal ,預設網卡是沒有啟動的,設定方式如下:
# cd /etc/sysconfig/network-scripts
# vi ifcfg-eth0
== default config ==
EVICE=eth0
TYPE=Ethernet
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
== modified ===
EVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
NETWORK=xx.xx.xx.xx
NETMASK=255.255.255.0
IPADDR=xx.xx.xx.xx
GATEWAY=xx.xx.xx.xx
IPV6INIT=yes
IPV6ADDR=2001:XXX:XXX:XXX::XXXX/64
IPV6_DEFAULTGW=2001:XXX:XXX:XXX::XXXX
註:
NETWORKING_IPV6=yes|no – 開啟或關閉IPv6
IPV6INIT=yes – Enable or disable IPv6 configuration for all interfaces.
沒有留言:
張貼留言