*BSD News Article 82907


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!news-peer.gsl.net!news.gsl.net!news.mathworks.com!uunet!in2.uu.net!usenet.cisco.com!usenet
From: deborah@deborah-ss20.cisco.com (Deborah Gronke Bennett)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problem: FreeBSD 2.1.5R loses routes when using IP aliasing
Date: 14 Nov 1996 12:11:24 -0800
Organization: Cisco Systems, IOS Technology
Lines: 30
Message-ID: <nzshgms5teb.fsf@deborah-ss20.cisco.com>
References: <328a4d0a.201497@news.eunet.ch>
NNTP-Posting-Host: deborah-ss20.cisco.com
In-reply-to: cleto@e-link.ch's message of Wed, 13 Nov 1996 22:48:07 GMT
X-Newsreader: Gnus v5.1

In article <328a4d0a.201497@news.eunet.ch> cleto@e-link.ch (Cleto Pescia) writes:


   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 183.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. If you run netstat -r on
the FreeBSD box, is the default route missing? 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.
-- 
Deborah Gronke Bennett		System Software Engineer, IOS Technology
deborah@cisco.com		(408)-526-4000
Cisco Systems
170 West Tasman Dr., San Jose, CA 95134-1706