09-25-2006 12:57 AM - edited 07-04-2021 01:08 PM
I need to assign static ip to one of my user connects via DSL to our router. Generally all DSL users get IP from IP Pool configured on router. Can any one help with the configuration on router for static IP assignment.
09-25-2006 03:29 AM
what you can do it use a dhcp 'reservation' if you like. this way you can configure the ip to be provided by dhcp but it will act as 'static' as it could never change as long as the reservation is available.
in order to provide a 'static' dhcp ip address, aka reservation, you need to know the MAC address of the device connecting to you. with the MAC address, you can create the dhcp reservation on your dhcp server.
if you're using IOS for dhcp, a reservation would look like the following:
router(config)# ip dhcp pool DLSUSERS
router(config-dhcp)# host 192.168.2.101 /24
router(config-dhcp)# client-identifier 0008.1234.abcd (or hardware-address 0008.1234.abcd)
router(config-dhcp)# client-name DSLUSER1
please see the following link for more info:
09-25-2006 07:01 AM
qpulos is right, but when using client-identifier you need to add 01 at the beginning of the MAC (for ethernet media type). So for the mac he listed, I would normally do:
client-identifier 0100.0812.34ab.cd
I have seen a few cases where it does not see it with the leading 01 however, so your best bet is to set up a dynamic pool, and do a "show ip dhcp binding" to see what MAC it is showing.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide