Created
December 8, 2015 10:03
-
-
Save kentarosasaki/e7db8ba69b5168525573 to your computer and use it in GitHub Desktop.
Ubuntu/Debianにおいて再起動無しでLinux Bonding(VLAN-tagged)を構成するための黒魔術 ref: http://qiita.com/kentarosasaki/items/d68d61f70d1ab4f67bb5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/network/interfaces | |
auto lo | |
iface lo inet loopback | |
auto bond0 | |
iface bond0 inet manual | |
mtu 1500 | |
bond-mode balance-alb | |
bond-miimon 100 | |
bond-slaves em1 em2 | |
auto bond0.1234 | |
iface bond0.1234 inet static | |
address 10.x.y.50 | |
netmask 255.255.255.0 | |
gateway 10.x.y.1 | |
network 10.x.y.0 | |
vlan_raw_device bond0 | |
auto em1 | |
iface em1 inet manual | |
bond-master bond0 | |
auto em2 | |
iface em2 inet manual | |
bond-master bond0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ifdown bond0 && ifup bond0 && ifup em1 && ifup em2 && ifup bond0.1234 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment