![]() ![]() My own logic tells me the router should "route" or NAT the specific port request from the outside to the MAC address where I have the service, and not to the IP. (Otherwise old devices would just slowly fill up the table of used IPs.) It will get an IP, but not the same one as before. Lets sketch that: PC1 gets IP 1.2.3.4 for 4 hours. It will have to ask for a completely new lease. ![]() Now If you turn off your computer for a day then it can not longer renew it. Your NAT will keep pointing to the right place and everything will be fine. Usually this goes on forever and the device will keep using the same IP forever. (Think of renting a book at the library and phoning in to renew the lease). After half that time (2hours) it will ask for a renewal. Say that the new device got IP 1.2.3.4 and was told it was allowed to use that for 4 hours. The server can also deny the DHCP request. ![]() It might also offer the settings for DNS, for the default gateway and a hostname. A DHCP server notices the broadcast and replies:.I would like to get the information needed to work on this network". A new device brings up its NIC and broadcasts "Hi, I am AA:BB:CC:DD:EE:FF.It helps if you have some background of DHCP. However apparently the router sometimes "identifies" a device by its MAC, The only disadvantage is when (if) your DHCP server ever goes down. The last is cleaner since you only have one place to manage the configurations. (As are static IP addresses for network printers, scanner and similar devices).ġ. Static IP addresses for servers are a good thing. Services behind the router that are to be accessed from outside. On Linux installations it depends on the software used, but most of the time you can edit /etc/nf and add something like this: host name_of_your_PCīased on this information my practice has been to use a static IP for any On windows you can you open the DHCP Server management console and set reservations. Many SoHo devices have a web interface to do this. You can assign a specific IP to a computer with a MAC reservation. So which is it? The second part of the question would be, if the DHCP server restarts, or, for example, the client device goes offline, then comes back on, will the DHCP server try to maintain the previous local IP assigned to the device, or will it just pick the next available IP?ĭHCP server on the router will, over time, change the assigned local IP. However apparently the router sometimes "identifies" a device by its MAC, and other times by its local IP. I have been told by colleagues that if you let DHCP assign the IP to the device, the specific NAT rule will eventually fail, as the DHCP server on the router will, over time, change the assigned local IP, invalidating the NAT port link-which is to the local IP, not to the MAC (physical) address of the device.īased on this information my practice has been to use a static IP for any services behind the router that are to be accessed from outside. I would like to have the DHCP server assign addresses to the services, but at the same time, use NAT to point to the services. I mention the specific router model just to have a reference, but the question goes in general as I may need to use this programming with different routers. I would like to set up NAT to put a service on internet using my Technicolor TG 582 router.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |