Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP Release not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 111
Location: Iberian Peninsula

PostPosted: Fri Aug 08, 2008 3:48 pm    Post subject: DHCP Release not working Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri Aug 08, 2008 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 111
Location: Iberian Peninsula

PostPosted: Fri Aug 08, 2008 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri Aug 08, 2008 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 111
Location: Iberian Peninsula

PostPosted: Sat Aug 09, 2008 1:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Palhoto
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2003
Posts: 111
Location: Iberian Peninsula

PostPosted: Sun Aug 10, 2008 4:04 pm    Post subject: Bug report Reply with quote

Submitted a bug report.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum