Networking Forums

Networking Forums > Computer Networking > Linux Networking > LinkSys Router and Static Addresses

Reply
Thread Tools Display Modes

LinkSys Router and Static Addresses

 
 
Buck Turgidson
Guest
Posts: n/a

 
      12-14-2003, 12:31 PM
I have a 2 Linux and 1 Windows machine at home on a network behind a LinkSys
BEFSR41 router. Everytime there is a power outage, or other disruption, all
the IP addresses get reset, and I have to change all the host files,
forwarding, etc.

Is there a way to assign the machines a static address, rather than have the
router act as a DHCP server?

I am not a networking guru, so please don't assume too much knowledge on my
part.


 
Reply With Quote
 
 
 
 
George Bell
Guest
Posts: n/a

 
      12-14-2003, 02:01 PM
Buck Turgidson wrote:

> I have a 2 Linux and 1 Windows machine at home on a network behind a
> LinkSys
> BEFSR41 router. Everytime there is a power outage, or other disruption,
> all the IP addresses get reset, and I have to change all the host files,
> forwarding, etc.
>

Which files specifically? If dhcp is properly set up, the dhcp protocols
configure all that information(default route, dns servers, etc), not just
the ip. So in normal circumstances, it should not really matter what
particular (reserved)ip the host gets. O.K. your /etc/hosts file would
become outdated, and keeping it updated(if that's really necessary)
whenever the ip changes is a bit complicated.

Another possibility: Put the router alone on an UPC( Uninterruptable Power
Supply).

> Is there a way to assign the machines a static address, rather than have
> the router act as a DHCP server?
>

Yes. Each distro should have some way of manually configuring each
interface with a static ip. Just choose one from the reserved network
pool: 192.168.0.0 - 192.168.255.0. Choose some network( i.e. 192.168.1.0
or copy the one the Linksys router used) and assign each of your hosts with
a network number of 192.168.1.x where x = a number of your choice from
1-254) . For the Windows PCs, go to Network Properties, uncheck "Obtain Ip
automattically" and just fill in all the boxes, and fill in your router's
ip for your gateway.

George

--
#
#...
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      12-14-2003, 06:54 PM
On Sun, 14 Dec 2003 08:31:17 -0500, Buck Turgidson <(E-Mail Removed)> wrote:
> I have a 2 Linux and 1 Windows machine at home on a network behind a LinkSys
> BEFSR41 router. Everytime there is a power outage, or other disruption, all
> the IP addresses get reset, and I have to change all the host files,
> forwarding, etc.
>
> Is there a way to assign the machines a static address, rather than have the
> router act as a DHCP server?


Yes, just make sure that the static IPs are in the same network, but
outside of the DHCP assigned range. However, when assigning static IPs,
you also need to set gateway and nameservers (/etc/resolv.conf in Linux).

You can get a clue of current settings by checking ifconfig, route -n, and
/etc/resolv.conf in Linux before changing anything. In windows you can
either check settings with Start, Run, winipcfg (Win9x/ME) or 'ipconfig
/all' in a command window of NT,2k,XP. Then check DHCP range of your
Linksys and use a static IP where number after last dot is outside that
range.

Some gateway/routers (like my Dlink DI-704) can actually dhcp assign
static IPs by MAC address, but that may be rare.

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I configure a static IP from my Linksys router? laredotornado@zipmail.com Wireless Internet 5 03-10-2007 11:54 PM
static IPs for linksys wrt54g wireless router. KraftDiner Wireless Internet 9 07-26-2006 09:29 PM
How to use 192.168... addresses behind Router with a Static IP iceman Network Routers 19 12-02-2005 06:48 PM
How to keep a static IP and let DNS addresses be dynamically updated on Linksys WRT54GS ? for.fun@laposte.net Wireless Internet 15 08-26-2005 08:28 AM
Static Ip's and BT - I have just recieved A BT router with 5 static IP Addresses. However, I want 5 computers in the office to use only one of the addresses. ery Difficult Question Nattasian Broadband 3 07-13-2004 08:55 AM



1 2 3 4 5 6 7 8 9 10 11