Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th April 2010, 07:04
Mosquito Mosquito is offline
Member
 
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts
Default Bridging Network Devices with Multiple IPs

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?
Reply With Quote
Sponsored Links
  #2  
Old 29th July 2011, 08:59
alexmartin alexmartin is offline
Junior Member
 
Join Date: Jul 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First IP OK, second IP times out Craig Installation/Configuration 12 10th June 2011 11:40
Unable to connect to Mysql mbascombe Installation/Configuration 12 10th January 2010 23:46
Using Heartbeat w/no load balancer multiple IP's wxman Server Operation 0 11th September 2009 18:06
ISPConfig setup for multiple external IPs debian-lover General 5 21st April 2008 12:56
Perfect Xen 3.0 setup for Debian gurneyzap HOWTO-Related Questions 4 26th March 2006 12:30


All times are GMT +2. The time now is 04:54.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.