Re: assigning a static local IP to a machine on my home network



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.
.



Relevant Pages

  • Re: network, samba, dhcp?
    ... the internet through your router, Your router has nothing to do with smb ... Sun Ultra 2 running SuSE Linux 7.3. ... DHCP is fine if you have a large network with alot of computers. ...
    (alt.os.linux.suse)
  • Re: Ethernet card problem
    ... you need to configure your Linux box to request a DHCP ... The router handles the PPPoE side of things (true ... the default route on the router appears not to be set up again ...
    (comp.os.linux.networking)
  • Re: Need help with Connecting to Bellsouth DSL with Linux
    ... >I'm new to Linux. ... The westell should connect to the wan port of your router. ... Your router should also be set up as a DHCP server. ...
    (comp.os.linux.networking)
  • Re: Confusing gateway/FW project - need help bad!
    ... ...all boxes have internet as well as intranet access. ... address" setting in the router enabled but disable DHCP on the LAN. ... I was going to change it over to Linux eventually anyhow, ... I have eth1 removed from the box as I figured I'd get eth0 ...
    (comp.os.linux.networking)
  • Re: Networking problems (again) tough one
    ... The problem *only* occurs on my Linux machines. ... DNS numbers, ... all systems start working again whether setup manually or with DHCP. ... If theu are shoing good, and yet things dont work, you may have a misconfigured router. ...
    (comp.os.linux.setup)