-----Original Message----- From: stephan beal [mailto:stephan@s11n.net] Sent: Thursday, September 14, 2006 9:14 AM To: suse-linux-e@suse.com Subject: [SLE] yast: how to set up static DHCP addresses
Yo!
i'm running a dhcp server on suse 10.1 and use yast to set it up. i'd like to assign static DHCP addresses to my 2 laptops. i know this can be done (read "done it before") via dhcp by storing the MAC addresses in the dhcp config, but i don't see how to do this via yast.
Is it possible with yast or must i manually edit the dhcp config for this?
i know someone's going to ask, "why assign a static IP via dhcp?" so i'll answer in advance: i need to make a port forward from my dhcp/router machine to one of my laptops so my boss can get to that machine. i don't want to always have to update my firewall settings to change the IP of the target machine. i use dhcp because it sets up the routing/dns for the hosted machines, saving me from that administrative tedium.
I think I'd be tempted to go a different way; rather than setting the DHCP server to always hand the same addresses to those clients, why not just set the lease time to, oh, a year or something? Even if the clients leave, come back, and request a new address, the DHCP server will hand them the one they had before (since that MAC address still has a lease for that address). (It should be noted here that I don't use YaST to manage my DHCP server; I tried for a while, but the DHCP server config module made a real hash of things, and didn't support a whole bunch of the features that DHCP offers. Last version I tried was 9.3, though, so it may be better now.)