LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-01-2005, 05:42 AM   #1
sat86
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
DHCP problems - multiple DHCP servers


I use my computer on a university network, and it would appear that someone has managed to run their own dhcp server (probably some wireless router or something) on the network. This interferes with my obtaining an IP address from the legitimate server.

However windows appears to get an IP address from the correct place. Why is this the case? ethereal seems to be showing windows DHCP packets only getting sent to the correct address, (does windows cache the DHCP server address?) whereas linux appears to just broadcast for the nearest server.

How can I force linux to use the correct server? (Should the dhclient -s option work? It reports the network is unreachable.)

(My distro is Fedora Core 4 though I'd expect I might just have to use dhclient options rather than use a config tool.)

Thanks

Last edited by sat86; 10-01-2005 at 05:52 AM.
 
Old 10-01-2005, 09:39 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I've never actually had to do this but have a look at man dhclient.conf .
In particular, you may need to use reject < ip address > and
server-name
 
Old 10-01-2005, 01:29 PM   #3
sat86
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks.

That appears to reject the offers from the rogue server, though the proper one appears not to be responding just now...

I may have to convince it by putting in some client details.
 
Old 10-01-2005, 02:34 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Doesn't server-name work?

server-name "string";

The server-name statement specifies the name of the boot server name to use.
This is also not used by the standard client configuration script.
 
Old 10-02-2005, 05:43 AM   #5
sat86
LQ Newbie
 
Registered: Oct 2004
Location: Scotland
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
This does not appear to be necessary. It seems that telling the server my MAC address and other such details encourages it to respond. Though for some reason it is possible NOT to instruct dhclient to reject the rogue server and it still takes the legitimate address despite getting two offers. I don't know how it can tell which to choose. Though forcing it to reject the rogue one is a useful safety measure.

Thanks for the help.
 
  


Reply



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
Two DHCP Servers mesh2005 Linux - Networking 3 10-16-2005 05:26 AM
2 DHCP servers on a network olefemmy Linux - Networking 2 11-19-2004 10:27 AM
Finding out DHCP Servers warned Linux - Networking 2 04-15-2004 02:44 AM
running servers with DHCP??? wiredX Linux - Security 4 07-14-2003 04:01 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:46 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
Open Source Consulting | Domain Registration