*BSD News Article 82957


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!paladin.american.edu!news.jhu.edu!boingo.amil.jhu.edu!europa.chnt.gtegsc.com!gatech!news.mathworks.com!EU.net!chsun!news.eunet.ch!usenet
From: cleto@e-link.ch (Cleto Pescia)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problem: FreeBSD 2.1.5R loses routes when using IP aliasing
Date: Fri, 15 Nov 1996 11:03:10 GMT
Organization: EUnet AG
Lines: 40
Message-ID: <328c4bdc.8649408@news.eunet.ch>
References: <328a4d0a.201497@news.eunet.ch> <nzshgms5teb.fsf@deborah-ss20.cisco.com>
NNTP-Posting-Host: 193.72.189.5
X-Newsreader: Forte Free Agent 1.1/32.230

On 14 Nov 1996 12:11:24 -0800, deborah@deborah-ss20.cisco.com (Deborah
Gronke Bennett) wrote:

>   I have a FreeBSD 2.1.5R server connected to a Cisco 2501 router and I
>   would like to set it up as a PPP server. I use the netmask
>   255.255.255.240 on my Class C, in order to have subnets of 14 hosts
>   each. Since I want to devote one subnet to the PPP clients, and
>   applying the rule (from the doc.) that PPP server and clients must be
>   on the same subnet, I started to define an IP alias for my FreeBSD's
>   ed0 [193.72.189.2], following the doc's suggestions. That is:
>
>   ifconfig ed0 inet 193.72.189.17 netmask 255.255.255.240 alias
>   route add -host 193.72.189.17 127.0.0.1 0
>
>   Everything seems to be working fine for a while, but then the FreeBSD
>   "looses" the route to the Cisco, since it expires.
>
>   Question: What am I doing wrong? 
>
>
>You're using static routes, yet you probably didn't turn
>off routed in the FreeBSD box.

routed was indeed running. Now it is switched off in /etc/sysconfig.

> If you run netstat -r on the FreeBSD box, is the default route missing?

No, it is there. That is, I have an entry marked "default" and this
entry remains in the table even after the "real" route expires.

> And can you
>re-add it using 'route add default <IP_ADDR>', and then it disappears
>after a while again? If so, routed running is probably your problem.

Hmm, sorry, but doing "route add default <MY_CISCO_IP_ADDR>" doesn't
help very much... I'm still loosing the route to the outside world.

Cleto Pescia
cleto@e-link.ch