[LARTC] 2 NICs Bridge + Router

William Bohannan WBohannan at spidersat.com.gh
Thu May 31 14:22:06 CEST 2007


Thanks Grant, I am very new to combining NATing and Brigdge.  Please can
you possibly give an example on how to add the virtual interface.

Current /etc/networking/interfaces looks like this:
---------------------------------------
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.128
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx

pre-up /sbin/ip link set eth0 up
pre-up /sbin/ip link set eth1 up
pre-up /usr/sbin/brctl addbr br0
pre-up /usr/sbin/brctl addif br0 eth0
pre-up /usr/sbin/brctl addif br0 eth1
-----------------------------------------

Kind Regards
William Bohannan


-----Original Message-----
From: lartc-bounces at mailman.ds9a.nl
[mailto:lartc-bounces at mailman.ds9a.nl] On Behalf Of Grant Taylor
Sent: Monday, May 28, 2007 6:39 PM
To: Mail List - Linux Advanced Routing and Traffic Control
Subject: Re: [LARTC] 2 NICs Bridge + Router

On 5/28/2007 8:12 AM, William Bohannan wrote:
> Hi wondering if anyone can help. I have two NICs on a debian sarge
based 
> system and current running as a bridge (br0) which consists of eth0
and 
> eth1.  Is it possible to add a virtual interface to the eth1 so I can 
> also do NAT on the box as well?  I have tried many times and keep
coming 
> up with errors.

Why not add virtual aliased interfaces to the br0 interface?  Do your 
NATing there.



Grant. . . .
_______________________________________________
LARTC mailing list
LARTC at mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


More information about the LARTC mailing list