View previous topic :: View next topic |
Author |
Message |
gate n00b
Joined: 15 May 2002 Posts: 33
|
Posted: Thu Aug 01, 2002 11:34 pm Post subject: DHCP |
|
|
Ok I have two networks in my house, one that is completely (if such a things exists) from the outside worlds and one that is connected to the internet using our block of 16 ips. Both networks have DHCP because while DHCP is nice so I don't have to recall what IPs other systems are using. I also use it so I just need to tell my systems to grab a new IP (and move to a different port on the switch) when I switch from network to network. My question is how can I tell the DHCP client to use one of its old IPs if it is available. This would be nice because I'm always SSHing or VNCing to the box and I hate having to type ipconfig every time. It would be nice if the system just tried to use the old one. I know I can set this up on the DHCP server by assigning that IP to that systems MAC address but I was just wondering if I could do it in the client because I really don't know how to do that stuff on the Cisco routers (DHCP server).
Greg
P.S. hope that all makes sense _________________ Java, the 3rd coming of Cobol
Gate.Ilive4Code.net |
|
Back to top |
|
|
Utoxin Guru
Joined: 19 Apr 2002 Posts: 413 Location: American Fork, UT
|
Posted: Fri Aug 02, 2002 12:38 am Post subject: |
|
|
This is more the realm of the server than the client. Theoretically, the server should have a 'lease' for the computer (based on the MAC address of it's card), and will automatically assign that IP back as long as the lease hasn't expired. If this doesn't seem to be happening, you might check what the lease timeout is set to, and turn it up if it's short. _________________ Gentoo:
1. A small fast penguin from Antarctica.
2. A small fast penguin on your computer.
Cool. |
|
Back to top |
|
|
some_bob Tux's lil' helper
Joined: 23 Jul 2002 Posts: 94
|
Posted: Fri Aug 02, 2002 1:05 am Post subject: |
|
|
you can setup your dhcp server to assign ip addresses based on mac address... for instance, if you are using dhcp on *nix, you can use:
host XXX {
hardware-ethernet xx:xx:xx:xx:xx:xx;
fixed-address aa.bb.cc.dd;
}
this way, you more or less have a static ip, as long as your dhcp server is available. |
|
Back to top |
|
|
gate n00b
Joined: 15 May 2002 Posts: 33
|
Posted: Fri Aug 02, 2002 2:42 am Post subject: Looking into it |
|
|
I know about the reserving in the DHCP server but did nto really want to do that. I don't care if the IP change over time just not ever boot or ever time I run the scripts to reconfigure the device. Will look into the lease time and see if that fixes the "problem".
Greg _________________ Java, the 3rd coming of Cobol
Gate.Ilive4Code.net |
|
Back to top |
|
|
|