-
-
Save rainly/9128180 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| RH & CentOS | |
| 1. mv /etc/modprobe.d/ipv6.conf /var/tmp | |
| 2. cat /etc/modprobe.d/bonding.conf | |
| alias bond0 bonding | |
| options bond0 mode=0 miimon=100 downdelay=200 updelay=200 | |
| 3. cat /etc/sysconfig/network-scripts/ifcfg-bond0 | |
| DEVICE=bond0 | |
| IPADDR= | |
| NETMASK=255.255.255.0 | |
| GATEWAY= | |
| NM_CONTROLLER=no | |
| ONBOOT=yes | |
| BOOTPROTO=none | |
| USERCTL=no | |
| NOZEROCONF=yes | |
| 4. cat /etc/sysconfig/network-scripts/ifcfg-em1 | |
| DEVICE=em1 | |
| USERCTL=no | |
| ONBOOT=yes | |
| NM_CONTROLLER=no | |
| MASTER=bond0 | |
| SLAVE=yes | |
| BOOTPROTO=none | |
| NOZEROCONF=yes | |
| 5. cat /etc/sysconfig/network-scripts/ifcfg-em2 | |
| DEVICE=em2 | |
| USERCTL=no | |
| ONBOOT=yes | |
| NM_CONTROLLER=no | |
| MASTER=bond0 | |
| SLAVE=yes | |
| BOOTPROTO=none | |
| NOZEROCONF=yes | |
| 6. sync; reboot | |
| Ubuntu | |
| apt-get install ifenslave | |
| vi /etc/modprobe.d/bonding.conf | |
| alias bond0 bonding | |
| options bonding mode=0 miimon=100 downdelay=200 updelay=200 | |
| vi /etc/network/interfaces | |
| auto eth0 | |
| iface eth0 inet manual | |
| bond-master bond0 | |
| bond-primary eth0 eth1 | |
| auto eth1 | |
| iface eth1 inet manual | |
| bond-master bond0 | |
| bond-primary eth0 eth1 | |
| auto bond0 | |
| iface bond0 inet static | |
| address 192.168.1.10 | |
| gateway 192.168.1.1 | |
| netmask 255.255.255.0 | |
| bond-mode balance-rr | |
| bond-miimon 200 | |
| bond-slaves none | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment