DHCP pool configuration examples

Last Updated : May 08, 2023 |

The following example defines a dynamic pool for voice devices:

Gxxx-001(super)# ip dhcp pool 1
Gxxx-001(super-DHCP 1)# name IP phone Pool
Done!
Gxxx-001(super-DHCP 1)# start-ip-addr 135.64.20.2
Done!
Gxxx-001(super-DHCP 1)# end-ip-addr 135.64.20.30
Done!
Gxxx-001(super-DHCP 1)# subnet-mask 255.255.255.0
Done!
Gxxx-001(super-DHCP 1)# default-router 135.64.20.1
Done!
Gxxx-001(super-DHCP 1)# option 242
Gxxx-001(super-DHCP 1/option 242)# name Avaya IP phone option
Done!
Gxxx-001(super-DHCP 1/option 242)# value ascii MCIPADD=10.10.2.140,
MCPORT=1719, TFTPSRVR=10.10.5.188
Done!
Gxxx-001(super-DHCP 1/option 242)# exit
Gxxx-001(super-DHCP 1)# exit
Gxxx-001(super)# ip dhcp activate pool 1
Done!
Gxxx-001(super)# ip dhcp-server
Done!
Gxxx-001(super)#

The following example defines a dynamic pool for data devices:

Gxxx-001(super)# ip dhcp pool 2
Gxxx-001(super-DHCP 2)# name Data Pool
Done!
Gxxx-001(super-DHCP 2)# start-ip-addr 135.64.20.34
Done!
Gxxx-001(super-DHCP 2)# end-ip-addr 135.64.20.60
Done!
Gxxx-001(super-DHCP 2)# subnet-mask 255.255.255.0
Done!
Gxxx-001(super-DHCP 2)# default-router 135.64.20.33
Done!
Gxxx-001(super-DHCP 2)# dns-server 10.10.1.1
Done!
Gxxx-001(super-DHCP 2)# domain-name my.domain.com
Done!
Gxxx-001(super-DHCP 2)# option 242
Gxxx-001(super-DHCP 2/option 242)# value ascii MCIPADD=192.168.50.17,
192.168.50.15, MCPORT=1719, TFTPSRVR=192.168.50.1, TFTPDIR=/phonedir/
Done!
Gxxx-001(super-DHCP 2/option 242)# exit
Gxxx-001(super-DHCP 2)# exit
Gxxx-001(super)# ip dhcp activate pool 2
Done!
Gxxx-001(super)# ip dhcp-server
Done!
Gxxx-001(super)#

The following example configures a vendor-specific option for DHCP pool 5:

Gxxx-001(super-DHCP 5)# vendor-specific-option 1
Gxxx-001(super-DHCP 5/vendor specific 1)# class-identifierccp.avaya.com
Done!
Gxxx-001(super-DHCP 5/vendor specific 1)# value raw ascii gfdgfd
Done!
Gxxx-001(super-DHCP 5/vendor specific 1)# exit
Gxxx-001(super-DHCP 5)#

The following example defines a reservation pool for data devices:

Gxxx-001(super)# ip dhcp pool 3
Gxxx-001(super-DHCP 3)# name Data 1 Server
Done!
Gxxx-001(super-DHCP 3)# start-ip-addr 135.64.20.61
Done!
Gxxx-001(super-DHCP 3)# end-ip-addr 135.64.20.61
Done!
Gxxx-001(super-DHCP 3)# subnet-mask 27
Done!
Gxxx-001(super-DHCP 3)# client identifier 01:11:22:33:44:55:66
Done!
Gxxx-001(super-DHCP 3)# default-router 135.64.20.33
Done!
Gxxx-001(super-DHCP 3)# dns-server 10.10.1.1
Done!
Gxxx-001(super-DHCP 3)# exit
Gxxx-001(super)# ip dhcp activate pool 3
Done!
Gxxx-001(super)#