This article provides information on how to configure an HPE Juniper Networking SRX device as a DHCPv6 server and verify the configuration. This also applies to HPE Juniper Networking EX and QFX Series Switches.
You would like to know how to configure an SRX Series device or an EX/QFX Series Switch as a DHCPv6 server for a subnet.
Note : This feature is supported on SRX platform from Junos OS release 12.1 or later. This is also supported in EX/QFX Series Switches.
For DHCPv6 overview and other configuration examples, refer to DHCPv6 Server Overview .
Configuration Example
To configure the device as a DHCPv6 server for a subnet, perform the following procedure:
Specify the lowest IP address of the pool range (for example, 2001:db8:102:ffee::200/128 ):
root#set access address-assignment pool my-pool family inet6 range r1 low 2001:db8:102:ffee::200/128
Specify the highest IP address of the pool range (for example, 2001:db8:102:ffee::299/128 ):
root#set access address-assignment pool my-pool family inet6 range r1 high 2001:db8:102:ffee::299/128
Specify the DNS server that the clients use (for example, 2001:db8:4860::8888 ):
root#set access address-assignment pool my-pool family inet6 dhcp-attributes dns-server 2001:db8:4860::8888
Specify the IP address of the router that is assigned to clients for the DHCP pool:
root#set access address-assignment neighbor-discovery-router-advertisement my-pool root#set access address-assignment pool my-pool family inet6 prefix 2001:db8:102:ffee::/64
For SRX devices only, specify DHCP as an allowed inbound service for each interface that is associated with DHCP:
user@host# set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic system-services dhcp user@host# set security zones security-zone untrust interfaces ge-0/0/1.0 host-inbound-traffic system-services dhcp
Note : The IP address of the interface must be in the same network as that of the DHCP pool.
root#set system services dhcp-local-server dhcpv6 group mygroup interface ge-0/0/0.0 root#set interfaces ge-0/0/0 unit 0 family inet6 address 2001:db8:102:ffee::1/64 root#set protocols router-advertisement interface ge-0/0/1.0 prefix 2001:db8:102:ffee::/64
For security devices only, enable IPV6 flow in security forwarding-options and then reboot the device:
security forwarding-options
root# set security forwarding-options family inet6 mode flow-based root# exit root> request system reboot
Verification
To verify the DHCPv6 service configuration, use the following operational commands:
root# run show dhcpv6 server binding Prefix Session Id Expires State Interface Client DUID 2001:db8:102:ffee::200/128 2 85293 BOUND ge-0/0/0.0 LL_TIME0x1-0x17484efa-01:23:34:56:aa:bb root# run show dhcpv6 server statistics Dhcpv6 Packets dropped: Total 0 Messages received: DHCPV6_DECLINE 0 DHCPV6_SOLICIT 3 DHCPV6_INFORMATION_REQUEST 0 DHCPV6_RELEASE 0 DHCPV6_REQUEST 2 DHCPV6_CONFIRM 1 DHCPV6_RENEW 0 DHCPV6_REBIND 0 DHCPV6_RELAY_FORW 0 DHCPV6_RELAY_REPL 0 Messages sent: DHCPV6_ADVERTISE 2 DHCPV6_REPLY 2 DHCPV6_RECONFIGURE 0 DHCPV6_RELAY_REPL 0
2020/07/29: Article reviewed for accuracy; no changes required; article relevant and valid.
2026-05-13: Added support for EX QFX series switches except adding the host inbound services or requiring to enable IPv6 flow mode.