-
bridge-utils
をインストール済みであること。
1NICの場合
4NICの場合
cat > /etc/sysconfig/network <<EOF
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAY=192.168.100.1
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-br0 <<EOF
TYPE=Bridge
DEVICE=br0
IPADDR=192.168.100.11
NETMASK=255.255.255.0
IPV6INIT=no
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-br1 <<EOF
TYPE=Bridge
DEVICE=br1
IPADDR=192.168.0.11
NETMASK=255.255.255.0
IPV6INIT=no
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-bond0 <<EOF
TYPE=Bond
DEVICE=bond0
BONDING_OPTS="mode=active-backup miimon=100"
BRIDGE=br0
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-bond1 <<EOF
TYPE=Bond
DEVICE=bond1
BONDING_OPTS="mode=active-backup miimon=100"
BRIDGE=br1
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp3s0f0 <<EOF
DEVICE=enp3s0f0
MASTER=bond0
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp60s0 <<EOF
DEVICE=enp60s0
MASTER=bond0
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-ens9 <<EOF
DEVICE=ens9
MASTER=bond1
SLAVE=yes
EOF
cat > /etc/sysconfig/network-scripts/ifcfg-enp0s20u1 <<EOF
DEVICE=enp0s20u1
MASTER=bond1
SLAVE=yes
EOF
cat > /etc/sysctl.d/98-disableipv6.conf <<EOF
net.ipv6.conf.all.disable_ipv6 = 1
EOF