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

Configuring the EX-series Switch to act as a DHCP/BOOTP Relay Agent

0

0

Article ID: KB13206 KB Last Updated: 03 Mar 2017Version: 2.0
Summary:
You can configure the EX-series switch to act as a Dynamic Host Configuration Protocol (DHCP) or Bootstrap Protocol (BOOTP) relay agent. This means that a locally attached host can issue a DHCP or BOOTP request as a broadcast message. If the EX Switch sees this broadcast message, it relays the message to a specified DHCP or BOOTP server.
Symptoms:

Solution:
You can configure the router or an interface to act as a Dynamic Host Configuration Protocol (DHCP) or Bootstrap Protocol (BOOTP) relay agent. This means that a locally attached host can issue a DHCP or BOOTP request as a broadcast message. If the switch or an interface sees this broadcast message, it relays the message to a specified DHCP or BOOTP server.

You should configure the interface to be a DHCP/BOOTP relay agent if you have locally attached hosts and a distant DHCP or BOOTP server. To configure the router to act as a DHCP/BOOTP relay agent, include the bootp statement at the [edit forwarding-options helpers] hierarchy level:

The following step is used to configure the EX-Series switch as a DHCP Relay Agent.
  1. To specify the IP address of the DHCP server and the interface on the switch where the server is connected.
[edit forwarding-options helpers bootp]
user@switch# set interface ge-0/0/0 server 10.0.0.10

The following steps will set the DHCP Relay function under routed virtual interface (RVI), so that DHCP client's request from a VLAN will be forwarded to the connected DHCP server.
  1. Create a virtual interface associated to the DHCP relay
user@switch>set vlans Sales vlan-id 1
  1. Create a virtual interface associated to the DHCP relay
user@switch>set interface vlan unit 1 family inet address 10.0.0.1/24
  1. Associate virtual interface to a VLAN where DHCP client’s machines will be connected
user@switch>set vlan default l3-interface vlan.1
  1. Associate virtual interface to the DHCP server under bootp.
[edit forwarding-options helpers bootp]
user@switch@> set interface vlan.1 server 10.10.10.10

Verifying DHCP Relay operations on EX switches:

■ To display the address bindings for extended DHCP relay agent clients:
user@host> show dhcp relay binding

■ To display extended DHCP relay agent statistics:
user@host> show dhcp relay statistics

■ To clear the binding state of DHCP relay agent clients:
user@host> clear dhcp relay binding

■ To clear all extended DHCP relay agent statistics:
user@host> clear dhcp relay statistic
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