PDA

View Full Version : [ubuntu] Bond Network Cards with Different IPs



smcc-wks
October 7th, 2011, 04:28 PM
Hello Community,

Is it possible to bond 3 network cards, all with different IP addresses as one virtual/bonded NIC? We have 3 VLANs that we would like to combine into one virtual NIC for use with Free Opensource Ghost. Each VLAN has a different IP ranged and they do not talk to each other. I have read into ifenslave but that seems to be for link aggregation/trunking for increased throughput. We just want a Gigabit link to each VLAN.

Thank you in advance,

SMCC

karlson
October 7th, 2011, 06:46 PM
Hello Community,

Is it possible to bond 3 network cards, all with different IP addresses as one virtual/bonded NIC? We have 3 VLANs that we would like to combine into one virtual NIC for use with Free Opensource Ghost. Each VLAN has a different IP ranged and they do not talk to each other. I have read into ifenslave but that seems to be for link aggregation/trunking for increased throughput. We just want a Gigabit link to each VLAN.

Thank you in advance,

SMCC

Why would you want to bond them together?

smcc-wks
October 7th, 2011, 07:28 PM
Because FOG can only use 1 interface which is why we want all 3 NICs to be aliased as one NIC. To FOG it will look like one NIC but traffic will be broadcast from the one bonded NIC to all 3 VLANs.

drdos2006
October 7th, 2011, 10:24 PM
Check these out, did a search on "bridging" and "bonding"

http://ubuntuforums.org/showthread.php?t=1842656

http://ubuntuforums.org/showthread.php?t=1840543

regards

bab1
October 8th, 2011, 01:29 AM
Because FOG can only use 1 interface which is why we want all 3 NICs to be aliased as one NIC. To FOG it will look like one NIC but traffic will be broadcast from the one bonded NIC to all 3 VLANs.

So why not just use aliases for eth0 or some such like this (from the man page of ifconfig)
interface
The name of the interface. This is usually a driver name fol‐
lowed by a unit number, for example eth0 for the first Ethernet
interface. If your kernel supports alias interfaces, you can
specify them with eth0:0 for the first alias of eth0. You can
use them to assign a second address. To delete an alias inter‐
face use ifconfig eth0:0 down. Note: for every scope (i.e. same
net with address/netmask combination) all aliases are deleted,
if you delete the first (primary).

See here (http://www.linode.com/wiki/index.php/Multiple_IPs) for practical examples.

Edit: The only gotcha in this is that FOG server must be in a single network with all the VLANS inside. You mention that FOG uses broadcasts, so nothing will cross a router. An example would be a network of 192.168.0.0/16 . All subnets (254 of them) are in the same Network (broadcast range).