Re: Where is my SLIP interface

2003-09-26 Thread Willem Jan Withagen

From: Bernd Walter [EMAIL PROTECTED]
 On Thu, Sep 25, 2003 at 07:49:18PM +1000, Peter Jeremy wrote:
  On Thu, Sep 25, 2003 at 02:43:21PM +0930, Greg 'groggy' Lehey wrote:
   Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.
  
  Not any more.  I removed that chapter from the book.  The chapter's
  available (also covers UUCP) if anybody wants it; just ask.  But it
  seems that Willem has already had SLIP up and running.
 
  I can (mostly) understand removing SLIP, but I though UUCP still
  had a niche as a way to implement e-mail pull delivery without
  losing the envelope - even when you don't have/want IP connectivity.

 Slip is still the ideal protocol to interface microntrollers because
 of its simplicity.
 PPP just wastes space for this purpose.
 Unfortunately neither IPv6 nor USB serials were working with the
 -current I use.
 You can connect using ucom device but may expirience hangings, which
 might already be solved.
 Mmm - and acording to this thread there is a new problem.

 At least it still works with my (old) system:
 /var/run/slattach.cuaa0.pid
 [78]cicely13# ps -ax | grep sla
 18680  p0  R+ 0:00.01 grep sla
 18678  a0  Ss+0:00.01 slattach -l /dev/cuaa0
 [79]cicely13# ifconfig sl0
 sl0: flags=8011UP,POINTOPOINT,MULTICAST mtu 552
 [80]cicely13# uname -a
 FreeBSD cicely13.cicely.de 5.1-CURRENT FreeBSD 5.1-CURRENT #15: Sun Jun 15
06:26:51 CEST 2003
[EMAIL PROTECTED]:/var/d7/builder/FreeBSD-2003-06-05-cicely13/src/sys
/i386/compile/CICELY13  i386

I have more or less the same reason to use SLIP.
It's a simple dedicated line (IP-only) between my router and an Portmaster
on a fixed line.
No reason to do anything as complicated as PPP: no logins, no IPX .

But am I to understand that running slattach creates the sl0 device?? by
something like 'ifconfig sl0 create'?
Or is slattach just loading the module which makes sl0 appear?

--WjW

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-26 Thread Bernd Walter
On Fri, Sep 26, 2003 at 12:47:53PM +0200, Willem Jan Withagen wrote:
 From: Bernd Walter [EMAIL PROTECTED]
  On Thu, Sep 25, 2003 at 07:49:18PM +1000, Peter Jeremy wrote:
 But am I to understand that running slattach creates the sl0 device?? by
 something like 'ifconfig sl0 create'?
 Or is slattach just loading the module which makes sl0 appear?

slattach creates and removes the device.
It doesn't make much sense to have a slip device alone IMO.

[51]cicely13# kldstat -v | grep sl
88 if_sl
[52]cicely13# ifconfig sl0
ifconfig: interface sl0 does not exist
Exit 1
[53]cicely13# slattach -l /dev/cuaa0
/var/run/slattach.cuaa0.pid
[54]cicely13# ifconfig sl0
sl0: flags=8011UP,POINTOPOINT,MULTICAST mtu 552
[55]cicely13# kill `cat /var/run/slattach.cuaa0.pid`
[56]cicely13# ifconfig sl0
ifconfig: interface sl0 does not exist
Exit 1

-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-26 Thread Willem Jan Withagen
Don't ask why, but running 'slattach -l /dev/cuaa0' works
No modem is connect now so it could be the -l stuff.
And slattach would be waiting for my modem to signal things.

it created sl1 but who am I to complain.

Thanx for getting me on my way again...
--WjW

