PPP error on new install: "Address family not supported..."

PPP error on new install: "Address family not supported..."

Post by Dan Mahon » Sat, 30 May 1998 04:00:00



After a bunch of years of using other flavors if
Unix (SunOS 4, Solaris 2, HP/UX, Linux, etc). I
finally decided to try FreeBSD.  Installed 2.2.6
without any significant problems, configured the
kernel to include the devices I've got and exclude
those I don't.

Got ppp.conf set up, can connect and negotiate a
PPP connection with no problem (pertinent log files
below).  When I try to ping (or telnet, or ftp,
or nslookup, or.....) I get an error message reading
"ping: sendto: Address family not supported by protocol family".
I checked in my kernel config file, and I *am* defining
INET.  I booted under the old GENERIC kernel (yes, I
did keep a copy around) and observe the same behavior.

Any pointers as to what I might be doing wrong?  I'd
be glad to RTFM if I could find the appropriate FM
(didn't find anything of value in the FAQ's or in
Lehey's "The Complete FreeBSD").

Dan Mahoney

 
 
 

PPP error on new install: "Address family not supported..."

Post by Jordan K. Hubba » Sat, 30 May 1998 04:00:00



> Got ppp.conf set up, can connect and negotiate a
> PPP connection with no problem (pertinent log files
> below).  When I try to ping (or telnet, or ftp,
> or nslookup, or.....) I get an error message reading
> "ping: sendto: Address family not supported by protocol family".

Do a ``netstat -rn'' and see where your default route is pointing.  If
it's pointing to a link rather than an IP address, there was no `add 0
0 HISADDR' run by ppp to add a default route (either in ppp.conf or
ppp.linkup) and that's your problem.

--
- Jordan Hubbard
  Co-founder/Release Manager, The FreeBSD Project
  Walnut Creek CDROM

 
 
 

PPP error on new install: "Address family not supported..."

Post by Dan Mahon » Sat, 30 May 1998 04:00:00



: > Got ppp.conf set up, can connect and negotiate a
: > PPP connection with no problem (pertinent log files
: > below).  When I try to ping (or telnet, or ftp,
: > or nslookup, or.....) I get an error message reading
: > "ping: sendto: Address family not supported by protocol family".

: Do a ``netstat -rn'' and see where your default route is pointing.  If
: it's pointing to a link rather than an IP address, there was no `add 0
: 0 HISADDR' run by ppp to add a default route (either in ppp.conf or
: ppp.linkup) and that's your problem.

My default route is pointing at tun0.  Output of netstat -r follows:

Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            tun0               UGSc        1        4      tun0
localhost          localhost          UH          1       26       lo0
205.139.56.69      205.219.116.67     UH          0       58      tun0

FWIW, here also is the output of "ifconfig -a":

lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 205.219.116.67 --> 205.139.56.69 netmask 0xffffff00
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000

Finally, my kernel config file is available at
http://www.pe.net/~dmahoney/FreeBSD/ppp.kernel.config, and
my ppp log file is at
http://www.pe.net/~dmahoney/FreeBSD/ppp.log

In my ppp.conf file, I have "add default HISADDR" (I got that out
of the ppp man page).  THis is a littel different than the line
you mentioned ("add 0 0 HISADDR").  Is this of significance?  I'll
look carefully through all the docs I can find, but I don't recall
finding anything so far explaining the differences between the
two lines.

Dan Mahoney

 
 
 

PPP error on new install: "Address family not supported..."

Post by Jordan K. Hubba » Sat, 30 May 1998 04:00:00



> : Do a ``netstat -rn'' and see where your default route is pointing.  If
> : it's pointing to a link rather than an IP address, there was no `add 0
> : 0 HISADDR' run by ppp to add a default route (either in ppp.conf or
> : ppp.linkup) and that's your problem.

> My default route is pointing at tun0.  Output of netstat -r follows:

Right, and as you can see, tun0 is a LINK rather than an IP address.
Follow my original instructions and you will be fine. :-)

--
- Jordan Hubbard
  Co-founder/Release Manager, The FreeBSD Project
  Walnut Creek CDROM

 
 
 

PPP error on new install: "Address family not supported..."

Post by Brian Some » Tue, 09 Jun 1998 04:00:00





 :
 >> : Do a ``netstat -rn'' and see where your default route is pointing.  If
 >> : it's pointing to a link rather than an IP address, there was no `add 0
 >> : 0 HISADDR' run by ppp to add a default route (either in ppp.conf or
 >> : ppp.linkup) and that's your problem.
 >>
 >> My default route is pointing at tun0.  Output of netstat -r follows:
 :
 : Right, and as you can see, tun0 is a LINK rather than an IP address.
 : Follow my original instructions and you will be fine. :-)

The interface route is created if HISADDR is 0.0.0.0 (the default)
when the "add 0 0 HISADDR" is done.

I must remove this sometime - it was an attempt to fix the
``first connection'' problem that didn't flesh out.

To solve it, ``set ifaddr'' should be used with a non-zero
second argument *before* the ``add 0 0 HISADDR''.

--

      <http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour !

 
 
 

1. 2.4.16: "Address family not supported" on RH IBM T23

Tried to compile 2.4.16 on my brand new IBM T23.

Small problem: Kernel panic at start, null pointer reference when
initializing agp code. Disabled agp, and boots OK. Probably too new
motherboard? Should I report what details?

Large problem: Network won't come up. Says:

This happens both to lo and eth0, with a stock kernel, only option I changed
was the agp (see above).  Can boot past this, but no networking configured.

Invoking ifup by hand causes same behaviour.

Manually running ifconfig lo 127.0.0.1 and ifconfig lo up work. Same for
eth0.

More digging pointed me to redhat's ifup script (7.2 with latest updates),
in the function is_available, there is a line that tests 'ip -o link'. This
is what gives the error messages in ifup (as well as when run by hand).
Could not find much documentation for that /sbin/ip, redhat special?

Problem does not occur on redhat 7.2 default kernel 2.4.7-10, nor on the one
their thing upgraded my box to, 2.4.9-13

Does this indicate a kernel problem, redhat problem, or my problem?

Thank you in advance

        Heikki Levanto

P.S. I try to follow the list, but would still appreciate a direct cc if you
have any comments, suggestions, or workarounds.

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. XFree86 doesn't like my Mach64!

3. ab/apachebench and "Address family not supported by protocol" - FreeBDS 4.2/Redhat 7.0

4. ksh: optimization: use eval or do a test?

5. bind Error: Address family not supported by protocol family

6. Help - questions on Linux SCSI low-level driver

7. socket() error : Address family not supported by protocol family

8. Jumbo Drive and Long Tapes

9. "Too Many Softcalls" and "Memory Address not aligned" errors

10. "mount -o bind" - "fs type none not supported" error

11. GETSERVBYNAME()????????????????????"""""""""""""

12. RH7.1 install fails w/ "operation not permitted" "install exited abnormally"