Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Download Software
Research a Problem Login required
Case Management Login required
Contract & Product Management Login required
Technical Documentation
Documentation Archive
Enterprise MIBs
File Format Help
Glossary
Portable Libraries
End-of-Life Products
Contact Support
Guidelines and Policies
Security Resources
Home > Support > Technical Documentation > Junos OS > Example: Configuring DHCP Relay in a VPLS Routing Instance Environment
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...
 

Related Documentation

  • MX Series
  • MX Series Router as a Layer 2 DHCP Relay Agent
  • Example: Configuring DHCP Relay in a Bridge Domain VLAN Environment
  • Additional Information
  • DHCP Relay Agent
 

Example: Configuring DHCP Relay in a VPLS Routing Instance Environment

The following example configures DHCP relay in a bridge domain (VLAN) environment. The MX Series router will trust only the MAC addresses learned on the listed interfaces.

Note: This is not a complete router configuration.

The router has three interfaces: two interfaces (ge-2/2/4 and ge-2/2/6) using VLAN 100 for the DHCP clients, and one (xe-9/2/0) leading to the DHCP server. The router performs the DHCP snooping (relay) function.

Configure the Interfaces

[edit interfaces]ge-2/2/4 {encapsulation ethernet-bridge;unit 0 {family bridge {interface-mode access;vlan-id 100;}}}ge-2/2/6 {encapsulation ethernet-bridge;unit 0 {family bridge {interface-mode access;vlan-id 100;}}}xe-9/2/0 {unit 0 {family bridge {interface-mode access;vlan-id 100;}}}

Configure the Routing Instance (Virtual Switch)

[edit routing-instances]vs1 {instance-type virtual-switch;interface ge-2/2/4.0;interface ge-2/2/6.0;interface xe-9/2/0;bridge-domains {bd1 {domain-type bridge;vlan-id 100;forwarding-options {dhcp-relay { # DHCP snoopinggroup hdhcp {interface ge-2/2/4.0;interface ge-2/2/6.0;}}}}}}

You verify your configuration by using two related commands:

  • show dhcp relay binding routing-instance vs1 bridge-domains bd1
  • show dhcp relay binding routing-instance vs1 bridge-domains bd1 detail
user@router1> show dhcp relay binding routing-instance vs1 bridge-domains bd1
2 clients, (2 bound, 0 selecting, 0 renewing, 0 rebinding)
IP address     Hardware address    Type    Lease expires at
192.168.1.1   00:00:00:42:a8:e3  active   2008–12–12 15:56:04 PST
192.168.1.2   00:00:00:42:a8:e4  active   2008–12–12 15:56:10 PST
user@router1> show dhcp relay binding routing-instance vs1 bridge-domains bd1 detail
2 clients, (2 bound, 0 selecting, 0 renewing, 0 rebinding)
Clients bindings information:
 IP address          : 192.168.1.1
   Hardware address  : 00:00:00:42:a8:e3
   Type              : active
   Lease expires at  : 2008–12–12 15:56:04 PST
   State             : bound
   interface         : ge—2/2/6.0
 IP address          : 192.168.1.2
   Hardware address  : 00:00:00:42:a8:e4
   Type              : active
   Lease expires at  : 2008–12–12 15:56:10 PST
   State             : bound
   interface         : ge—2/2/4.0
  
 

Related Documentation

  • MX Series
  • MX Series Router as a Layer 2 DHCP Relay Agent
  • Example: Configuring DHCP Relay in a Bridge Domain VLAN Environment
  • Additional Information
  • DHCP Relay Agent
 

Published: 2011-11-01

 
  • About Juniper
  • The New Network
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out