- Original Message - 
From: Bernd Walter [EMAIL PROTECTED]
To: Willem Jan Withagen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 26, 2003 1:19 PM
Subject: Re: Where is my SLIP interface


 On Fri, Sep 26, 2003 at 12:47:53PM +0200, Willem Jan Withagen wrote:
  From: Bernd Walter [EMAIL PROTECTED]
   On Thu, Sep 25, 2003 at 07:49:18PM +1000, Peter Jeremy wrote:
  But am I to understand that running slattach creates the sl0 device?? by
  something like 'ifconfig sl0 create'?
  Or is slattach just loading the module which makes sl0 appear?

 slattach creates and removes the device.
 It doesn't make much sense to have a slip device alone IMO.

 [51]cicely13# kldstat -v | grep sl
 88 if_sl
 [52]cicely13# ifconfig sl0
 ifconfig: interface sl0 does not exist
 Exit 1
 [53]cicely13# slattach -l /dev/cuaa0
 /var/run/slattach.cuaa0.pid
 [54]cicely13# ifconfig sl0
 sl0: flags=8011UP,POINTOPOINT,MULTICAST mtu 552
 [55]cicely13# kill `cat /var/run/slattach.cuaa0.pid`
 [56]cicely13# ifconfig sl0
 ifconfig: interface sl0 does not exist
 Exit 1

 -- 
 B.Walter   BWCThttp://www.bwct.de
 [EMAIL PROTECTED]  [EMAIL PROTECTED]



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-26 Thread Bernd Walter
On Fri, Sep 26, 2003 at 01:29:30PM +0200, Willem Jan Withagen wrote:
 Don't ask why, but running 'slattach -l /dev/cuaa0' works
 No modem is connect now so it could be the -l stuff.
 And slattach would be waiting for my modem to signal things.

Possible - I never used anything else, because I completly trust
TCP to care for data loss in my microcontroller applications.
If the controller can't keep up with the serial transmission it
normaly also can't keep up with the content.

-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Willem Jan Withagen
 On Thu, 2003-09-25 at 01:13, Greg 'groggy' Lehey wrote:
  On Thursday, 25 September 2003 at  1:12:21 -0400, Lanny Baron wrote:
   On Wed, 2003-09-24 at 22:42, Greg 'groggy' Lehey wrote:
   On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan Withagen
wrote:
   Hi,
  
   I'm trying to upgrade my firewall/router to 5.x but I'm getting
caught by
   the fact that I cannot find a 'sl0' interface.
  
   Are you really still using SLIP?  What's wrong with PPP?
  
   I've tried the both with if_sl compiled into the kernel as well as a
module.
  
   In neither case does ifconfig show a sl0 device.
  
   IIRC it doesn't show now until it's configured.
  
   Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.
 
  Not any more.  I removed that chapter from the book.  The chapter's
  available (also covers UUCP) if anybody wants it; just ask.  But it
  seems that Willem has already had SLIP up and running.

I've been running SLIP ever since I started an ISP back in 1994.
And I'm still using it next to my ADSL for certain traffic that I do not
want to flow over the the widder net.
The ADSL was BTW the reason for upgrading, 'cause that poor old 386sx/16Mb
could not keep up with 8 Mbit/s ADSL :-)

I was also that guy that bought like 50 of 'The Complete FreeBSD' to give
them to customers who wanted to know more about that nice system with free
software that solved their problems.

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
router# kldstat
Id Refs AddressSize Name
 13 0xc010 3541c8   kernel
 21 0xc1232000 8000 ipfw.ko
 31 0xc151e000 5000 if_sl.ko


So we can conclude it is a pilot error, since hell would break loose when
ppp0 had disapeared.
But I have this problem on 3 5.x boxes.

--WjW

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Willem Jan Withagen

- Original Message - 
From: Willem Jan Withagen [EMAIL PROTECTED]
To: Lanny Baron [EMAIL PROTECTED]; Greg 'groggy' Lehey
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 9:39 AM
Subject: Re: Where is my SLIP interface


  On Thu, 2003-09-25 at 01:13, Greg 'groggy' Lehey wrote:
   On Thursday, 25 September 2003 at  1:12:21 -0400, Lanny Baron wrote:
On Wed, 2003-09-24 at 22:42, Greg 'groggy' Lehey wrote:
On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan
Withagen
 wrote:
Hi,
   
I'm trying to upgrade my firewall/router to 5.x but I'm getting
 caught by
the fact that I cannot find a 'sl0' interface.
   
Are you really still using SLIP?  What's wrong with PPP?
   
I've tried the both with if_sl compiled into the kernel as well as
a
 module.
   
