*BSD News Article 92003


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.se.dataphone.net!nntp.uio.no!uninett.no!news1.best.com!idiom.com!usenet
From: John Fox <jf@tlh.dial.idiom.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ed0 in 2.2
Date: Wed, 26 Mar 1997 18:35:57 -0800
Organization: A poorly-installed InterNetNews site
Lines: 66
Message-ID: <3339DD0D.41C67EA6@tlh.dial.idiom.com>
NNTP-Posting-Host: tlh.dial.idiom.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.2-RELEASE i386)
CC: jf@tlh.dial.idiom.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37790

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

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

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"

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.