CHAPTER7

MX Series Router as a DHCP Relay Agent
MXSeries Router as a Layer 2 DHCP RelayAgent on page 73
Example:Configuring DHCP Relay in a Bridge Domain VLAN Environmenton page 74
Example:Configuring DHCP Relayin a VPLS Routing Instance Environment on page75

MXSeries Router as a Layer 2 DHCP Relay Agent

TheDynamic Host Configuration Protocol(DHCP) is used by a DHCP client (host) to
determineLayer 3 information (such as an IP address)from a DHCP server. DHCP uses
theclient’s MAC (Layer 2) address to query the server.A router can be used as a DHCP
relayagent topass the query on to a server while the router appears to replyto the client.
Youcan configure a Juniper NetworksMX Series Ethernet Services Router to act asa
DHCPrelay agent. The MX Series routerconfiguration at Layer 2 accesses the Layer3
informationwith DHCP snooping.
DHCPservers and relay agents have a levelof trust in the MAC addresses used in DHCP
clientqueries. A hacker can spoof invalid MAC addresses and overwhelmthe server or
relayagent with flooded traffic. Or the hackercan try to determine other information,
suchas the IP address range used by devices on the network.The DHCP process should
onlytrust MAC addresses that are valid fora particular network.
Youcan configure the MX Seriesrouter to use MAC addresses obtained by the Layer2
addresslearning process to controlthe flooding of DHCP packets.
Severalrestrictions apply to DHCP configurationon the MX Series routers:
Allstatements referring to “option 82” (including circuitinformation in DHCP relay
messages)are not supported on the MX Series routers.
Thisfeature works for staticIP/MAC bindings on the MX Series routers.
TheDHCP snooping database table is not restoredafter a Routing Engine reboot.
TheDHCP Discovermessage is not flooded to the DHCP serverwhen broadband service
aggregator(BSA) and broadbandservice router (BSR) are provisioned on the same
switch.
Formore information on configuring DHCP,see the Junos OS Subscriber Access
ConfigurationGuide.
73Copyright© 2010, Juniper Networks,Inc.