#!/bin/bash
# bond0 ip being set as 192.168.0.160 and default gateway as 192.168.0.1, don't forget your resolve.conf 
# which could be added on the end here like echo "dns_ip" >> /etc/resolve.conf 
/sbin/modprobe bonding
/sbin/ifconfig bond0 192.168.0.160
/sbin/route del default gw
/sbin/route add default gw 192.168.0.1
/sbin/ifenslave bond0 eth0
/sbin/ifenslave bond0 eth1
exit

