42
ESR Series Routers Operation Manual
esr(config-dhcp-server)#
exit
To enable IP address distribution from the configurable pool by DHCP server, IP interface should be
created on the router that belongs to the same subnet as the pool addresses.
esr(config)#
interface gigabitethernet 1/0/1
esr(config-if-gi)#
security-zone trusted
esr(config-if-gi)#
ip address 192.168.1.1/24
esr(config-if-gi)#
exit
To enable DHCP protocol message transmission to the server, you should create the respective port
profiles including source port 68 and destination port 67 used by DHCP protocol and create the allowing
rule in the security policy for UDP protocol packet transmission.
esr(config)#
object-group service dhcp_server
esr(config-object-group-service)#
port-range 67
esr(config-object-group-service)#
exit
esr(config)#
object-group service dhcp_client
esr(config-object-group-service)#
port-range 68
esr(config-object-group-service)#
exit
esr(config)#
security zone-pair trusted self
esr(config-zone-pair)#
rule 30
esr(config-zone-rule)#
match protocol udp
esr(config-zone-rule)#
match source-address any
esr(config-zone-rule)#
match destination-address any
esr(config-zone-rule)#
match source-port dhcp_client
esr(config-zone-rule)#
match destination-port dhcp_server
esr(config-zone-rule)#
action permit
esr(config-zone-rule)#
enable
esr(config-zone-rule)#
exit
esr(config-zone-pair)#
exit
Allow server operation:
esr(config)#
ip dhcp-server
esr(config)#
exit
Configuration changes will take effect when the configuration is applied:
esr#
commit
Configuration has been successfully committed
esr#
confirm
Configuration has been successfully confirmed
esr#
To view the list of leased addresses, use the following command:
esr#
show ip dhcp binding
To view the configured address pools, use the following command:
esr#
show ip dhcp server pool
esr#
show ip dhcp server pool Simple
Configuration of settings for IPv6 is performed by analogy to IPv4.