10
10

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.

ArchLinuxでネットワーク設定 (ブリッジ、bonding)

Last updated at Posted at 2014-07-08
パッケージインストール
pacman -S netctl ifenslave

ip_forward設定 (必須)

ip_forward設定
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/99-sysctl.conf

DHCPの場合

netctl

/etc/netctl/br0
Interface=br0
Connection=bridge
BindsToInterfaces=(enp3s0)

IP=dhcp
登録
netctl enable br0

固定の場合

/etc/netctl/br0
Interface=br0
Connection=bridge
BindsToInterfaces=(enp3s0)

IP=static
Address=('192.168.100.61/24' '192.168.11.61/24')
Gateway='192.168.100.1'
DNS=('8.8.8.8' '8.8.4.4')
登録
netctl enable br0

IPコマンドでbr0の表示

ip a s br0

bonding

/etc/netctl/bonding
Description='Bond Interface'
Interface='bond0'
Connection=bond
BindsToInterfaces=(enp4s0 enp0s29f7u1)

IP=static
Address=('192.168.100.61/24')
Gateway='192.168.100.1'
DNS=('8.8.8.8' '8.8.4.4')
/etc/modprobe.d/bonding.conf
options bonding miimon=100
options bonding mode=active-backup
# options bonding primary=enp4s0
登録
netctl enable bonding

再起動し確認

cat /proc/net/bonding/bond0
10
10
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
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?