Date: Tue, 1 Apr 1997 22:55:46 +0800 (SGT) From: sweeting@tm.net.my To: freebsd-questions@freebsd.org Cc: softweyr@xmission.com, langfod@dihelix.com Subject: Re: [Q] why not use routed ? Message-ID: <v01540b0caf673bb43fea@[202.184.153.110]>
next in thread | raw e-mail | index | archive | help
A lot of thanks to David Langford and Wes Peters for the advice on routing. Switching routed off and adding the route works fine. At the moment i call a simple script from /etc/rc.local, which is : ifconfig ep0 202.184.153.5 netmask 255.255.255.255 alias ifconfig ep0 202.184.153.30 netmask 255.255.255.255 alias ifconfig ep0 202.184.153.31 netmask 255.255.255.255 alias route add -host 202.184.153.13 127.0.0.1 /usr/local/sbin/httpd No problems. I was just wondering if it should be possible to do the ifconfig aliasing and addition of the route within /etc/sysconfig. I tried this in /etc/sysconfig : ifconfig_lo0="inet localhost" ifconfig_ep0="inet 202.184.153.13 netmask 255.255.255.0" ifconfig_ep0="inet 202.184.153.5 netmask 255.255.255.255 alias" and that didn't work. should it ? chas >sweeting@tm.net.my asked: >% Why is it that people here tend to advise against using routed ? >% From what i understand, routed automatically sets up >% the routing tables so it seems better than specifying static routes. > >David Langford (langfod@dihelix.com) replied: >> The biggest problem with routed is that it acts very stupid. >> [...] >> >> One of the biggest problems is if I have multiple routers on a network the >> other hosts running "routed -q" will arbitrarily" lose the default routes. > >Routed doesn't handle links going up and down all that well. PPP does >a better job, because it's route table manipulations are designed to >work with PPP. As David suggested, if you have a smple network, give >all of the workstations a default route to your gateway machine and let >PPP handle the routing on your gateway. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01540b0caf673bb43fea>