Date: Fri, 03 Dec 2004 19:38:30 +0100 From: Feczak Szabolcs <feczo@siodigit.hu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Routing help with arp or zebra -> BRIDGE Message-ID: <1102099110.11799.0.camel@localhost.localdomain> In-Reply-To: <1102073998.27824.3.camel@localhost.localdomain> References: <1101744133.31856.1.camel@localhost.localdomain> <1102073998.27824.3.camel@localhost.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
so the answer to myself If I would like to connect two physical nets without subnetting I must use bridging. The following commands solve the problem: sysctl net.link.ether.bridge=3D1 sysctl net.link.ether.bridge_cfg=3Dfxp0,fxp1 > 2004-11-29, h keltez=E9ssel 17:02-kor Feczak Szabolcs ezt =EDrta: > > Hi there, > >=20 > > I have the following network env. (IPs are not real though similar) > >=20 > > (INTERNET) - [? ? ? ?] Internet GW (cisco) [195.223.41.1] - switch - > >=20 > > hosts connected to the switch like 195.223.41.10 195.223.41.119 etc. > > probably in the /24 range or maybe it uses classless routing I do > > not realy know > >=20 > > My host/router is connected to this switch as well > >=20 > > [195.223.41.14/28 fxp0] inner gw [195.223.41.161/28 fxp1] > >=20 > > I have hosts connected to this innergw in the 195.223.41.160/28 network > > like 195.223.41.163 for example > >=20 > >=20 > > of course this setup doesn't work promptly, but If I do > > on the inner-gw the following > >=20 > > ifconfig fxp1 down > > route delete 195.223.41.163 > > ifconfig fxp0 alias 195.223.41.163/32 > >=20 > > ping 195.223.41.163 from the other side of the internet > > of course it works since Internet GW forwards the packet > > to its switched interface, than arp request and response > > on the innergw fxp0 interface > > Now the Cisco router has 195.223.41.163 in its arp cache > > so now I do the following on the innergw > >=20 > > ifconfig fxp0 -alias 195.223.41.163 > > ifconfig fxp1 up > >=20 > > ping 195.223.41.163 > > whoala it works .. I can reach my machine behind the > > innergw > >=20 > > for 4 hours, then cisco clears this entry from its arp > > cache and no more fun. > >=20 > > I have tried to do something with arp host hwaddr pub command, > > but its trying to advertise things on the inner interface > > so its no good. > >=20 > > I know the best would be a static route entry on the cisco > > to route all packets in the 195.223.41.160/28 network to > > the innergw interface. > >=20 > > Sadly I do not have access to the cisco router and its admin > > is nearly unreachable and make him do things is even harder. > >=20 > > So my question is ... is it possible to do the trick with > > some arp magic, or do I need zebra to talk rip or sg. with > > the cisco, so I can advertise my subnet .... ?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1102099110.11799.0.camel>