LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-05-2003, 08:53 AM   #1
Gorchi
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 18

Rep: Reputation: 0
Automatic IP offering from DHCP


Hi,
I have a linux gateway based on RedHat 7.3 with 3 ethernet cards, one (eth0) is for ADSL modem, the other two are for my little internal network. To these two ethernet cards, there are 2 Windows XP computers connected and I have a little problem.
When Linux is started before WinXP, I normally get IP from it, because of Win demand on startup. But if I reboot Linux while Wins are working, then WinXP assumes some strange IP (because it looses it's IP no.). After Linux comp. comes up, it doesn't automatically offer IP numbers to these WinXP computers. Is there any way, that Linux will make some kind of broadcast like "I am now server, alive and working, please request Your IP numbers!"?

Thanks for help in advance.

Best regards,
Goran
 
Old 04-05-2003, 11:25 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Running "ipconfig /renew" will get XP to renew its release from the DHCP server. If this doesn't work try releasing the lease first "ipconfig /release"
 
Old 04-05-2003, 11:36 AM   #3
Gorchi
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
Hi David,
Thank You for Your post. I forgot for the ipconfig options but this is not the way I want. Right now I renew Windows IP by double clicking the network icon, then change to tab support and click button Repair. But I do not want to do anything from Windows side, I need that Linux box announces to all computers on internal network "Ask me for Your IP".

Regrads,
Goran
 
Old 04-05-2003, 01:58 PM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Sadly this is not the way that DHCP works. All DHCP interaction is driven by the client. If you switch off the DHCP server then boot the clients they will assume a 169.254.x.x link local IP address. As mentioned above to renew the IP address you must ipconfig /renew. There is no way around this that I know of. DHCP is considered to be a network critical service and so is assumed to always be present.
 
Old 04-05-2003, 01:59 PM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
btw, most IT helpdesks simply tell their users to reboot if they have DHCP difficulties, ipconfig /renew is considered to be something that only techies do!!
 
Old 04-05-2003, 02:21 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
How many DHCP clients do you have? If it is only a couple then create 2 ranges. 1 fiexed XXX.XXX.XXX.100 - XXX.XXX.XXX.199 are fixed IPs then get the DHCP server to assign addresses XXX.XXX.XXX.200 XXX.XXX.XXX.249

Then assign fixed IPs to your fixed clients.
 
Old 04-05-2003, 02:31 PM   #7
Gorchi
LQ Newbie
 
Registered: Feb 2003
Distribution: Red Hat 8.0
Posts: 18

Original Poster
Rep: Reputation: 0
Hi,
I have currently only two WinXP comps, but in the future it can be some more. I was thinking also of fixed adresses; but maybe in this occasion I could also use WinXP IP settings when network is unavailable... Maybe this could do the trick.
Baldy, thanks for Your input also. Thinking about DHCP this way explains this. But still, isn't there no command that i should write in rc.local or dhcpd script when starting to maybe forcibly give IPs?

Regards,
Goran
 
Old 04-05-2003, 02:34 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Nope!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Solution, offering collabrative mail edzvan Linux - Software 0 08-30-2005 11:23 AM
SUSE9.1/YaST Online update offering same file versions?? irobot Linux - Newbie 0 06-26-2004 07:20 PM
How would I go about offering ssh Shell accounts? KneeLess Linux - Software 7 07-21-2003 08:29 AM
hp offering mandrake macewan General 9 07-05-2003 09:27 AM
samsclub offering linux computer macewan Linux - Hardware 16 02-11-2003 03:33 PM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration