Routing help with arp or zebra -> BRIDGE

Feczak Szabolcs feczo at siodigit.hu
Fri Dec 3 10:39:58 PST 2004


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=1
sysctl net.link.ether.bridge_cfg=fxp0,fxp1

> 2004-11-29, h keltezéssel 17:02-kor Feczak Szabolcs ezt írta:
> > Hi there,
> > 
> > I have the following network env. (IPs are not real though similar)
> > 
> > (INTERNET) - [? ? ? ?] Internet GW (cisco) [195.223.41.1] - switch -
> > 
> > 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
> > 
> > My host/router is connected to this switch as well
> > 
> > [195.223.41.14/28 fxp0] inner gw [195.223.41.161/28 fxp1]
> > 
> > I have hosts connected to this innergw in the 195.223.41.160/28 network
> > like 195.223.41.163 for example
> > 
> > 
> > of course this setup doesn't work promptly, but If I do
> > on the inner-gw the following
> > 
> > ifconfig fxp1 down
> > route delete 195.223.41.163
> > ifconfig fxp0 alias 195.223.41.163/32
> > 
> > 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
> > 
> > ifconfig fxp0 -alias 195.223.41.163
> > ifconfig fxp1 up
> > 
> > ping 195.223.41.163
> > whoala it works .. I can reach my machine behind the
> > innergw
> > 
> > for 4 hours, then cisco clears this entry from its arp
> > cache and no more fun.
> > 
> > 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.
> > 
> > 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.
> > 
> > Sadly I do not have access to the cisco router and its admin
> > is nearly unreachable and make him do things is even harder.
> > 
> > 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 .... ?




More information about the freebsd-questions mailing list