Ethernet Bridge development
 help / color / mirror / Atom feed
* [Bridge] Giving enslaved interface an IP?
@ 2010-10-19  2:16 Thomas Taranowski
  2010-10-19  3:33 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Taranowski @ 2010-10-19  2:16 UTC (permalink / raw)
  To: bridge

I have bridged eth0 and eth1, where eth0 is the world, and eth1 has
some locally administered targets with normal IPs.  On eth1, I also
have some other devices with 192.168.x.x addresses I locally assigned.
 I'd like to give my eth1 a 192.168.x.x address, and treat the
192.168.x.x network as something like a local network, where anything
else get's bridged across to eth0.  I'm running into some problems.

First, when I try to ping anything on the 192.168.x.x network, it
get's sent out the wrong interface ( eth0 ), rather than eth1.  I
expected the bridge to broadcast the arp request to both interfaces.

Second, giving eth1 an ip address, in addition to being bridged, had
no obvious effect.  Can I even do this?

Any suggestions on where to look for additional information on this,
or things to try?

Thanks,
Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] Giving enslaved interface an IP?
  2010-10-19  2:16 [Bridge] Giving enslaved interface an IP? Thomas Taranowski
@ 2010-10-19  3:33 ` Stephen Hemminger
  2010-10-19 19:55   ` Thomas Taranowski
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2010-10-19  3:33 UTC (permalink / raw)
  To: Thomas Taranowski; +Cc: bridge

On Mon, 18 Oct 2010 19:16:18 -0700
Thomas Taranowski <tom@baringforge.com> wrote:

> I have bridged eth0 and eth1, where eth0 is the world, and eth1 has
> some locally administered targets with normal IPs.  On eth1, I also
> have some other devices with 192.168.x.x addresses I locally assigned.
>  I'd like to give my eth1 a 192.168.x.x address, and treat the
> 192.168.x.x network as something like a local network, where anything
> else get's bridged across to eth0.  I'm running into some problems.
> 
> First, when I try to ping anything on the 192.168.x.x network, it
> get's sent out the wrong interface ( eth0 ), rather than eth1.  I
> expected the bridge to broadcast the arp request to both interfaces.
> 
> Second, giving eth1 an ip address, in addition to being bridged, had
> no obvious effect.  Can I even do this?
> 
> Any suggestions on where to look for additional information on this,
> or things to try?

Don't put IP address on only one interface unless you are
setting up a brouter[1]. If you want to do firewalling then
add ebtables rules to block traffic; doing firewalling
with addressing won't work because the address won't be accessible 
as you found out.


1. A brouter requires additional ebtables to make packets flow.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] Giving enslaved interface an IP?
  2010-10-19  3:33 ` Stephen Hemminger
@ 2010-10-19 19:55   ` Thomas Taranowski
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Taranowski @ 2010-10-19 19:55 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

Thanks Stephen, ebtables looks like what I eventually need.  I was
able to resolve my short term problem by aliasing br0, and giving it a
192.168.10.1/24 address, so it receives traffic on both subnets.  That
seems to resolve the issue nicely.


Thomas Taranowski
Certified netburner consultant
baringforge.com



On Mon, Oct 18, 2010 at 8:33 PM, Stephen Hemminger
<shemminger@linux-foundation.org> wrote:
> On Mon, 18 Oct 2010 19:16:18 -0700
> Thomas Taranowski <tom@baringforge.com> wrote:
>
>> I have bridged eth0 and eth1, where eth0 is the world, and eth1 has
>> some locally administered targets with normal IPs.  On eth1, I also
>> have some other devices with 192.168.x.x addresses I locally assigned.
>>  I'd like to give my eth1 a 192.168.x.x address, and treat the
>> 192.168.x.x network as something like a local network, where anything
>> else get's bridged across to eth0.  I'm running into some problems.
>>
>> First, when I try to ping anything on the 192.168.x.x network, it
>> get's sent out the wrong interface ( eth0 ), rather than eth1.  I
>> expected the bridge to broadcast the arp request to both interfaces.
>>
>> Second, giving eth1 an ip address, in addition to being bridged, had
>> no obvious effect.  Can I even do this?
>>
>> Any suggestions on where to look for additional information on this,
>> or things to try?
>
> Don't put IP address on only one interface unless you are
> setting up a brouter[1]. If you want to do firewalling then
> add ebtables rules to block traffic; doing firewalling
> with addressing won't work because the address won't be accessible
> as you found out.
>
>
> 1. A brouter requires additional ebtables to make packets flow.
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-19 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-19  2:16 [Bridge] Giving enslaved interface an IP? Thomas Taranowski
2010-10-19  3:33 ` Stephen Hemminger
2010-10-19 19:55   ` Thomas Taranowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox