Subject: Re: IP on bridge interface?
To: None <netbsd-users@netbsd.org>
From: Juha K Kallio <bunnyh@psychedelic.baana.suomi.net>
List: netbsd-users
Date: 04/17/2003 14:07:50
On Thu, Apr 17, 2003 at 11:58:33AM +0100, Julian Coleman wrote:
> > I have tried that. bridge0 consists of rtk0 and rtk1. If I assign 192.168.0.1 to rtk0, I can only ping 192.168.0.2, which
> > is connected to rtk0. 192.168.0.3(rtk1) just timeouts. Do I have to set up some special routes?
>
> You shouldn't have to set up anything extra apart from the IP address on one
> interface of the bridge and the bridge itself. Is the bridge bridging, i.e.
> can you ping 192.168.0.2 from 192.168.0.3?
>
> Also, what does your config look like? I think you should have something
> like:
>
> ifconfig rtk0 inet 192.168.0.1 netmask 0xffffff00 up
> ifconfig bridge0 create
> brconfig bridge0 add rtk1 add rtk0 up
>
> To see the ARP cache on the bridge, you can run:
>
> brconfig bridge0
>
> J
>
> --
> My other computer also runs NetBSD
> http://www.netbsd.org/
Problem is, the route looks like this:
lan link#1 U
Where lan is 192.168.0.0/24, and link#1 is rtk0
So every packet goes through rtk0, while instead they should go through the bridge interface, which would select the
correct NIC.