Knowledge Search


×
 

[SRX] JDHCP configuration in Ethernet switching

  [KB26898] Show Article Properties


Summary:

This article provides information on how to configure a SRX device (running 12.x or later) as a DHCP Server to provide the IP address to client, when the client facing interface is part of a VLAN.

Symptoms:

Starting with 12.x, the DHCP process has been modified and the new process is JDHCP. Even though both of the processes run on the device, it is recommended to use JDHCP and not DHCP.

Solution:
JDHCP configuration in Ethernet switching:

Configure Ethernet switching:
set vlans VLAN1 vlan-id 10
set vlans VLAN1 l3-interface vlan.1
Assign the IP address on the VLAN interface:
set interfaces ge-0/0/15 unit 0 family ethernet-switching vlan members VLAN1
set interfaces vlan unit 1 family inet address 6.6.6.1/24
Configure the JDHCP server:
set system services dhcp-local-server group JDHCP interface vlan.1
set access address-assignment pool JDHCPVR-POOL family inet network 6.6.6.0/24
set access address-assignment pool JDHCPVR-POOL family inet range JDHCPVR-RANGE low 6.6.6.66
set access address-assignment pool JDHCPVR-POOL family inet range JDHCPVR-RANGE high 6.6.6.67
set access address-assignment pool JDHCPVR-POOL family inet dhcp-attributes router 6.6.6.1
set access address-assignment pool JDHCPVR-POOL family inet dhcp-attributes name-server 8.8.8.8
Configure the security zone to allow the DHCP protocol:
set security zones security-zone TRUST interfaces vlan.1 host-inbound-traffic system-services all
set security zones security-zone TRUST interfaces vlan.1 host-inbound-traffic protocols all
Verification:
[edit]
root@SRX240HM-8# run show dhcp server statistics
Packets dropped:
Total 0

Messages received:
BOOTREQUEST 2
DHCPDECLINE 0
DHCPDISCOVER 1
DHCPINFORM 0
DHCPRELEASE 0
DHCPREQUEST 1

Messages sent:
BOOTREPLY 2
DHCPOFFER 1
DHCPACK 1
DHCPNAK 0
DHCPFORCERENEW 0
Related Links: