On Wed, 2002-07-03 at 07:01, Bill Moseley wrote: > Anyone have tips for setting up a laptop for static vs. DHCP?
Here's how I do it in my /etc/whereami/detect.conf ====================================================== default undocked testmii eth0 lan if lan set INTERFACE eth0 testdhcp '*.*.*.*' dhcp testarp eth0,00:24:5e:17:12:11,10.2.0.4 neta testping 172.16.100.2,172.16.100.86 netb testping 192.168.78.1,192.168.78.55 netc testping 202.49.41.18,202.49.41.1 netd testping 10.2.0.2,10.2.0.253 netf else # Crude, but it works. testmodule orinoco_cs netg testmodule nokia_c110 netg fi if dhcp testdhcp 192.168.2.* neth testdhcp 192.168.5.* neti testdhcp 192.168.7.* netj testdhcp 192.168.55.* netk testdhcp 10.1.0.* netl testdhcp 10.2.0.* netf testdhcp 10.3.0.* netm testdhcp 192.168.1.7 netn testdhcp 192.168.10.* neto testdhcp 192.168.0.* netp testdhcp 172.16.40.* netq fi ======================================================= (names changed for security reasons :-) > I've always run static IPs on my home lan. But I'll be using DHCP at > hotels and conferences. I don't have a DHCP server to test with, so I'm > looking for example configs. The testping and testarp find fixed IP's, the testdhcp finds what you got assigned. Most of my nets are DHCP, so I run that test first and switch to arp/ping if they are not available. > Also, I've managed to get my wireless working, but the wrong way. I > managed to just duplicate my eth0 /etc/network/interfaces as eth1 and when > I insert the card eth1 is brought up. I then ifdown eth0 and it works. Yeah, as you can see above I test the wireless LAN pretty crudely, but so far I only have one. Taking it further for more WLAN connections would be to do my tests and then do a block of (presumably) dhcp tests on that interface as well. > BTW -- I've got an Aironet 532. Should I be setting options in wireless.opts? Probably. Regards, Andrew. -- -------------------------------------------------------------------- Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267 Are you enrolled at http://schoolreunions.co.nz/ yet? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]