< Home

dhcpv6 snooping check relay-forward enable

Function

The dhcpv6 snooping check relay-forward enable command enables the function of discarding DHCPv6 Relay-Forward messages.

The undo dhcpv6 snooping check relay-forward enable command disables the function of discarding DHCPv6 Relay-Forward messages.

By default, the function of discarding DHCPv6 Relay-Forward messages is disabled.

Format

In the system view:

dhcpv6 snooping check relay-forward enable vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo dhcpv6 snooping check relay-forward enable vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

In the VLAN view or interface view:

dhcpv6 snooping check relay-forward enable

undo dhcpv6 snooping check relay-forward enable

Parameters

Parameter Description Value

vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

Discards DHCPv6 Relay-Forward messages received in specified VLANs.

  • vlan-id1 specifies the first VLAN ID.
  • to vlan-id2 specifies the last VLAN ID. The value of vlan-id2 must be greater than the value of vlan-id1.

The value is an integer in the range from 1 to 4094.

Views

System view, VLAN view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

DHCPv6 snooping needs to be deployed on access devices on a Layer 2 network or the first DHCPv6 relay agent. Therefore, the device that has DHCPv6 snooping configured should not receive the DHCPv6 Relay-Forward messages forwarded by the relay agent. If the device receives the DHCPv6 Relay-Forward messages, it considers the messages invalid and discards them.

Prerequisites

DHCPv6 snooping has been enabled on the device using the dhcp snooping enable command.

Precautions

If you run the dhcp snooping enable command in the VLAN view, the command configuration takes effect only for the DHCP messages from the specified VLAN. If you run this command in the interface view, the command configuration takes effect for all DHCP messages on the specified interface.

Example

# Enable the function of discarding DHCPv6 Relay-Forward messages in VLAN 10.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] vlan 10
[HUAWEI-vlan10] dhcpv6 snooping check relay-forward enable

# Enable the function of discarding DHCPv6 Relay-Forward messages on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] dhcp snooping enable
[HUAWEI-GigabitEthernet0/0/1] dhcpv6 snooping check relay-forward enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >