Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / General / Networking / July 2009



Tip: Looking for answers? Try searching our database.

How To: Linksys DHCP assigns address based on MAC?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
YA MacUser - 03 Jul 2009 21:27 GMT
Greetings and thanks for reading this.
With D-Link consumer routers, it is easy to have the DHCP server always
assign the same LAN address to a given MAC number so port forwarding
will go to the computer with that LAN address.
I need to do this to a Linksys WRT54G router but can't find a
recognizable page in the setup. Where to control the DHCP server?
Kind regards

Signature

---------------------------------

Gene E. Bloch - 04 Jul 2009 04:09 GMT
> Greetings and thanks for reading this.
> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 3 lines]
> recognizable page in the setup. Where to control the DHCP server?
> Kind regards

Can't you tell the computer with that MAC address to use a fixed IP
address?

That's the way it works in Windows (and it's easy to do).

Signature

Gene E. Bloch      letters0x40blochg0x2Ecom

J.J. O'Shea - 04 Jul 2009 06:22 GMT
>> Greetings and thanks for reading this.
>> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 8 lines]
>
> That's the way it works in Windows (and it's easy to do).

If he uses a fixed IP that's within the DHCP pool, the router might allocate
that IP to something else. That would be bad. Most routers allow for IPs to
be reserved for particular MAC addresses. The Linksys User Guide details how.
Chapter 8, IIRC.

Signature

email to oshea dot j dot j at gmail dot com.

Barry Margolin - 04 Jul 2009 07:00 GMT
> >> Greetings and thanks for reading this.
> >> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 13 lines]
> be reserved for particular MAC addresses. The Linksys User Guide details how.
> Chapter 8, IIRC.

So he should use a fixed IP that's NOT within the DHCP pool.

I have a WRT54G, and AFAIK it doesn't have a way to configure static
MAC->IP mappings for the DHCP server.  Maybe this can be added with
DD-WRT firmware.

Signature

Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

J.J. O'Shea - 04 Jul 2009 13:05 GMT
>>>> Greetings and thanks for reading this.
>>>> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 17 lines]
>
> So he should use a fixed IP that's NOT within the DHCP pool.

Yes. IIRC Linksys routers usually set the DHCP pool to be from 192.168.1.10
on up to 192.168.1.254. The router itself is usually 192.168.1.1, and of
course 192.168.1.0 and 192.168.1.255 can't be used, so that leaves
192.168.1.2 to 192.168.1.9 available for use.

> I have a WRT54G, and AFAIK it doesn't have a way to configure static
> MAC->IP mappings for the DHCP server.  Maybe this can be added with
> DD-WRT firmware.

I could be wrong about this, but I'd be surprised if I were as that would
make Linksys the only vendor which doesn't support reserved IPs, which is a
standard TCP feature. Certainly the routers I have at home and at the office
support reserved IPs. I use them all the time for printers, servers, NAS
boxes, and laptops.

Signature

email to oshea dot j dot j at gmail dot com.

Barry Margolin - 04 Jul 2009 17:45 GMT
> >>>> Greetings and thanks for reading this.
> >>>> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 23 lines]
> course 192.168.1.0 and 192.168.1.255 can't be used, so that leaves
> 192.168.1.2 to 192.168.1.9 available for use.

It's been a while since I initially set mine up, so I could be
remembering incorrectly, but I think the default range starts at .100,
not .10.  But even if not, it's simple to change the range it uses, if
you need more fixed addresses.

The problem with configuring a static IP, though, is that you also have
to configure DNS statically.  It would be preferable to get the ISP's
DNS from the router via DHCP.  Apple has an option in the Network
preference for "Using DHCP with manual address", but this doesn't seem
to work with Linksys routers.  We had a thread a couple of years ago
about this.

> > I have a WRT54G, and AFAIK it doesn't have a way to configure static
> > MAC->IP mappings for the DHCP server.  Maybe this can be added with
[quoted text clipped - 5 lines]
> support reserved IPs. I use them all the time for printers, servers, NAS
> boxes, and laptops.

I'm practically certain I'm correct.  This isn't a "standard TCP
feature", it's a configuration option in some (perhaps most) DHCP
servers.  It doesn't affect the wire protocol, so it's not something
that needs to be standardized across implementations.

Signature

Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

J.J. O'Shea - 04 Jul 2009 18:21 GMT
>>>>>> Greetings and thanks for reading this.
>>>>>> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 28 lines]
> not .10.  But even if not, it's simple to change the range it uses, if
> you need more fixed addresses.

You could easily be right, it's been a long time since I played with a
Linksys.

> The problem with configuring a static IP, though, is that you also have
> to configure DNS statically.  It would be preferable to get the ISP's
> DNS from the router via DHCP.  Apple has an option in the Network
> preference for "Using DHCP with manual address", but this doesn't seem
> to work with Linksys routers.  We had a thread a couple of years ago
> about this.

I always put in a DNS server anyway. Usually OpenDNS.

>>> I have a WRT54G, and AFAIK it doesn't have a way to configure static
>>> MAC->IP mappings for the DHCP server.  Maybe this can be added with
[quoted text clipped - 11 lines]
> servers.  It doesn't affect the wire protocol, so it's not something
> that needs to be standardized across implementations.

I stand corrected.

Signature

email to oshea dot j dot j at gmail dot com.

Kevin McMurtrie - 04 Jul 2009 08:34 GMT
> Greetings and thanks for reading this.
> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 3 lines]
> recognizable page in the setup. Where to control the DHCP server?
> Kind regards

Linksys router, NAT, and firewall solutions are pathetic.  No features,
no throughput, and very prone to crashing.  I don't think you'll find a
better solution than ditching it.