In neither case does ifconfig show a sl0 device.
   
IIRC it doesn't show now until it's configured.
   
Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.
  
   Not any more.  I removed that chapter from the book.  The chapter's
   available (also covers UUCP) if anybody wants it; just ask.  But it
   seems that Willem has already had SLIP up and running.

 I've been running SLIP ever since I started an ISP back in 1994.
 And I'm still using it next to my ADSL for certain traffic that I do not
 want to flow over the the widder net.
 The ADSL was BTW the reason for upgrading, 'cause that poor old 386sx/16Mb
 could not keep up with 8 Mbit/s ADSL :-)

 I was also that guy that bought like 50 of 'The Complete FreeBSD' to give
 them to customers who wanted to know more about that nice system with free
 software that solved their problems.

 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
 router# kldstat
 Id Refs AddressSize Name
  13 0xc010 3541c8   kernel
  21 0xc1232000 8000 ipfw.ko
  31 0xc151e000 5000 if_sl.ko


 So we can conclude it is a pilot error, since hell would break loose when
 ppp0 had disapeared.
 But I have this problem on 3 5.x boxes.

Just for fun I also compiled if_ppp.ko and loaded that with running pppd
and lo and behold: it gave me ppp0.
Makes me wonder even more

--WjW

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Peter Jeremy
On Thu, Sep 25, 2003 at 02:43:21PM +0930, Greg 'groggy' Lehey wrote:
 Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.

Not any more.  I removed that chapter from the book.  The chapter's
available (also covers UUCP) if anybody wants it; just ask.  But it
seems that Willem has already had SLIP up and running.

I can (mostly) understand removing SLIP, but I though UUCP still
had a niche as a way to implement e-mail pull delivery without
losing the envelope - even when you don't have/want IP connectivity.

Peter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Peter Jeremy
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.

Peter
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Willem Jan Withagen

- Original Message - 
From: Peter Jeremy [EMAIL PROTECTED]
To: Willem Jan Withagen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
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=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:00:e8:7b:5e:d4
de0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet6 fe80::200:c0ff:fe1c:7ae8%de0 prefixlen 64 scopeid 0x2
inet 212.61.63.60 netmask 0xfe00 broadcast 212.61.63.255
ether 00:00:c0:1c:7a:e8
media: Ethernet autoselect (10baseT/UTP)
status: active
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 212.61.27.72 netmask 0xfff0 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=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
router# kldstat
Id Refs AddressSize Name
 12 0xc010 3541c8   kernel
 21 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 AddressSize Name
 13 0xc010 3541c8   kernel
 21 0xc1234000 8000 ipfw.ko
 31 0xc1539000 5000 if_sl.ko
router# ifconfig sl0 create
ifconfig: SIOCIFCREATE: Invalid argument
router#

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-25 Thread Bernd Walter
On Thu, Sep 25, 2003 at 07:49:18PM +1000, Peter Jeremy wrote:
 On Thu, Sep 25, 2003 at 02:43:21PM +0930, Greg 'groggy' Lehey wrote:
  Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.
 
 Not any more.  I removed that chapter from the book.  The chapter's
 available (also covers UUCP) if anybody wants it; just ask.  But it
 seems that Willem has already had SLIP up and running.
 
 I can (mostly) understand removing SLIP, but I though UUCP still
 had a niche as a way to implement e-mail pull delivery without
 losing the envelope - even when you don't have/want IP connectivity.

Slip is still the ideal protocol to interface microntrollers because
of its simplicity.
PPP just wastes space for this purpose.
Unfortunately neither IPv6 nor USB serials were working with the
-current I use.
You can connect using ucom device but may expirience hangings, which
might already be solved.
Mmm - and acording to this thread there is a new problem.

At least it still works with my (old) system:
/var/run/slattach.cuaa0.pid
[78]cicely13# ps -ax | grep sla
18680  p0  R+ 0:00.01 grep sla
18678  a0  Ss+0:00.01 slattach -l /dev/cuaa0
[79]cicely13# ifconfig sl0
sl0: flags=8011UP,POINTOPOINT,MULTICAST mtu 552
[80]cicely13# uname -a
FreeBSD cicely13.cicely.de 5.1-CURRENT FreeBSD 5.1-CURRENT #15: Sun Jun 15 06:26:51 
CEST 2003 [EMAIL 
PROTECTED]:/var/d7/builder/FreeBSD-2003-06-05-cicely13/src/sys/i386/compile/CICELY13  
i386


