>-----Original Message----- >From: steve [mailto:st...@greengecko.co.nz] >Sent: Monday, 24 August 2009 11:03 a.m.
>To set up your dhcp server, something like... > >host workstation { > hardware ethernet ma:ca:dd:re:ss; > fixed-address 203.97.9.110; > option subnet-mask 255.255.255.0; > option routers 203.97.9.105; > option domain-name-servers 203.97.33.14, 203.97.37.14; >} > >( personally set up the ip address in dns, and then use the fixed >address as the name - eg workstation.greengecko.co.nz - instead of hard >coding the ip address ). > >You can get your mac address on your workstation using /sbin/ifconfig >eth0 - or whichever. > >On your workstation, for belt and braces ( so you don't really need the >mac address to identify - but I prefer to use it )... > >send host-name workstation > >and to ensure configuration when no dhcp server present... > >lease { > interface "eth0"; > fixed-address 203.97.9.110; > option subnet-mask 255.255.255.0; > option routers 203.97.9.105; > option domain-name-servers 203.97.33.14, 203.97.37.14; > renew 0 2030/12/31 23:59:59; > rebind 0 2030/12/31 23:59:59; > expire 0 2030/12/31 23:59:59; >} > > > >> So far I've tried setting a 'lease' to this in dhclient.conf without >> success. >> Someone else suggested I try 'ifplugd' which may allow me to script it, >> but I haven't gone down that path yet. >> >> Regards, >> Bryce Stenberg > >Let me know if it works... > > >Steve >> >> >> >> >> DISCLAIMER: If you have received this email in error, please notify us >immediately by reply email, facsimile or collect telephone call to +64 3 >9641200 and destroy the original. Please refer to full DISCLAIMER at >http://www.hrnz.co.nz/eDisclaimer.htm >> >> >> >> >> >-- >Steve Holdoway <st...@greengecko.co.nz> >http://www.greengecko.co.nz >MSN: st...@greengecko.co.nz >GPG Fingerprint = B337 828D 03E1 4F11 CB90 853C C8AB AF04 EF68 52E0 DISCLAIMER: If you have received this email in error, please notify us immediately by reply email, facsimile or collect telephone call to +64 3 9641200 and destroy the original. Please refer to full DISCLAIMER at http://www.hrnz.co.nz/eDisclaimer.htm