Attach a DHCPv6 Guard Policy to a Port

About this task

Applies a DHCPv6 Guard policy to a specific interface.

Procedure

  1. Enter Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]} or interface vlan <1–4059>

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Apply a DHCPv6 Guard policy.

    ipv6 fhs dhcp-guard attach-policy WORD<1–64>

  3. Detach a DHCPv6 Guard policy from an interface.

    no ipv6 fhs dhcp-guard attach-policy

    OR

    default ipv6 dhcp-guard attach-policy

  4. Enable device role verification attached to the port. By default, router is selected.
    ipv6 fhs dhcp-guard device-role {client|server} attach-policy WORD<1-64>
    Note

    Note

    A DHCPv6 Guard policy can be attached to a port only if the device-role configured on that port is 'server'.

Variable Definitions

The following table defines parameters for the ipv6 fhs dhcp-guard attach-policy and ipv6 fhs dhcp-guard device-role command.

Variable

Description

WORD<1–64>

Specify the name of the DHCPv6 Guard policy to be attached or detached.

{client | server}

Sets the DHCPv6 Guard device role as client or server.