Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] Configuring the JDHCP relay agent in Custom Routing instance

0

0

Article ID: KB28641 KB Last Updated: 20 Jan 2014Version: 1.0
Summary:

This article describes how to configure an SRX device as a Relay Agent, using the JDHCP feature (supported by JunosV App Engine 12.x or later releases).

Symptoms:

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

Cause:

Solution:

Setup:                                              

                                                           
  dhcp-clients -----------ge-0/0/1.0 -SRX--ge-0/0/0.0 ---------------------DHCP Server

Relay interface is ge-0/0/1.0
DHCP server facing interface is ge-0/0/0.0

Both interfaces are in dhcp-relay custom virtual router.

Configuration:                

set routing-instances dhcp-relay instance-type virtual-router
set routing-instances dhcp-relay interface ge-0/0/0.0
set routing-instances dhcp-relay interface ge-0/0/1.0
  1. Configure DHCP server address:
  2. set routing-instances dhcp-relay forwarding-options dhcp-relay server-group wifi-server 192.168.1.254

  3. Activate the server:
  4. set routing-instances dhcp-relay forwarding-options dhcp-relay active-server-group wifi-server

  5. Configure relay interface:
  6. set routing-instances dhcp-relay forwarding-options dhcp-relay group relay-in-vr interface ge-0/0/1.0

Verification:

  1. Use this command to check the statistics related to the DHCP protocol:
  2. root@vsrx-1# run show dhcp relay statistics routing-instance dhcp-relay
    Packets dropped:
    Total 0

    Messages received:
    BOOTREQUEST 67
    DHCPDECLINE 0
    DHCPDISCOVER 38
    DHCPINFORM 0
    DHCPRELEASE 0
    DHCPREQUEST 29

    Messages sent:
    BOOTREPLY 3
    DHCPOFFER 1
    DHCPACK 1
    DHCPNAK 1
    DHCPFORCERENEW 0

     
  3. Use this command to check the IP addresses assigned to client via configured dhcp-relay:
  4. root@vsrx-1# run show dhcp relay binding routing-instance dhcp-relay

    IP address      Session Id       Hardware address      Expires       State            Interface
    10.10.10.2           8                   00:0c:29:e9:6d:00         85624       BOUND       ge-0/0/1.0

Note: Dhcp-Relay feature in chassis cluster is supported from Junos OS 12.1X46D10. 

Feature explorer URLs: 

http://pathfinder.juniper.net/feature-explorer/select-software.html?swName=Junos+OS&typ=1#family=&pid=21900220&platform=SRX220&rel=12.1X46-D10&sid=415&stat=0.8709709481336176&swName=Junos+OS
http://pathfinder.juniper.net/feature-explorer/select-software.html?swName=Junos+OS&typ=1#family=&pid=21900220&platform=SRX5800&rel=12.1X46-D10&sid=415&stat=0.8709709481336176&swName=Junos+OS
    

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search