-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-24 Thread Greg 'groggy' Lehey
On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan Withagen wrote:
 Hi,

 I'm trying to upgrade my firewall/router to 5.x but I'm getting caught by
 the fact that I cannot find a 'sl0' interface.

Are you really still using SLIP?  What's wrong with PPP?

 I've tried the both with if_sl compiled into the kernel as well as a module.

 In neither case does ifconfig show a sl0 device.

IIRC it doesn't show now until it's configured.

Greg
--
See complete headers for address and phone numbers


pgp0.pgp
Description: PGP signature


Re: Where is my SLIP interface

2003-09-24 Thread Lanny Baron
Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.

We always suggest it. 

Regards,
Lanny

On Wed, 2003-09-24 at 22:42, Greg 'groggy' Lehey wrote:
 On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan Withagen wrote:
  Hi,
 
  I'm trying to upgrade my firewall/router to 5.x but I'm getting caught by
  the fact that I cannot find a 'sl0' interface.
 
 Are you really still using SLIP?  What's wrong with PPP?
 
  I've tried the both with if_sl compiled into the kernel as well as a module.
 
  In neither case does ifconfig show a sl0 device.
 
 IIRC it doesn't show now until it's configured.
 
 Greg
 --
 See complete headers for address and phone numbers
-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Lanny Baron
Proud to be 100% FreeBSD
http://www.FreeBSDsystems.COM
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where is my SLIP interface

2003-09-24 Thread Greg 'groggy' Lehey
On Thursday, 25 September 2003 at  1:12:21 -0400, Lanny Baron wrote:
 On Wed, 2003-09-24 at 22:42, Greg 'groggy' Lehey wrote:
 On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan Withagen wrote:
 Hi,

 I'm trying to upgrade my firewall/router to 5.x but I'm getting caught by
 the fact that I cannot find a 'sl0' interface.

 Are you really still using SLIP?  What's wrong with PPP?

 I've tried the both with if_sl compiled into the kernel as well as a module.

 In neither case does ifconfig show a sl0 device.

 IIRC it doesn't show now until it's configured.

 Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.

Not any more.  I removed that chapter from the book.  The chapter's
available (also covers UUCP) if anybody wants it; just ask.  But it
seems that Willem has already had SLIP up and running.

Greg
--
See complete headers for address and phone numbers


pgp0.pgp
Description: PGP signature


Re: Where is my SLIP interface

2003-09-24 Thread Lanny Baron
Looks like I made a mistake.

Sorry for any inconvenience the advice may have caused.

Regards,
Lanny


On Thu, 2003-09-25 at 01:13, Greg 'groggy' Lehey wrote:
 On Thursday, 25 September 2003 at  1:12:21 -0400, Lanny Baron wrote:
  On Wed, 2003-09-24 at 22:42, Greg 'groggy' Lehey wrote:
  On Thursday, 25 September 2003 at  3:04:52 +0200, Willem Jan Withagen wrote:
  Hi,
 
  I'm trying to upgrade my firewall/router to 5.x but I'm getting caught by
  the fact that I cannot find a 'sl0' interface.
 
  Are you really still using SLIP?  What's wrong with PPP?
 
  I've tried the both with if_sl compiled into the kernel as well as a module.
 
  In neither case does ifconfig show a sl0 device.
 
  IIRC it doesn't show now until it's configured.
 
  Perhaps 'The Complete FreeBSD' by Greg Lehey will help out.
 
 Not any more.  I removed that chapter from the book.  The chapter's
 available (also covers UUCP) if anybody wants it; just ask.  But it
 seems that Willem has already had SLIP up and running.
 
 Greg
 --
 See complete headers for address and phone numbers
-- 
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Lanny Baron
Proud to be 100% FreeBSD
http://www.FreeBSDsystems.COM
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]