a networking question

Tapas Mishra mightydreams at gmail.com
Sun Jan 9 13:52:27 UTC 2011


On Sun, Jan 9, 2011 at 6:48 PM, Tapas Mishra <mightydreams at gmail.com> wrote:
> On Sat, Jan 8, 2011 at 9:53 PM, stan <stanb at panix.com> wrote:
>>> You need to enable ip forwarding on the machine where bridge is.
>>> Correct entry for a bridge is as follows
>>>
>>> auto lo
>>> iface lo inet loopback
>>>
>>> # The primary network interface
>>> auto eth2
>>> iface eth2 inet manual
>>>
>>> auto br0
>>> iface br0 inet static
>>>         address 192.168.1.14
>>>         netmask 255.255.255.0
>>>         network 192.168.1.0
>>>         broadcast 192.168.1.255
>>>         gateway 192.168.1.10
>>>         # dns-* options are implemented by the resolvconf package, if installed
>>>         dns-nameservers 192.168.13.2
>>>         dns-search myserver.net
>>>         bridge_ports eth2
>>>         bridge_fd 9
>>>         bridge_hello 2
>>>         bridge_maxage 12
>>>         bridge_stp off
>>>
>>> You can not have eth0 and br0 simultaneously at the same time.
>>> The output of brctl show on my machine shows
>>>
>>> brctl show
>>> bridge name   bridge id               STP enabled     interfaces
>>> br0           8000.0026b9824238       no              eth2
>>>                                                       vnet0
>>>                                                       vnet1
>>>                                                       vnet2
>>>                                                       vnet3
I forgot to mention I came across a useful link
http://blog.agdunn.net/?p=416
excerpts from above link

"It is very important to do a ‘manual’ on the bridged interface as
that will prevent br0 from going out and trying to get an IP of its
own from your DHCP. If it did go get an IP you are going to have to
deal with route issues on the server, this I can assure you is very
frustrating. Also make sure you have STP enabled (yes) as it can cause
major issues for your network."


Also I would suggest to once have a look on
http://www.google.com/search?client=ubuntu&channel=fs&q=etc+network+interfaces&ie=utf-8&oe=utf-8
the above is what I searched to understand what each entry
means.Because if you do not understand that then
it might be arbit for you to make changes to that file and trying things.

-- 
http://mightydreams.blogspot.com




More information about the ubuntu-users mailing list