Bridging Network Devices with Multiple IPs

Discussion in 'Technical' started by Mosquito, Apr 7, 2010.

  1. Mosquito

    Mosquito New Member

    I have a small server with a single NIC that I am trying to get a bridge functioning on. On this NIC I have a couple IPs statically assigned to it:

    eth0 =
    eth0:1 =
    eth0:2 =
    eth0:3 -> Assign the bridge to this

    I am attempting to set up a bridge using the following instructions:
    sudo brctl addbr br0
    sudo brctl addif br0 eth0:3
    sudo ifconfig br0 netmask up
    sudo route add -net netmask br0
    sudo route add default gw br0
    sudo tunctl -b -u root -t tap0 > /dev/null
    sudo ifconfig tap0 up
    sudo brctl addif br0 tap0
    However, when I do the second command:
    sudo brctl addif br0 eth0:3
    It puts the ENTIRE eth0 device into promiscuous mode. This knocks the server offline and inaccessible by anything other than locally.

    Is there a way to bridge JUST eth0:3 to br0 and not put the entire device into promiscuous mode?
  2. alexmartin

    alexmartin New Member


    I suggest you don't modify primary nic config's. I would recommend you to add secondary NIC and bridge those additional IP's using that.

Share This Page