republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Equipment Support » Hardware By Brand » D-Link » Locking IP address in Router for printer
Uniqs:
707
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Having port forwarding problems on my laptop »
« Help Blocking yahoo cam with dir-655  
WildBill99

join:2003-11-07
Blue Springs, MO

Locking IP address in Router for printer

I have the DSL 2640 DSL modem/router/wireless. But Vista reports it as a

Broadcom BRCM963xx. I am guessing that is the chipset and other routers might work similarly.

I have a printer connected to a win 98 machine by parallel cable. It also has a ethernet connection which I plugged in to the router.

And I just got a Vista laptop which connects wireless to the router.

The immediately found the printer when I did an Add Printer and made the connection. And it worked for a test print.

Later I found that the printer stopped working and found that I had rebooted the router and it assigned a new IP to the printer.

It seems to come up with the desktop, first physical port, on 192.168.1.3 . The laptop on 192.168.1.5.

And the printer which is on the 2nd physical port comes up wither 192.168.1.2 or .4.

And Vista is too dumb find the change or at least warning me when it can find the printer.

Anyway I thought of locking down the address. But the "manual" is not clear on how or what happens.

The only thing that I have found is Home/LAN page where I have the option of disabling the DHCP server or enabling it and if enabled the range of IP's that it assigns.

But no clue of what happens if I do disable it. I don't see any place to manually set them up.

No_Strings
Premium,Mod
join:2001-11-22
The OC

Host:
Wireless Networking
All Things Unix
Cox HSI
Qwest
Efficient

Re: Locking IP address in Router for printer

You'd have to assign the IP address for the printer via whatever setup program is provided by the printer. Turning off the DHCP server at the router isn't enough.

Let's work it from the router end, though. Does the router have the ability to assign IP addresses by MAC address? It's sometimes called "static DHCP" or similar. If so, you can put the MAC address of the printer and the desired IP into the router so it will come up the same every time.

If static DHCP isn't available, then static, manual addressing is your only option and, again, that's a function of the printer setup.
WildBill99

join:2003-11-07
Blue Springs, MO

Re: Locking IP address in Router for printer

I thing that an old router that I used to have had static IP's. But all I could find on this one is under Advance Port Mapping;

"Port Mapping Configuration
To create a new mapping group:
1. Enter the Group name and select interfaces from the available interface list and add it to the grouped interface list using the arrow buttons to create the required mapping of the ports. The group name must be unique.

2. If you like to automatically add LAN clients to a PVC in the new group add the DHCP vendor ID string. By configuring a DHCP vendor ID string any DHCP client request with the specified vendor ID (DHCP option 60) will be denied an IP address from the local DHCP server.
Note that these clients may obtain public IP addresses

3. Click Apply button to make the changes effective immediately

Note that the selected interfaces will be removed from their existing groups and added to the new group.

IMPORTANT If a vendor ID is configured for a specific client device, please REBOOT the client device attached to the modem to allow it to obtain an appropriate IP address. "

And that seems to be much more complicated than I want to try.

I looked at the printer setup and under TCP/IP address it has Boot Method and the options for DHCP/RARP/BOOTP/STATIC/AUTO.

It is currently set for Auto. It would be easy to make the change there.

But is static the best. What do the others do?

No_Strings
Premium,Mod
join:2001-11-22
The OC

Host:
Wireless Networking
All Things Unix
Cox HSI
Qwest
Efficient

Re: Locking IP address in Router for printer

Given all of that, just use the static IP setup on the printer.

You'll need the IP address, subnet, gateway and DNS servers.
IP - you decide. Sounds like 192.168.1.3 or thereabouts.
Subnet - 255.255.255.0
Gateway - 192.168.1.1
DNS - get those from your ISP, by looking at the router config or by running the commands "ping ns1" and "ping ns2".
WildBill99

join:2003-11-07
Blue Springs, MO

Re: Locking IP address in Router for printer

That is probably what I will do.

And it has already filled in the subnet mask and gateway from what it get from the router. Just need to lock those in and lock in the TCP/IP address.

Now on the advance page they offer DNS Sever method of either static or auto and it is set to auto.

And the primary and secondary DNS is set to the router gateway. Not sure if that is right or not.

But I really don't seen need for the DNS any way. The printer does not have to reach out to anything outside the local net.

And AFAIK all of the communication between the printer and computer are down by IP number. In fact if they used names and had a real DNS server then it would be the servers business of tracking the IP changes and I and would not be having this problem or looking at how to "fix" the DNS servers.

But I know enough to know that I don't really understand this. So I am going to google the other options just to get a little more background into what there are.

But I would still like to understand what would happen if I turned off the DHCP server in the router.

No_Strings
Premium,Mod
join:2001-11-22
The OC

Host:
Wireless Networking
All Things Unix
Cox HSI
Qwest
Efficient

Re: Locking IP address in Router for printer

You're right on the DNS for the printer, so you understand it better than you think.

What happens when you turn off the DHCP server:
(Simplified and mutilated)

A device set to obtain an IP address automatically sends out an announcement, asking if there are any DHCP servers within earshot willing to lend a poor NIC an IP address for a bit.

