Re: laptop netconfig

1999-05-25 Thread Lawrence Walton
On Mon, May 24, 1999 at 02:07:19PM -0500, Jens B. Jorgensen wrote:
 I don't know if anyone's come up with a slick way to do this. I too would 
 like to have such a thing at my disposal. You might be able to do something 
 like this by just running dhcp and then checking to see if dhcp succeeded in 
 getting an address and starting diald if it didn't.
 
 Good luck,
 
 Justin Hagemeier wrote:
 
  I have a laptop with three possible network configurations that I would 
  like to use.
  1. Ethernet 10 Mbps DHCP-sv
  2. PPP daild
  3. None at all
  is there any suggestions on tools for configuration techniques for this 
  kind of setup. It looks as if I could do it if one of the init.d scripts 
  sniffed out the PCMCIA to see if there where activity, then if there was 
  not it would start daild instead of DHCP.  I have no idea where to begin on 
  such a thing though.  Any thoughts?
  Thanks in advance,
  Justin
 
 --
 Jens B. Jorgensen
 [EMAIL PROTECTED]
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

Well I sort of do this allready I have a laptop that has the Potato distro on 
it, I use both ethernet and ppp,
I am using the DHCP client in potato and it works great; if there is no 
ethernet connection, then no IP is assigned
to the eth0 interface, essentially no route. I just use PPP normaly.
-- 
*--* Mail: [EMAIL PROTECTED]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--
- - - - - - O t a k  i n c . - - - - - 



NDN: Re: laptop netconfig

1999-05-25 Thread Post Office
Sorry. Your message could not be delivered to:

Jorge Araya (Mailbox or Conference is full.)


NDN: Re: laptop netconfig

1999-05-25 Thread Post Office
Sorry. Your message could not be delivered to:

Jorge Araya (Mailbox or Conference is full.)


NDN: Re: laptop netconfig

1999-05-25 Thread Post Office
Sorry. Your message could not be delivered to:

Jorge Araya (Mailbox or Conference is full.)


NDN: Re: laptop netconfig

1999-05-25 Thread Post Office
Sorry. Your message could not be delivered to:

Jorge Araya (Mailbox or Conference is full.)


NDN(2): Re: laptop netconfig

1999-05-25 Thread Post Office
Sorry. Your message could not be delivered to:

Jorge Araya (Mailbox or Conference is full.)


Re: laptop netconfig

1999-05-25 Thread Justin Hagemeier
 Well I sort of do this allready I have a laptop that has the Potato distro on 
 it, I use both ethernet and ppp,
 I am using the DHCP client in potato and it works great; if there is no 
 ethernet connection, then no IP is assigned
 to the eth0 interface, essentially no route. I just use PPP normaly.
 --
 *--* Mail: [EMAIL PROTECTED]
 *--* Voice: 425.739.4247
 *--* Fax: 425.827.9577
 *--* HTTP://www.otak-k.com/~lawrence/
 --
 - - - - - - O t a k  i n c . - - - - -

 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

How do you get over the problem with dhcp(potato) hanging when there is no net 
connection?  dhcpcd just sits there if it cannot find one. (or atleast I have 
never been patient enough to wait it out, I give it about 30 s and give up) 
just installing both would be great for now if that worked.

Although, I would like a scheme where it starts the right daemon because it 
could protentially less time and memory than starting both.  Jens you are right 
about error trapping kernel message would be brain dead.  However ifconfig 
STDOUT does give you how many packets are recieved, if you sent 1 and did not 
recieve any in reply the
you have a smarter way of knowing whether or not you have a live line.  You 
could use regex to parse that ifconfig STDOUT in the script.  I am reaching 
here.:-)

What do you think?

Thanks,
haggs


Re: laptop netconfig

1999-05-25 Thread Lawrence Walton
On Mon, May 24, 1999 at 07:25:23PM -0500, Justin Hagemeier wrote:
  Well I sort of do this already I have a laptop that has the Potato distro 
  on it, I use both ethernet and ppp,
  I am using the DHCP client in potato and it works great; if there is no 
  ethernet connection, then no IP is assigned
  to the eth0 interface, essentially no route. I just use PPP normal.
  --
  *--* Mail: [EMAIL PROTECTED]
  *--* Voice: 425.739.4247
  *--* Fax: 425.827.9577
  *--* HTTP://www.otak-k.com/~lawrence/
  --
  - - - - - - O t a k  i n c . - - - - -
 
  --
  Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 How do you get over the problem with dhcp(potato) hanging when there is no 
 net connection?  
I don't it does not hang on my system, it does try to configure it's self, but 
does not hang.


dhcpcd just sits there if it cannot find one. (or at least I have never been 
patient enough to wait it out, I give it about 30 s and give up) just 
installing both would be great for now if that worked.

At least on my system it does work, kinda cludgy but it works. You can always 
take the card out.

 
 Although, I would like a scheme where it starts the right daemon because it 
 could potentially less time and memory than starting both.  Jens you are 
 right about error trapping kernel message would be brain dead.  However 
 ifconfig STDOUT does give you how many packets are received, if you sent 1 
 and did not receive any in reply the
 you have a smarter way of knowing whether or not you have a live line.  You 
 could use regex to parse that ifconfig STDOUT in the script.  I am reaching 
 here.:-)

