The second procedure, which applies only to DHCPv4 relay agent, is described in
“Configuring DHCP Snooped Packets Forwarding Support for DHCP Relay Agent” on
page 77, and configures the forwarding action for snooped clients, which specifies whether
DHCP relay agent forwards or drops snooped traffic.
You can enable or disable DHCP globally for DHCP relay, for a group of interfaces, or for
a specific interface in a group.
By default, DHCP snooping is disabled for DHCP relay. To enable or disable DHCP snooping
support globally:
1. Specify that you want to configure DHCP relay agent.
•
For DHCP relay agent:
[edit]
user@host# edit forwarding-options dhcp-relay
•
For DHCPv6 relay agent:
[edit]
user@host# edit forwarding-options dhcp-relay dhcpv6
2. Specify that you want to override the default configuration.
•
For DHCP relay agent:
[edit forwarding-options dhcp-relay]
user@host# edit overrides
•
For DHCPv6 relay agent:
[edit forwarding-options dhcp-relay dhcpv6]
user@host# edit overrides
3. Enable or disable DHCP snooping support.
•
To enable DHCP snooping:
•
For DHCP relay agent:
[edit forwarding-options dhcp-relay overrides]
user@host# set allow-snooped-clients
•
For DHCPv6 relay agent:
[edit forwarding-options dhcp-relay dhcpv6 overrides]
user@host# set allow-snooped-clients
•
To disable DHCP snooping:
•
For DHCP relay agent:
[edit forwarding-options dhcp-relay overrides]
user@host# set no-allow-snooped-clients
•
For DHCPv6 relay agent:
[edit forwarding-options dhcp-relay dhcpv6 overrides]
user@host# set no-allow-snooped-clients
73Copyright © 2017, Juniper Networks, Inc.
Chapter 4: DHCP Relay Agent