Re: Where is my SLIP interface

From: Willem Jan Withagen <wjw_at_withagen.nl>
Date: Thu, 25 Sep 2003 13:10:02 +0200
----- Original Message ----- 
From: "Peter Jeremy" <peterjeremy_at_optushome.com.au>
To: "Willem Jan Withagen" <wjw_at_withagen.nl>
Cc: <current_at_freebsd.org>
Sent: Thursday, September 25, 2003 11:51 AM
Subject: Re: Where is my SLIP interface


> On Thu, Sep 25, 2003 at 09:39:12AM +0200, Willem Jan Withagen wrote:
> >But PPP has the same problem:
> >    the interfaces do not show up when listing them with 'ifconfig -a'
> >And trying to config it:
> >
> >router# ifconfig sl0 1.2.3.4 4.5.6.7
> >ifconfig: interface sl0 does not exist
>
> Try 'ifconfig sl0 create' first.  PPP (and presumably SLIP) interfaces
> are now cloned on request rather than created statically.

Nice suggestion, but no sigar. See log below.
What sort of worries me is that first kldstat does not show if_sl as module
and then after a try at 'ifconfig sl0 create' it is all of a sudden there.
(unless ifconfig loads the module?? I forgot to kldstat inbetween)

BTW: why would it not be possible to unload the if_sl module???
It is code as such, but are there fundamental reasons?? if_ppp unloads just
fine.

Another "funny" issue is when the GENERIC kernel is booted.
It has the same kind of problems, but generates:
    Sep 25 12:52:41 router kernel: module_register: module if_sl already
exists!
    Sep 25 12:52:41 router kernel: Module if_sl failed to register: 17
on issueing 'ifconfig sl0 1.2.3.4 5.6.7.8'

--WjW

router# ifconfig -a
ed0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:00:e8:7b:5e:d4
de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::200:c0ff:fe1c:7ae8%de0 prefixlen 64 scopeid 0x2
        inet 212.61.63.60 netmask 0xfffffe00 broadcast 212.61.63.255
        ether 00:00:c0:1c:7a:e8
        media: Ethernet autoselect (10baseT/UTP)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 212.61.27.72 netmask 0xfffffff0 broadcast 212.61.27.79
        inet6 fe80::202:b3ff:fe4c:2f42%fxp0 prefixlen 64 scopeid 0x3
        ether 00:02:b3:4c:2f:42
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
router# kldstat
Id Refs Address    Size     Name
 1    2 0xc0100000 3541c8   kernel
 2    1 0xc1234000 8000     ipfw.ko
router# ifconfig sl0 create
ifconfig: SIOCIFCREATE: Invalid argument
router# kldload if_sl
kldload: can't load if_sl: File exists
router# kldstat
Id Refs Address    Size     Name
 1    3 0xc0100000 3541c8   kernel
 2    1 0xc1234000 8000     ipfw.ko
 3    1 0xc1539000 5000     if_sl.ko
router# ifconfig sl0 create
ifconfig: SIOCIFCREATE: Invalid argument
router#
Received on Thu Sep 25 2003 - 02:10:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:23 UTC