CentOS 7 網路設定
# cd /etc/sysconfig/network-scripts/
# vi ifcfg-'網路卡編號
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno12345678
UUID=a51164e2-5d01-41e4-8cd7-4e79f9e2f682
DEUICE=eno12345678
ONBOOT=no
BOOTPROTO=的參數dhcp、none、static
ONBOOT=yes、no
IPADDR=x.x.x.x
NETMASK=x.x.x.x
GATEWAY=x.x.x.x
DNS1=x.x.x.x
DNS2=x.x.x.x
# cd /etc/sysconfig/network-scripts/
# vi ifcfg-'網路卡編號
TYPE=Ethernet
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno12345678
UUID=a51164e2-5d01-41e4-8cd7-4e79f9e2f682
DEUICE=eno12345678
ONBOOT=no
BOOTPROTO=的參數dhcp、none、static
ONBOOT=yes、no
IPADDR=x.x.x.x
NETMASK=x.x.x.x
GATEWAY=x.x.x.x
DNS1=x.x.x.x
DNS2=x.x.x.x
留言
張貼留言