< Home

(Optional) Configuring the Function of Discarding DHCPv6 Relay-Forward Messages

Context

DHCPv6 snooping needs to be deployed on access devices in a Layer 2 network or on 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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Enable the function of discarding DHCPv6 Relay-Forward messages in the system view, VLAN view or interface view.

    • In the system view:

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

      The function of discarding DHCPv6 Relay-Forward messages is enabled.

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

    • In the VLAN view or interface view:

    1. Run vlan vlan-id

      The VLAN view is displayed.

      Or run interface interface-type interface-number

      The interface view is displayed.

    2. Run dhcpv6 snooping check relay-forward enable

      The function of discarding DHCPv6 Relay-Forward messages is disabled.

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

    If you run this command in the VLAN view, the command configuration takes effect for the DHCP messages received by all interfaces on the device 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >