View previous topic :: View next topic |
Author |
Message |
Palhoto Tux's lil' helper
Joined: 27 Feb 2003 Posts: 111 Location: Iberian Peninsula
|
Posted: Fri Aug 08, 2008 3:48 pm Post subject: DHCP Release not working |
|
|
In /etc/conf.d/net, Code: | dhcp_eth0="release" | is not releasing the IP address on /etc/init.d/net.eth0 stop.
Am I doing something wrong?
Manually doing dhcpcd --release works fine. It is not avised to do it in /etc/conf.d/local.stop as it disables network access before cleanly stopping network services on a reboot/poweroff.
The objective is to maintain the same internal network IP address on a dual-boot machine.
Thank you. |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Fri Aug 08, 2008 4:08 pm Post subject: |
|
|
do you have control over your dhcp server? you could set up a static assignment in it's configuration.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Palhoto Tux's lil' helper
Joined: 27 Feb 2003 Posts: 111 Location: Iberian Peninsula
|
Posted: Fri Aug 08, 2008 4:49 pm Post subject: |
|
|
bunder wrote: | do you have control over your dhcp server? you could set up a static assignment in it's configuration.
cheers |
Yes, I do. I'm using a WRT54GL with the Tomato firmware. DHCP is assigned manually to the NIC's MAC address. It still requires a RELEASE when switching OSes, or else the first available IP address in range is given.
Thanks for the reply . |
|
Back to top |
|
|
bunder Bodhisattva
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Fri Aug 08, 2008 4:53 pm Post subject: |
|
|
Palhoto wrote: | bunder wrote: | do you have control over your dhcp server? you could set up a static assignment in it's configuration.
cheers |
Yes, I do. I'm using a WRT54GL with the Tomato firmware. DHCP is assigned manually to the NIC's MAC address. It still requires a RELEASE when switching OSes, or else the first available IP address in range is given.
Thanks for the reply . |
i don't think that shouldn't happen. regardless of how it asks for it, the dhcp server should always give the same IP if you set it a static assignment. _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
|
Palhoto Tux's lil' helper
Joined: 27 Feb 2003 Posts: 111 Location: Iberian Peninsula
|
Posted: Sat Aug 09, 2008 1:21 am Post subject: |
|
|
bunder wrote: | Palhoto wrote: | It still requires a RELEASE when switching OSes, or else the first available IP address in range is given. |
i don't think that shouldn't happen. regardless of how it asks for it, the dhcp server should always give the same IP if you set it a static assignment. |
Initially I also thought that should be the case. In this Dual Booting with the DHCPC Daemon how-to, Darrell Anderson explains how to remove SuSE's default RELEASE behaviour on a dual boot system with Windows.
Here, there is also an interesting note which I haven't yet pursued further:
Quote: | Some operating systems will hold onto any previous lease information if they can't communicate with the DHCP server. If there is a long delay during lease renewal there is a good chance that has happened and you did not get the correct IP Address. |
Anyway, the dhcp release option in /etc/conf.d/net doesn't seem to work. Does anyone have it working? |
|
Back to top |
|
|
Palhoto Tux's lil' helper
Joined: 27 Feb 2003 Posts: 111 Location: Iberian Peninsula
|
Posted: Sun Aug 10, 2008 4:04 pm Post subject: Bug report |
|
|
Submitted a bug report. |
|
Back to top |
|
|
|