Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 2004 17:02:12 +0100
From:      Feczak Szabolcs <feczo@siodigit.hu>
To:        freebsd-questions@freebsd.org
Subject:   Routing help with arp or zebra
Message-ID:  <1101744133.31856.1.camel@localhost.localdomain>

next in thread | raw e-mail | index | archive | help
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 .... ?





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1101744133.31856.1.camel>