MULTI ethernet bonding
Posted 04-05-2020 at 05:23 PM by karanis
Tags net
# /etc/rc.d/rc.inet1.conf HAS 2 if enabled at boot
# eth0: no DNS, no static IP , eth1: no DNS, no static IP
/sbin/ifconfig eth0 down
/sbin/ifconfig eth1 down
/sbin/modprobe bonding mode=0 miimon=100
/usr/sbin/ip addr add 192.168.2.IP/24 dev bond0
/usr/sbin/ip link set bond0 up
/usr/sbin/ip link set eth0 master bond0
/usr/sbin/ip link set eth1 master bond0
/sbin/route add default gw 192.168.2.1
/sbin/ifconfig eth0:1 192.168.1.69 netmask 255.255.255.255 up
# eth0: no DNS, no static IP , eth1: no DNS, no static IP
/sbin/ifconfig eth0 down
/sbin/ifconfig eth1 down
/sbin/modprobe bonding mode=0 miimon=100
/usr/sbin/ip addr add 192.168.2.IP/24 dev bond0
/usr/sbin/ip link set bond0 up
/usr/sbin/ip link set eth0 master bond0
/usr/sbin/ip link set eth1 master bond0
/sbin/route add default gw 192.168.2.1
/sbin/ifconfig eth0:1 192.168.1.69 netmask 255.255.255.255 up
Total Comments 0