I think, that the DHCP, should time out, after a arbitrary amount of 
configuration requests, like 100 or so. 
A more elegant solution must be out there; I know that 95/98/NT have this 
problem also, so it's not easy.
 
 What do you think?
 
 Thanks,
 haggs
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
*--* Mail: [EMAIL PROTECTED]
*--* Voice: 425.739.4247
*--* Fax: 425.827.9577
*--* HTTP://www.otak-k.com/~lawrence/
--
- - - - - - O t a k  i n c . - - - - - 



Re: laptop netconfig

1999-05-24 Thread Jens B. Jorgensen
I don't know if anyone's come up with a slick way to do this. I too would like 
to have such a thing at my disposal. You might be able to do something like 
this by just running dhcp and then checking to see if dhcp succeeded in getting 
an address and starting diald if it didn't.

Good luck,

Justin Hagemeier wrote:

 I have a laptop with three possible network configurations that I would like 
 to use.
 1. Ethernet 10 Mbps DHCP-sv
 2. PPP daild
 3. None at all
 is there any suggestions on tools for configuration techniques for this kind 
 of setup. It looks as if I could do it if one of the init.d scripts sniffed 
 out the PCMCIA to see if there where activity, then if there was not it would 
 start daild instead of DHCP.  I have no idea where to begin on such a thing 
 though.  Any thoughts?
 Thanks in advance,
 Justin

--
Jens B. Jorgensen
[EMAIL PROTECTED]



Re: laptop netconfig

1999-05-24 Thread Justin Hagemeier
Jens B. Jorgensen wrote:

 I don't know if anyone's come up with a slick way to do this. I too would 
 like to have such a thing at my disposal. You might be able to do something 
 like this by just running dhcp and then checking to see if dhcp succeeded in 
 getting an address and starting diald if it didn't.

 Good luck,

 Justin Hagemeier wrote:

  I have a laptop with three possible network configurations that I would 
  like to use.
  1. Ethernet 10 Mbps DHCP-sv
  2. PPP daild
  3. None at all
  is there any suggestions on tools for configuration techniques for this 
  kind of setup. It looks as if I could do it if one of the init.d scripts 
  sniffed out the PCMCIA to see if there where activity, then if there was 
  not it would start daild instead of DHCP.  I have no idea where to begin on 
  such a thing though.  Any thoughts?
  Thanks in advance,
  Justin

 --
 Jens B. Jorgensen
 [EMAIL PROTECTED]

Would anybody like give some input on developing this?  I was thinking about 
using ifconfig in a script to temporarily configure the networks so that it 
might feel for a network pulse over the ether net.  If no pulse is felt then 
it will start daild, otherwise it would start dhcpcd, then make a script called 
net-switch that would
allow you to stop dhcpcd and start daild on the fly or vice-verse.  The problem 
with accomplishing the net selection with DHCP is that the boot script will 
just hang if it can't find an address, and I have never been patient enough to 
wait for it to time out(if it does at all).  I asked if anyone had done it 
because I did not want
to go around re-inventing the wheel.  Tell me what you all think.
Regards,
haggs


Re: laptop netconfig

1999-05-24 Thread Jens B. Jorgensen
Since the ethernet driver will detect carrier on the ethernet if you could 
detect the error correctly you'd be able to know if the ethernet was hooked up. 
Trying to send a packet is easy. Trapping the error correctly may be the hard 
part. If the kernel would log such a message then you could just monitor the 
log. This is a kind of
braindead approach but may be the least intrusive and easiest.

Justin Hagemeier wrote:

 Jens B. Jorgensen wrote:

  I don't know if anyone's come up with a slick way to do this. I too would 
  like to have such a thing at my disposal. You might be able to do something 
  like this by just running dhcp and then checking to see if dhcp succeeded 
  in getting an address and starting diald if it didn't.
 
  Good luck,
 
  Justin Hagemeier wrote:
 
   I have a laptop with three possible network configurations that I would 
   like to use.
   1. Ethernet 10 Mbps DHCP-sv
   2. PPP daild
   3. None at all
   is there any suggestions on tools for configuration techniques for this 
   kind of setup. It looks as if I could do it if one of the init.d scripts 
   sniffed out the PCMCIA to see if there where activity, then if there was 
   not it would start daild instead of DHCP.  I have no idea where to begin 
   on such a thing though.  Any thoughts?
   Thanks in advance,
   Justin
 
  --
  Jens B. Jorgensen
  [EMAIL PROTECTED]

 Would anybody like give some input on developing this?  I was thinking about 
 using ifconfig in a script to temporarily configure the networks so that it 
 might feel for a network pulse over the ether net.  If no pulse is felt 
 then it will start daild, otherwise it would start dhcpcd, then make a script 
 called net-switch that would
 allow you to stop dhcpcd and start daild on the fly or vice-verse.  The 
 problem with accomplishing the net selection with DHCP is that the boot 
 script will just hang if it can't find an address, and I have never been 
 patient enough to wait for it to time out(if it does at all).  I asked if 
 anyone had done it because I did not want
 to go around re-inventing the wheel.  Tell me what you all think.
 Regards,
 haggs

--
Jens B. Jorgensen
[EMAIL PROTECTED]