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
Configure the Routing Instance (Virtual Switch)
You verify your configuration by using two related commands:
user@router1> show dhcp relay binding routing-instance
vs1 bridge-domains bd12 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 detail2 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