dhcpv4-snooping option 82

Syntax

dhcpv4-snooping option 82 [remote-id {mac | subnet-ip | mgmt-ip}] [untrusted-policy {drop | keep | replace}] no dhcpv4-snooping option 82

Description

Configures the addition of option 82 DHCP relay information to DHCP client packets that are being forwarded on trusted ports. DHCP relay is enabled by default.

In the switch default state and when this command is entered without parameters (dhcpv4-snooping option 82),is default configuration is used:
dhcpv4-snooping option 82 remote-id mac untrusted-policy drop
Whenremote-idis omitted, its default (mac) is used. Whenuntrusted-policyis omitted, its default (drop) is used.

The no form of this command disables DHCPv4 snooping option 82.

Command context

config

Parameters

remote-id

Specifies what address to use as the remote ID for the取代option ofuntrusted-policy. Specify one of these address types:

mac

The default. Uses the switch MAC address as the remote ID.

subnet-ip

Uses the IP address of the client VLAN as the remote ID.

mgmt-ip

Uses the management interface IP address as the remote ID.

untrusted-policy

Specifies what action to take for DHCP packets (with option 82) that are received on untrusted ports. Specify one of these actions:

drop

The default. Drop DHCP packets (with option 82) without forwarding them.

keep

Forward DHCP packets (with option 82).

取代

Replace the option 82 information in the DHCP packets with whatever is set forremote-id(one of:mac,subnet-ip, ormgmt-ip) and forward the packets.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Configuring DHCPv4 snooping option 82 with the keep action:

switch(config)#dhcpv4-snooping option 82 untrusted-policy keep

Configuring DHCPv4 snooping option 82 withmgmt-ipas theremote-idand the取代行动:

switch(config)#dhcpv4-snooping option 82 remote-id mgmt-ip untrusted-policy replace

Disabling DHCPv4 snooping option 82:

switch(config)#没有dhcpv4-snooping选择82