Routing help with arp or zebra -> BRIDGE
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:
> 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) [184.108.40.206] - switch -
> > hosts connected to the switch like 220.127.116.11 18.104.22.168 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
> > [22.214.171.124/28 fxp0] inner gw [126.96.36.199/28 fxp1]
> > I have hosts connected to this innergw in the 188.8.131.52/28 network
> > like 184.108.40.206 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 220.127.116.11
> > ifconfig fxp0 alias 18.104.22.168/32
> > ping 22.214.171.124 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 126.96.36.199 in its arp cache
> > so now I do the following on the innergw
> > ifconfig fxp0 -alias 188.8.131.52
> > ifconfig fxp1 up
> > ping 184.108.40.206
> > 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 220.127.116.11/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