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 = 192.168.1.1
    eth0:1 = 192.168.1.2
    eth0:2 = 192.168.1.3
    eth0:3 -> Assign the bridge to this

    I am attempting to set up a bridge using the following instructions:
    Code:
    sudo brctl addbr br0
    sudo brctl addif br0 eth0:3
    sudo ifconfig br0 192.168.1.120 netmask 255.255.255.0 up
    sudo route add -net 192.168.1.0 netmask 255.255.255.0 br0
    sudo route add default gw 192.168.1.1 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:
    Code:
    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

    Hi,

    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