Example:Configuring DHCP Relay in a VPLS Routing Instance Environment
Thefollowing example configuresDHCP relay in a bridge domain (VLAN) environment.
TheMX Series router will trust only the MAC addresseslearned on the listed interfaces.
NOTE: Thisis not a complete routerconfiguration.
Therouter has three interfaces:two interfaces (ge-2/2/4and ge-2/2/6) using VLAN 100
forthe DHCP clients, and one (xe-9/2/0)leading ot the DHCP server.The router performs
theDHCP snooping (relay) function.
Configurethe
Interfaces
[editinterfaces]
ge-2/2/4{
encapsulationethernet-bridge;
unit0 {
familybridge {
interface-modeaccess;
vlan-id100;
}
}
}
ge-2/2/6{
encapsulationethernet-bridge;
unit0 {
familybridge {
interface-modeaccess;
vlan-id100;
}
}
}
xe-9/2/0{
unit0 {
familybridge {
interface-modeaccess;
vlan-id100;
}
}
}
Configurethe Routing
Instance(Virtual
Switch)
[editrouting-instances]
vs1{
instance-typevirtual-switch;
interfacege-2/2/4.0;
interfacege-2/2/6.0;
interfacexe-9/2/0;
bridge-domains{
bd1{
domain-typebridge;
vlan-id100;
forwarding-options{
dhcp-relay{ # DHCP snooping
grouphdhcp {
75Copyright© 2010, Juniper Networks,Inc.
Chapter7: MX Series Router asa DHCP Relay Agent