Address assignment pools enable you to specify groups of IP addresses that different client applications can share. In this configuration, the extended DHCP local server configuration uses the address pool to provide addresses to subscribers that are accessing the network.
To configure an address assignment pool:
- [edit]
- user@host#edit access address-assignment pool
AddressPool_1
- [edit access address-assignment pool AddressPool_1]
- user@host#edit family inet
- [edit access address-assignment pool AddressPool_1 family
inet]
- user@host#set network 33.33.0.0/16
- [edit access address-assignment pool AddressPool_1 family
inet]
- user@host#set network 33.33.0.0/16
- [edit access address-assignment pool AddressPool_1 family
inet]
- user@host#set range all low 33.33.0.10 high
33.33.127.254
- [edit access address-assignment pool AddressPool_1 family
inet]
- user@host#edit family inet dhcp-attributes
- [edit access address-assignment pool AddressPool_1 family
inet dhcp-attributes]
- user@host#set maximum-lease-time 3600
- [edit access address-assignment pool AddressPool_1 family
inet dhcp-attributes]
- user@host#set grace–periord 60
- [edit access address-assignment pool AddressPool_1 family
inet dhcp-attributes]
- user@host#set router 33.33.0.1
- [edit]
- user@host#set access-profile AccessProfile_general
You can enable the MX-series router to function as an extended DHCP local server. The extended DHCP local server provides IP addresses and other configuration information to a subscriber logging into the network.
To configure the DHCP local server:
- [edit]
- user@host#edit system services
- [edit system services]
- user@host#edit dhcp-local-server
- [edit system services dhcp-local-server]
- user@host#edit traceoptions
- [edit system services dhcp-local-server traceoptions]
- user@host#set file dhcp-server-msgs.log
- [edit system services dhcp-local-server traceoptions]
- user@host#set flag all
- [edit system services dhcp-local-server]
- user@host#set pool-match-order ip-address-first
- [edit system services dhcp-local-server]
- user@host#set authentication password auth-psswrd
- [edit system services dhcp-local-server]
- user@host#edit authentication username-include
- [edit system services dhcp-local-server username-include]
- user@host#set domain-name yourcompany.com
- user@host#set user-prefix user-defined-prefix
- [edit system services dhcp-local-server]
- user@host#edit group dhcp-ls-group
- [edit system services dhcp-local-server group dhcp-ls-group]
- user@host#set dynamic-profile Profile-Triple_Play
- [edit system services dhcp-local-server group dhcp-ls-group]
- user@host# set interface ge-1/3/0.1 upto ge-1/3/0.5