1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Fedora21でBridgeとBonding

Last updated at Posted at 2015-02-15
  • 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
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?