Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-30-2004, 02:36 PM
|
#1
|
|
Member
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50
Rep:
|
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.
|
|
|
|
01-21-2005, 06:28 PM
|
#2
|
|
LQ Newbie
Registered: May 2004
Location: Chicago area
Distribution: debian at home - fedora at work
Posts: 15
Rep:
|
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.
|
|
|
|
01-21-2005, 06:54 PM
|
#3
|
|
Member
Registered: Aug 2002
Posts: 117
Rep:
|
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.
|
|
|
|
01-21-2005, 11:53 PM
|
#4
|
|
Member
Registered: May 2004
Location: USA
Distribution: #1 PCLinuxOS -- for laughs -> Ubuntu, Suse, Mepis
Posts: 315
Rep:
|
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.
|
|
|
|
01-23-2005, 05:02 PM
|
#5
|
|
Member
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50
Original Poster
Rep:
|
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.
|
|
|
|
01-24-2005, 02:56 AM
|
#6
|
|
Member
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|