ipv6 dhcp6 snooping vlan

Enables DHCPv6 snooping on a VLAN or a range of VLANs
Syntax
ipv6 dhcp6 snooping vlan vlan-id [ to vlan-id … ]
no ipv6 dhcp6 snooping vlan vlan-id [ to vlan-id … ]
Command Default

DHCPv6 snooping is disabled by default.

Parameters
vlan-id
Specifies the ID of a configured client or DHCPv6 server VLAN.
to vlan-id
Specifies a range of VLANs.
Modes

Global configuration mode

Usage Guidelines

DHCPv6 snooping must be enabled on the client and the DHCPv6 server VLANs.

When configuring DHCPv6 snooping on a range of VLANs or multi-VLAN, there cannot be any VLAN in the range that is a member of a VLAN group or any reserved VLAN. Otherwise, configurations fail on the entire range.

DHCPv6 Snooping can be configured for a VLAN or VLANS even before the VLAN or VLANS are created. VLANs and DHCPv6 Snooping configurations on the VLANS are not automatically deleted when the VLAN is deleted.

DHCPv6 snooping can be configured on a maximum of 511 VLANs.

DHCPv6 snooping cannot be enabled for a VLAN that is a member of a VLAN group.

The no form of the command disables DHCPv6 snooping on the VLAN or range of VLANs.

Examples

The following example enables DHCPv6 snooping on VLAN 2.

device# configure terminal
device(config)# ipv6 dhcp6 snooping vlan 2

The following example configures VLANs 100 through 150, VLAN 160, and VLANs 170 through 200 and enables DHCPv6 snooping on all of the configured VLANs.

device# configure terminal
device(config)# vlan 100 to 150
device(config-mvlan-100-150)# tagged ethernet 1/1/12
device(config-mvlan-100-150)# exit
device(config)# vlan 150 to 200
device(config-mvlan-150-200)# exit
device(config)# ipv6 dhcp6 snooping vlan 100 to 150 160 170 to 200
History
Release version Command history
08.0.80 The to keyword was added to enable DHCPv6 snooping on a range of VLANs by using a single command.
08.0.95 This command was modified to limit DHCPv6 snooping configurations to a maximum of 511 VLANs.