How do you switch between networks?  I have a non-pcmcia lan card on my
laptop.  I also use a freeswan vpn.  My laptop sleeps between networks.
When I plug in to a new network, it resumes, the interface polls for a
new dhcp address.  If I'm not on my work lan, then the freeswan vpn
connects.  When I'm not on any network, the interface is up, but does
not have an ip address.

So for me the switching is all done at resume time.  I wrote a small
shell script that apmd_proxy runs upon resume.  It checks to see if the
ip address is on my lan, to see if it should start the vpn or not.
Dhclient automatically polls for a dhcp address.

I'm using an eepro100.

Cory

On Tue, Oct 08, 2002 at 10:02:05AM -0700, Joseph Carter wrote:
> My notebook has non-PCMCIA LAN, and I'd like to make Linux a little
> smarter in how it deals with the device.  Currently, I am manually
> raising
> and dropping the interface, but the network chip does know when there's
> a
> cable plugged in to it as most do.
> 
> Windoze is smart enough to send out a DHCP request and enable the device
> as soon as the cable is plugged in.  It also knows to disable the thing
> when the network cable goes away.  I realise this behavior is far too
> logical and intelligent for the UNIX world where everything must be done
> by hand the hard way and that PnP is for people who like machines with
> only one mouse button.  However, I happen to like machines with only one
> mouse button, and I would like the network device to behave itself.
> 
> Any suggestions?
> 
> -- 
> Joseph Carter <[EMAIL PROTECTED]>                     Goldfish don't
> bounce
>  
> Change the Social Contract?  BWAHAHAHAHAHAHAHAHAHAHAHA.
>       -- Branden Robinson
> 
_______________________________________________
Eug-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to