LinuxQuestions.org
Review your favorite Linux distribution.
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 12-30-2004, 02:36 PM   #1
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Rep: Reputation: 15
Question Linksys DHCP Server


I have a Linksys BEFW11S4 WAP Router with two machines connected to the wired swtich: a linux box (Mandrake 10.0) in port 1 and a WinXP laptop in port 2. The DHCP server is enabled with the starting IP address at 192.168.1.100. On the linux box I added these lines to /etc/hosts
192.168.1.100 mylinuxbox.com
192.168.1.101 mywindozebox.com
The laptop does not have a hosts file.
On the laptop the linuxbox shows up as Mdkgroup, mylinuxbox, (shares) - all via samba.
This setup works. However, I would like to disable the DHCP server (in the router) and have the router assign static IP addresses for the LAN (not the WAN). On the DHCP tab of the router's configuation page there is the option to disable the DHCP Server. If I turn this off will my linux box (at least) still see the router? (I don't want to turn it off and have neither machine see the router. I want to avoud resetting the router.) How do I set up the DCHP Server and my computers to use static IP addresses for the LAN?

Thanks in advance.
 
Old 01-21-2005, 06:28 PM   #2
richpri
LQ Newbie
 
Registered: May 2004
Location: Chicago area
Distribution: debian at home - fedora at work
Posts: 15

Rep: Reputation: 0
First change both computers to use static addresses THEN
turn off the DHCP server.

In windows right click "my network places", select properties,
select TCP/IP, and select Properties again. Enter IP address
and subnet mask at a minimum.

In Linux use ifconfig or your distribution's network config scripts.
 
Old 01-21-2005, 06:54 PM   #3
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
And after you have the Ip adresses set and you have turned off the dhcp server you have to assign the default gateway (this functionality is what you called ("seeing the router"). In your case the default gateway you want will be 192.168.1.1.
 
Old 01-21-2005, 11:53 PM   #4
winsnomore
Member
 
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315

Rep: Reputation: 31
Don't do it . ..

If this setup is connected to the outside world .. I would suggest don't do it.
You will have a mess on your hands .. you will have to configure the DNS on each machine by hand .. and if the service provider "ever" changed
that on you ... you will have to do this whole thing all over again..
as a matter of fact there would be no way of finding the dns .. unless you went back in and looked at your linksys router, it willl know .. but your
computers won't :-))

Not using DHCP has to be for a very good reason .. and I don't think you should disable it to solve some minro configuration issue.
 
Old 01-23-2005, 05:02 PM   #5
tmoorman
Member
 
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the replies.
I think I will leave things as they are. The main reason why I was looking at static ip was that the DHCP server on the router assigns the first local ip to whichever machine it sees first (ie. whichever machine is turned on first.) Since my /etc/hosts uses the local ip (192.168.1.*) to assign the dns names to the local machines, it is important to know which ip will be assigned to which machine. Since my network has only 2 machines this is not a real issue, more a nuisance which I can live with.
 
Old 01-24-2005, 02:56 AM   #6
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
with a full-fledged dhcp server, the way you solve this is by setting an address reservation, ensuring that a given MAC address will always receive the same IP. I'm not sure you have that possibility with the Linksys dhcp server, it might be worth it to investigate, though.
 
  


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
linksys DHCP same every time true_atlantis Linux - Hardware 5 09-21-2004 09:48 AM
can't connect linksys+dhcp newbe45 Linux - Networking 0 09-05-2004 08:32 AM
Home network using linksys router -- DHCP server? GoinEasy9 Linux - General 12 04-01-2004 11:32 PM
dhcp server in linksys router maxvenum Linux - Networking 3 09-02-2003 07:56 AM
DHCP on Linksys router Wood Cock Linux - Networking 10 04-14-2002 02:29 PM


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

Main Menu
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