On Mon, 2009-08-24 at 10:20 +1200, Bryce Stenberg wrote: > >-----Original Message----- > >From: steve [mailto:[email protected]] > >Sent: Friday, 21 August 2009 3:30 p.m. > > > >Bryce, > > > >If you set down exactly what you want to do, I'm happy to make a stab > at > >it. Mind you, when I go through that process, it often magically sorts > >itself out before my eyes! > > > >Cheers, > > > >Steve > > Hi Steve, > > That is a nice offer. > > I want my LAN connection to use dhcp. > When no dhcp server is found I want it to use the following > IP address: 203.97.9.110 > Netmask: 255.255.255.248 > Gateway: 203.97.9.105 > Dns servers: 203.97.33.14, 203.97.37.14
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 <[email protected]>
http://www.greengecko.co.nz
MSN: [email protected]
GPG Fingerprint = B337 828D 03E1 4F11 CB90 853C C8AB AF04 EF68 52E0
signature.asc
Description: This is a digitally signed message part
