Friday, January 8, 2010

Assign static adress via DHCP (Cisco IOS)

Usually a good idea will be to assign a static IP allocation for a server, in order to do that we need to get servers MAC address as it's identifier:

Next , prepend 01 to it and insert a dot after every fourth character to get the client-ID you need to enter on the DHCP server. For example, the MAC address 0200.1000.1234 becomes client-id 0102.0010.0012.34, and the static DHCP pool (Server_static) on a router is configured as follows:

cisco851(config)#ip dhcp pool Server_static
cisco851(dhcp-config)#client-identifier 0102.0010.0012.34

No comments: