Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news.corp.sgi.com!news.sgi.com!news.sprintlink.net!news-peer.sprintlink.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!feed1.news.erols.com!howland.erols.net!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.lan.awfulhak.org (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ed0 in 2.2
Date: 1 Apr 1997 16:34:29 GMT
Organization: Awfulhak Ltd.
Lines: 89
Message-ID: <5hrdel$nme@ui-gate.utell.co.uk>
References: <3339DD0D.41C67EA6@tlh.dial.idiom.com>
Reply-To: brian@awfulhak.demon.co.uk, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38205
In article <3339DD0D.41C67EA6@tlh.dial.idiom.com>,
John Fox <jf@tlh.dial.idiom.com> writes:
> I'm having problems with ed0 in 2.2.0 that I didn't have with 2.1.0.
>
> When I boot, I get these messages:
>
> routed[72]: sendto(ed0, 224.0.0.2): No route to host
> [several times]
> routed[72]: IP_DROP_MEMBERSHIP ALLHOSTS: Can't assign requested address
> routed[72]: IP_ADD_MEMBERSHIP ALLHOSTS: Address already in use
> routed[72]: setsockopt(IP_ADD_MEMBERSHIP RIP): Address already in use
routed has become rather verbose of late :(
> netstat -r freezes at this:
>
> Destination Gateway Flags Refs Use Netif
> Expire
> default pm3-1-stockton.idi UGSc 8 1 tun0
> localhost localhost UH 1 143 lo0
This looks like a nameserver thing. Try netstat -rn
> But if I do nothing and wait five minutes, it's this:
>
> Destination Gateway Flags Refs Use Netif
> Expire
> default pm3-1-stockton.idi UGSc 8 1 tun0
> localhost localhost UH 1 143 lo0
> tlh1.thl.idiom.com link#1 UC 0 0
> tlh2.thl.idiom.com 0:c0:df:68:8f:54 UHLW 1 19
> ed0 907
> tlh3.thl.idiom.com 0:40:5:2f:de:d4 UHLW 0 2 lo0
> tlh localhost UH 0 0 lo0
> pm3-1-stockton.idi tlh UH 8 0 tun0
>
> I have an outside link on tun0 and a four-host network on ed0.
>
> Here are my ifconfig lines:
>
> network_interfaces="cuaa1 lo0 tun0 ed0"
> ifconfig_cuaa1="inet netmask 255.255.255.0"
> ifconfig_lo0="inet localhost"
> ifconfig_tun0="inet tlh.dial.idiom.com 206.14.80.1 netmask 0xffffff00"
> ifconfig_ed0="inet alias 206.14.5.50 netmask 0xfffffffc broadcast
> 206.14.5.51"
>
> Finally, the last line, in 2.1.0 was:
> ifconfig_ed0="inet alias 206.14.5.48 netmask 0xfffffffc broadcast
> 206.14.5.51"
I assume you're using ppp (using tun0). The handbook pages for this
have changed. Take a look, you shouldn't have tun0 as a network
interface - let ppp do the work.
> Everything worked. But that line disabled RPC in 2.2.0. Portmap ran
> and
> registered itself, but after that trying to call pmap_set() got sendto:
> Cannot
> assign requested address. (Which is not an error I expected from
> sendto().)
> It turns out that the rpc get_myaddress() was returning 206.14.5.48
> rather
> than, e.g., 127.0.0.1 or the address you get by looking up the
> hostname. And
> you couldn't sendto that address at all. If you change the address
> returned
> by get_myaddress() in pmap_clnt.c just after line 74 (just as a test)
> and link
> with the new libc, then everything works again. Or if you change the
> ed0
> alias to 206.14.5.50. I have no idea if that's a bug or the revealed
> result
> of my doing something wrong, but I did what I thought was the naive
> ethernet
> thing and it stopped working in 2.2.
Eek. Have you merged the new 2.2 sysconfig ? It supports alias
addresses nicely. With two "ifconfig_ed0" lines, the second
overwrites the first (they're just environment variables).
Take a look at the ppp examples - specifically the pmdemand bit.
Also remove all references to tun0 from sysconfig. I suspect
the RPC stuff will start to work then.
--
Brian <brian@awfulhak.org> <brian@freebsd.org>
<http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !