Re: assigning a static local IP to a machine on my home network
- From: Sergio <sergio.SPAMNAO.parreira@xxxxxxxxx>
- Date: Sun, 11 Mar 2007 10:56:48 +0000
Jeff Liebermann escreveu em 11-03-2007 2:23:
On 10 Mar 2007 07:46:45 -0800, "laredotornado@xxxxxxxxxxx"
<laredotornado@xxxxxxxxxxx> wrote:
I'm running a LinkSys wireless router, WRT54GS, firmware v 4.70.6. I
want to assign a static local IP address to a Linux machine I have
running behind the router. Is there anything I need to do on the
router configuration side?
I'll assume that you're redirecting traffic from a specific port
number or IP service to your Linux box. There are two ways to do
this.
1. Just assign a static IP address to the Linux box. In other words,
don't use DHCP to assign the Linux box IP address. Pick this static
IP address to be OUTSIDE the DHCP range of the router (usually
192.168.1.100 thru 192.168.1.150). This is a good way for
non-portable servers.
2. Let the Linux box get its IP address via DCHP, but setup the
router to always deliver the same IP address (based on the Linux boxes
MAC address). This is called "static DHCP". The problem is that the
stock WRT54GS firmware does NOT provide for this feature. <http://www.linksysdata.com/ui/WRT54GS/v1-v3/4.70.6/Setup.htm>
You'll need to run DD-WRT or one of the alternative firmware mutations
to get this feature. The advantage is that if your Linux box is
portable, you can leave it set for DHCP assigned IP address, and not
have to change it every time you take it somewhere.
The local IP address of my router is
192.168.1.1. My starting IP address in the router is 192.168.1.100 so
I tried to assign an IP outside of that range to the Linux machine
(192.168.1.99) using configuration commands on that machine.
So far so good. That should work.
When I
reconfigure my Linux machine, it no longer has internet connectivity
and after verifying I had followed the right commands, my thoughts
drifted to whether or not I need to configure anything on the router
side.
It takes more than just an IP address to obtain internet connectivity
if you're going to do it manually. You need:
1. A netmask (usually 255.255.255.0)
2. Default gateway to internet (IP address of router).
3. IP addresses for DNS servers. (May be IP address of router).
for point nr 3 you can check the isp dns server addresses through the status page of the router.
.
- Follow-Ups:
- Re: assigning a static local IP to a machine on my home network
- From: Jeff Liebermann
- Re: assigning a static local IP to a machine on my home network
- References:
- assigning a static local IP to a machine on my home network
- From: laredotornado@xxxxxxxxxxx
- Re: assigning a static local IP to a machine on my home network
- From: Jeff Liebermann
- assigning a static local IP to a machine on my home network
- Prev by Date: Re: Additional Wireless Router or Wired 5-port Switch
- Next by Date: Connection weirdness
- Previous by thread: Re: assigning a static local IP to a machine on my home network
- Next by thread: Re: assigning a static local IP to a machine on my home network
- Index(es):
Relevant Pages
|