IP's normally only get released according to a pre-assigned (read sysadmin default, oversight or neglect, heh) value.
NT defaults to 5 days of inactivity. But here is the rub, once an ip is available for "reassignment" it's thrown into a pool of available IP's. It is put at the bottom of the stack. That way if your computer "wakes up" two weeks later but it's original IP is still available, it will get it back again. So how does Linux "force" and IP change? The only way I know how to do this is to get Linux to identify itself as a new machine joining the network. Some DHCP servers look at mac addresses, with these you have two choices, ask the server explicity for a "new" lease, or change the LAN card. In the former case, there are some command line parameters you can issue to the dhcp client's attempt to get the IP that cause this to happen, though offhand I don't know what they are... Other DHCP servers look at the "name" the Linux box presents itself as. ISP's (like @home) use this a lot. @home may tell you to change the "name" of your machine to something their DHCP server is looking for. Dependant upon the machine name your computer presents you may or may not get an IP assigned to you... Thus with @home you may have a strange machine name like "blah-2304-2" to get onto the internet. Yet other servers look for Netbios machine names for IP assignments. This is a frequent cause of problems because the Netbios machine name may not be the same as the hostname for a particular computer (or Netbios / Samba is not enabled in Linux at boot! ) The bottom line, is that it varies from one dhcp server (and implementation) to another. Ugh. -JMS |-----Original Message----- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]] On Behalf Of |[EMAIL PROTECTED] |Sent: Monday, October 22, 2001 10:56 AM |To: [EMAIL PROTECTED] |Subject: Re: [newbie] How do I release my IP number? | | | |Thanks. That didn't do that trick, but it was very helpful to |know anyway. I found out about network stop, too, because you |your lead :). Dont you just love newbs! But that didn't do the |trick. I wanted to release my ip number so I would get a new |one via dhcp. Sorry I that wasn't clear in my first post. The |problem was that the ip number I had was new and wasn't in |synch with my computer's listing in the ip table(s) on the |network. And I can't do anything to get those updated, so I |was trying to release my ip number, in the hopes the when I |got a new one via dhcp that the new one would be added to the |ip table(s). So restarting the network didn't do anything in |that regard, because I just got the same ip number back. | |What I did, to resolve this, was to just type in the ip number |that was in the ip table(s), that I could get by typing "host |tcob," the name of my server. It gave me the ip number from |the ip table(s) -- which wasn't the one actually current and |assigned to me. So I just entered it manually with netconf. I |really didn't want to do this, but I had to. | |Is there anything wrong with manually adding the ip assigned |to you with dhcp on a company intranet? | |mitch | | | | | | | | Paul Cox | | <[EMAIL PROTECTED]> To: |[EMAIL PROTECTED] | Sent by: cc: | | newbie-owner@linux-ma Subject: |Re: [newbie] How do I release my IP number? | ndrake.com | | | | | | 10/20/01 06:46 PM | | Please respond to | | newbie | | | | | | | | | |On Friday, Oct 19, 2001, [EMAIL PROTECTED] wrote: | |> How do I release my IP number, so I can have a new one assigned from |> my intranet dns? | |"/etc/rc.d/init.d/network restart" (as root) should do the trick. | |-- |Paul Cox <paul at coxcentral dot com> |Kernel: 2.4.8-26mdk - Uptime: 3 days 19 hours 49 minutes. | |Want to buy your Pack or Services from MandrakeSoft? |Go to http://www.mandrakestore.com | | | | | |
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
