a networking question

stan stanb at panix.com
Sat Jan 8 16:23:41 UTC 2011


On Thu, Jan 06, 2011 at 07:26:26PM +0530, Tapas Mishra wrote:
> On Thu, Jan 6, 2011 at 6:39 PM, stan <stanb at panix.com> wrote:
> > I have a workstation in my lab with 10.04 on it. I want to create a
> > situation where I can atache test devices on various 192.168.x.x subnets to
> > one of the switches it is already pluged in to. Taht is I want multiple
> > subnets on the smae physcial "wire" Here is what I have put in
> > /etc/network/interfaces:
> >
> >
> > But I cannot ping something on 192.168.1.x What am I doing wrong?
> >
> 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
> Paste your outputs on paste.ubuntu.com here it becomes cluttered to read.

I am still confused a bit. My setup is that I have  2 physical NIC's one
goes to the corportae lan. The 2nd goes to an interanl lan. Tis is the lan
that I also gave a bridge interface, so that I cna use VirtualBox on this
machine. In addition, I want the 2nd interface to be able to use varos
192.168.x.x subnets. eth0 is the corporate LAN, and eth1 is the internal
LAN.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?




More information about the ubuntu-users mailing list