Subject: Current kernel has routing problems?
To: Dave Huang <khym@bga.com>
From: Wiker, Raymond <etorwi@eto.ericsson.se>
List: current-users
Date: 10/16/1996 11:07:03
Dave Huang writes:
 > I just upgraded to current, and now when I boot, I get this error:
 > 
 > Oct 15 20:48:11 dahan routed[78]: sendto(ep0, 224.0.0.2): No route to host
 > 
 > Then when I start pppd to connect to my ISP, I get:
 > 
 > Oct 15 20:57:31 dahan routed[78]: IP_ADD_MEMBERSHIP ALLHOSTS: Can't assign requested address
 > Oct 15 20:57:31 dahan routed[78]: setsockopt(IP_ADD_MEMBERSHIP RIP): Can't assign requested address
 > 
 > And pppd doesn't add a default route for me, even though I have
 > "defaultroute" in /etc/ppp/options. The same file worked just fine in
 > 1.2.

	I saw something similar last night, on
FreeBSD-2.2-960801-SNAP. I solved it by adding the files
/etc/ppp/ip-up and /etc/ppp/ip-down - something like the below:

ip-up:
#! /bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH

route add default $5

ip-down:
#! /bin/sh
PATH=/bin:/usr/bin:/sbin:/usr/sbin
export PATH

route delete default $5
route delete $4 localhost

	BTW: Is there a way to set up pppd with demand-dialling and a
variable remote address? I.e, something like

	pppd /dev/cu01 38400 demand defaultroute :193.213.36.5/24

--- the /24 doesn't work, of course ;-)

 > Since it seems to be complaining about multicast stuff, I added
 > "options MROUTING" to my config, but that didn't help anything... is
 > anyone else having the same problem?

	Maybe you should take a look at the output from "netstat -r",
and see if there is a route for multicast traffic? If you're not
actually planning to use multicast, you should remove the option from
the config file, and disable the multicast-related magic from
/etc/netstart. 

	//Raymond.