All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Software bridge problem
@ 2003-05-17 12:11 Henrik Ramberg
  2003-05-17 15:33 ` Stef Coene
  2003-05-17 18:10 ` Markske@Linux-network.be
  0 siblings, 2 replies; 3+ messages in thread
From: Henrik Ramberg @ 2003-05-17 12:11 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

Dear list.

I have a problem I hope someone can help me with. I am currently developing a "transparent" software bridge that 
connects a local area network to the Internet. eth0 is connected to the "Internet" and eth1 is connected 
to the LAN. The program is working just fine and packets are routed perfectly through the box. However my 
problems goes as follows: eht0 has got an IP stack so that the box can surf around on Internet (this is an 
necessity), while eth1 is protocol less. I want the clients in the LAN to reach the IP stack on eth0 
via eth1 in order to recieve stats on whats been downloaded etc. In this situation packets for eth0 would
be recieved on eth1 and the go through my bridge and  then sent out on eth0 as every other packet. Then when
eth0 has sent the packets it would recieve the newly sent packets in normal manner. However this does not 
seem to work. I have used pktdump to verify that packets are recieved on eth1 and sent out on eth0. 
The problem is that the IP stack will not accept the packets it sends out itself and just drops them. WHY? 
Is there a remedy to my problem??  I am currently running Linux 2.2.22-compact kernel. 

All replies will be deeply appreciated.

Regards,
Henrik Ramberg

[-- Attachment #2: Type: text/html, Size: 1806 bytes --]

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

* Re: [LARTC] Software bridge problem
  2003-05-17 12:11 [LARTC] Software bridge problem Henrik Ramberg
@ 2003-05-17 15:33 ` Stef Coene
  2003-05-17 18:10 ` Markske@Linux-network.be
  1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-05-17 15:33 UTC (permalink / raw)
  To: lartc

On Saturday 17 May 2003 14:11, Henrik Ramberg wrote:
> Dear list.
>
> I have a problem I hope someone can help me with. I am currently developing
> a "transparent" software bridge that connects a local area network to the
> Internet. eth0 is connected to the "Internet" and eth1 is connected to the
> LAN. The program is working just fine and packets are routed perfectly
> through the box. However my problems goes as follows: eht0 has got an IP
> stack so that the box can surf around on Internet (this is an necessity),
> while eth1 is protocol less. I want the clients in the LAN to reach the IP
> stack on eth0 via eth1 in order to recieve stats on whats been downloaded
> etc. In this situation packets for eth0 would be recieved on eth1 and the
> go through my bridge and  then sent out on eth0 as every other packet. Then
> when eth0 has sent the packets it would recieve the newly sent packets in
> normal manner. However this does not seem to work. I have used pktdump to
> verify that packets are recieved on eth1 and sent out on eth0. The problem
> is that the IP stack will not accept the packets it sends out itself and
> just drops them. WHY? Is there a remedy to my problem??  I am currently
> running Linux 2.2.22-compact kernel.
>
> All replies will be deeply appreciated.
I'm not such a bridge specialist, but I suppose that adding a stack means 
adding an ip-address.  If you do so, why don't you add an other (or even the 
same) ip-address to the NIC connected to the LAN ?

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Software bridge problem
  2003-05-17 12:11 [LARTC] Software bridge problem Henrik Ramberg
  2003-05-17 15:33 ` Stef Coene
@ 2003-05-17 18:10 ` Markske@Linux-network.be
  1 sibling, 0 replies; 3+ messages in thread
From: Markske@Linux-network.be @ 2003-05-17 18:10 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1659 bytes --]

I think you need to assing your ip on the bridge
/sbin/ip addr add 10.10.10.2/24 brd + dev br0
/sbin/ip route add default via 10.10.10.1

Markske
http://www.linux-network.be/knowledge/bridge.php
  ----- Original Message ----- 
  From: Henrik Ramberg 
  To: lartc@mailman.ds9a.nl 
  Sent: Saturday, May 17, 2003 2:11 PM
  Subject: [LARTC] Software bridge problem


  Dear list.

  I have a problem I hope someone can help me with. I am currently developing a "transparent" software bridge that 
  connects a local area network to the Internet. eth0 is connected to the "Internet" and eth1 is connected 
  to the LAN. The program is working just fine and packets are routed perfectly through the box. However my 
  problems goes as follows: eht0 has got an IP stack so that the box can surf around on Internet (this is an 
  necessity), while eth1 is protocol less. I want the clients in the LAN to reach the IP stack on eth0 
  via eth1 in order to recieve stats on whats been downloaded etc. In this situation packets for eth0 would
  be recieved on eth1 and the go through my bridge and  then sent out on eth0 as every other packet. Then when
  eth0 has sent the packets it would recieve the newly sent packets in normal manner. However this does not 
  seem to work. I have used pktdump to verify that packets are recieved on eth1 and sent out on eth0. 
  The problem is that the IP stack will not accept the packets it sends out itself and just drops them. WHY? 
  Is there a remedy to my problem??  I am currently running Linux 2.2.22-compact kernel. 

  All replies will be deeply appreciated.

  Regards,
  Henrik Ramberg

[-- Attachment #2: Type: text/html, Size: 3143 bytes --]

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

end of thread, other threads:[~2003-05-17 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-17 12:11 [LARTC] Software bridge problem Henrik Ramberg
2003-05-17 15:33 ` Stef Coene
2003-05-17 18:10 ` Markske@Linux-network.be

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.