As a temporary solution, you can give the computers static IP addresses
inside the subnet but outside the DHCP range.  The Linksys probably only
handles 25 DHCP addresses so plenty are left for manual assignment even
in a /24 subnet.

Signature

I will not see your reply if you use Google.

J.J. O'Shea - 04 Jul 2009 13:07 GMT
>> Greetings and thanks for reading this.
>> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 12 lines]
> handles 25 DHCP addresses so plenty are left for manual assignment even
> in a /24 subnet.

I didn't think that Linksys was _that_ bad. Not fully baked, yes, but missing
key features? Maybe I'm spoiled by using real routers...

Signature

email to oshea dot j dot j at gmail dot com.

Nollaig MacKenzie - 04 Jul 2009 15:45 GMT
On 2009.07.04 07:34:25,
the amazing <kevinmcm@sonic.net> declared:

        <snip!>

> Linksys router, NAT, and firewall solutions are pathetic.  No features,
> no throughput, and very prone to crashing.  I don't think you'll find a
> better solution than ditching it.

I've been using a Linksys BEFSR for quite a while, and
it seems to do the job OK. On the BEFSR you specify what
IP range you let the DHCP server control. I only let it
control a small number, so guests can plug into the net.
Our two Apples, and our backup drive, claim their own IPs.

But obviously my notion that the Linksys does everything
I expect a router to do doesn't have much grounding, since
the only router I've ever had is a Linksys :-)  Eventually
I'll have to replace it. Is there consensus about which
brands are good? Maybe I should ask whether there's a web
site that has ratings....

> As a temporary solution, you can give the computers static IP addresses
> inside the subnet but outside the DHCP range.  The Linksys probably only
> handles 25 DHCP addresses so plenty are left for manual assignment even
> in a /24 subnet.

Signature

Nollaig MacKenzie
http://www.amhuinnsuidhe.net

J.J. O'Shea - 04 Jul 2009 15:55 GMT
> On 2009.07.04 07:34:25,
> the amazing <kevinmcm@sonic.net> declared:
[quoted text clipped - 17 lines]
> brands are good? Maybe I should ask whether there's a web
> site that has ratings....

The best consumer router is Apple's Airport Extreme. It does everything:
DHCP, NAT, easily sets DHCP pools, easily reserves IPs, can create multiple
networks if necessary, knows both IPv4 and IPv6, knows many varieties of WPA
(and WEP, which is useless...) and does _NOT_ use a HTML page for
configuration, and so is hard to hack remotely. It also doesn't use stupid
passwords as defaults.

The best business routers depend on what you want to do and what your budget
is. Low-end business routers start at $1000. Good ones cost more.

Signature

email to oshea dot j dot j at gmail dot com.

Warren Oates - 04 Jul 2009 17:06 GMT
> The best consumer router is Apple's Airport Extreme. It does everything:
> DHCP, NAT, easily sets DHCP pools, easily reserves IPs, can create multiple
> networks if necessary, knows both IPv4 and IPv6, knows many varieties of WPA
> (and WEP, which is useless...) and does _NOT_ use a HTML page for
> configuration, and so is hard to hack remotely. It also doesn't use stupid
> passwords as defaults.

My DGL 4300 does all that, and yeah, it has an HTML setup page, I
wouldn't have it any other way; it's very secure if it's used correctly.
Passwords are the responsibility of the user, not the vendor. If the
user is too stupid to change the default, then he's probably too stupid
to tie his shoe laces as well.

And the Airport is anything but "Extreme," at least as a receiver. The
only laptops that don't pick up the signal at the back of the house are
Apple laptops.
Signature

Suddenly he realized that he was alone
with a giant halfwit on a dark deserted street.
 -- Chester Himes

John Smith - 04 Jul 2009 17:33 GMT
> The best consumer router is Apple's Airport Extreme.
...
> and does _NOT_ use a HTML page for configuration

There's something I really *hate* about the Airport, namely that I need
a special app to cofigure it.
YA MacUser - 04 Jul 2009 23:15 GMT
Greetings and many thanks for your comments from which, I take it that
the Linksys WRT54G is not capable of having its DHCP server reserve IPs
for given MAC addresses.
Kind regards

Signature

---------------------------------

nospam - 04 Jul 2009 23:21 GMT
> Greetings and many thanks for your comments from which, I take it that
> the Linksys WRT54G is not capable of having its DHCP server reserve IPs
> for given MAC addresses.

it very definitely is if you use third party firmware.
Kevin McMurtrie - 05 Jul 2009 08:34 GMT
> > On 2009.07.04 07:34:25,
> > the amazing <kevinmcm@sonic.net> declared:
[quoted text clipped - 27 lines]
> The best business routers depend on what you want to do and what your budget
> is. Low-end business routers start at $1000. Good ones cost more.

Netgear small-business routers (metal blue ones) are pretty good for the
price as long as you don't update the firmware.

Signature

I will not see your reply if you use Google.

Maarten Carels - 20 Jul 2009 11:17 GMT
> Greetings and thanks for reading this.
> With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 3 lines]
> recognizable page in the setup. Where to control the DHCP server?
> Kind regards
In the primary page (Setup - Basic setup):

DHCP Server Setting
There is a choice to enable/disable the DHCP server. Next to it is a
DHCP Reservation button.

Click it, and a window opens where you can manually enter new clients
and assign addresses based onb their MAC address.

At least, on my WRT-150N.

Hope this helps.

--maarten
Barry Margolin - 21 Jul 2009 01:21 GMT
> > Greetings and thanks for reading this.
> > With D-Link consumer routers, it is easy to have the DHCP server always
[quoted text clipped - 13 lines]
>
> At least, on my WRT-150N.

WRT-150N is not the same as WRT54G.  The latter doesn't have that button.

Signature

Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.