Firstly, install vlan and bonding packages on the Ubuntu server:
apt-get install vlan
apt-get install ifenslave
Enter these lines on /etc/modules because we want to enable the modules at startup.
If there is no network connection, you need to install these packages from CDROM or install these packages while OS setup.
This configuration can be used for bonding and VLAN tagging on server. You can define additional VLAN interfaces. This configuration if for Active-Passive interfaces. We need to define primary interface as seen in eth0. If you do not want to configure your physical switch or do not want to struggle with your network administrator, this is the best way. When eth0 is lost, your secondary interface (eth1 in this example) will be used.
If you want to use active-active setup, the best way is to setup LACP bonding, but you need to configure your physical switch ports for LACP.
iface lo inet loopback
iface bond0 inet manual
iface eth0 inet manual
iface eth1 inet manual
iface bond0.430 inet static
bond0 is your bonding interface.
bond0.430 is your VLAN tagged bonding interface. 430 is your VLAN.
If you want to check bonding status, you can check here: