Subject: Re: IP on bridge interface?
To: None <firstname.lastname@example.org>
From: Juha K Kallio <email@example.com>
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
> 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
> My other computer also runs NetBSD
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