/etc/sysconfig/network-scripts/ほにゃららの設定例

メモ的な

CentOS7系

外向き /etc/sysconfig/network-scripts/ifcfg-ens3

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens3
UUID=db98c5f1-bd17-46ee-bee1-65c8c4fcc53f
ONBOOT=yes
HWADDR=00:0C:29:28:85:F8
IPADDR0=***.***.***.***
PREFIX0=24
GATEWAY0=***.***.***.***
DNS1=***.***.***.***
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

内向き /etc/sysconfig/network-scripts/ifcfg-ens4

TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens4
UUID=dd62dd7f-613b-4c32-962c-cbccc25fffb5
ONBOOT=yes
HWADDR=00:0C:29:27:80:0B
IPADDR0=192.168.0.4
PREFIX0=24
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

CentOS6系

外向き /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1
TYPE=Ethernet
UUID=094e0fb0-518c-4923-8481-63bf9e77cb5d
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:0C:29:5C:C4:E2
IPADDR=***.***.***.***
PREFIX=24
GATEWAY=***.***.***.***
DNS1=***.***.***.***
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"

内向き /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
TYPE=Ethernet
UUID=78e2eecb-4130-4853-811a-fa539b0d4d3b
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:0C:29:5C:C4:D8
IPADDR=192.168.0.1
PREFIX=24
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"

Similar Posts:


Leave a Reply

Your email address will not be published. Required fields are marked *