The DHCP server, upon hearing the request, takes pity on the poor network device and dispenses the next available address according to the parameters in its configuration. It knows to start at a certain IP address and to only give out a set number based on those settings.

If there's no DHCP server on the network, the pleas of the desperate NIC go unheeded and the device driver will time out. A temporary IP will be assigned - 169.x.x.x. The device will not be able to connect to other devices on the network.

If all devices on the network have statically assigned TCP/IP parameters, they will not cry out for help in obtaining one and will operate in the absence of a DHCP server.
WildBill99

join:2003-11-07
Blue Springs, MO

Re: Locking IP address in Router for printer

Well right now the router DHCP server is set to the default range of issuing address in the .2 to .254 range.

And I am going to have to change one end of the other to give at least one address that the router willl not assign and put the printer on that.

I guess I could put the printer at the high end expecting that the router will never get that high, but if I did some fluke it would try to assign address that high and have a conflict.

But I have noticed some strange things on the router. One of the status displays list the DHCP address and devices it has assigned.

But often it will not show all of then, although the devices are communicating OK.

My speculation is that the device already have an IP assinged to them when the router is rebooted they talk fine with that IP and don't have to ask the DHCP server for one until either the lease expires or the device is rebooted.

And at first I was thinking that the router might send out a broadcast asking who was their already or sending out a "every one shut up and ask for a new address". But that is not a guarantee either. If a device is powered up, but in a sleep mode it won't respond, but will keep it's last IP.

So I am guessing the router has some mechanism to where if it starts seening the same IP on 2 ports that it tells both of them to shut and ask for a new IP.

Although I suspect that the router has to keep a table of what IP traffic is on each port so that it knows how to route the traffic even if it did not assign the IP. And that the DHCP server is a separate function and the status only shows what the server did and not the internal tables.

Tomorrow I am going to run some 'spriment' with rebooting the router both with the other device in standby or disconnected and with the off and reboot after the router reboots and then just connecting with the laptop and seeing what it the router assigns.

BTW, the router has to have some limits on the number of ports that it can that it can route. Of course it only has 4 hardwired ports, but it can have any number of wireless connections at any one time.

While it could be setup to support the full range of .2 to .254 that seems like a lot. And I am not about the basic home level cheapest routers. I am if you have any idea of how many different connection that they will support at any one time.

Not that I really need to know, but just interested.

Thanks for the help that you have given me already.

No_Strings
Premium,Mod
join:2001-11-22
The OC

Host:
Wireless Networking
All Things Unix
Cox HSI
Qwest
Efficient

Re: Locking IP address in Router for printer

The theoretical limit is 255, based on available addresses. The practical limit varies. If you have a slow connection and heavy downloaders, they'll be hating life it there are only a couple. Light browsing and email - 20 would play together nicely on a fast pipe.

Good luck with it.
WildBill99

join:2003-11-07
Blue Springs, MO

Re: Locking IP address in Router for printer

I found a website that at a FAQ on DHCP and it was at just the right level and that help.

It did not say, but implied that the DHCP server should be able to detect conflicts and resolve them. But at least this router/DHCP server count not.

I turned off the wireless port on the laptop and unplug the printer and desktop and rebooted the router.

Then connected the router via cable to the laptop and opened that connection and got a .2 assignement for the lap top.

Then connected the printer and could not access it. Cycled power on the printer and it forced a DHCP request and got assigned to .3

Then I could access the printer webpage using .3 from the laptop.2

The reconnected the desktop that has been assigned .3 and thought that it was still on it .3

Total confusion.

The desktop would not work and I could not access the printer.

Did a release renewal on the Desktop and noticed a strange thing. The DHCP server assigned it a new address, but did not have a name for it and it get only a 1 minute lease. When that times it and renewed the lease then it got the desktop name and gave it a 24 hr lease.

Anyway I restricted the router DHCP server to .2 to .31. That is probably 8 times the number that I will ever use at any one time.

And set the printer for static at .32

And set that address in the laptop printer port.

And the princesses kissed the frog and everyone lived happily ever after.

Forums » Equipment Support » Hardware By Brand » D-LinkHaving port forwarding problems on my laptop »
« Help Blocking yahoo cam with dir-655  


Sunday, 29-Nov 03:38:09 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [122] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [96] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [80] TiVo Sees Record Customer Losses
· [73] Weekend Open Thread
· [71] Verizon CEO: Hulu Will Be Dead Soon
· [69] In-Flight Internet Headed For Bumpy Landing?
· [62] Thanksgiving Open Thread
· [40] EFF Wages War On Fine Print
Most people now reading
· [ PVP] 3.2 DK PvP D/W Spec... [World of Warcraft]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· [Newsgroups] Newzleech down? [Filesharing Software]
· Using AirMax to provide triple play services? [Wireless Service Providers]
· [ Classes] Druid tanking: rotation and glyphs [World of Warcraft]
· [How to] Install Asterisk on an Asus WL-520GU router [VOIP Tech Chat]
· What is the best subcription ratio? [Wireless Service Providers]
· Windows 7 boot manager editing questions [Microsoft Help]
· Evading throttling with uTP / uTorrent 1.9a [TekSavvy]