Configure DHCPv6 snooping Option18/37
The DHCPv6 snooping function supports Option18 and Option37. Option18 and Option37 both support the default filling format and extended filling format.
Configuration Condition
Before configuring the DHCP snooping Option18 and Option37, first complete the following task:
- Enable the DHCPv6 snooping function
Configure Option18
The content of Interface ID includes default filling format and extended filling format. The default content filling format of Interface ID is as follows:
Figure 8-1 The default content filling format of Interface ID
The extended filling format needs the filling format to be configured to take effect in the user configuration format. The extended filling format of Interface ID is as follows:
Figure 8-2 The extended filling format of Interface ID
Table 8-6 Configure Option18
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration just takes effect on the current port. After entering the aggregation group configuration mode, the subsequent configuration just takes effect on the aggregation group.
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
Enable Option18 function
|
ipv6 dhcp snooping option interface-id enable
|
Mandatory
By default, Option18 is disabled.
|
Configure the content of Interface ID
|
ipv6 dhcp snooping option format interface-id string
|
Optional
By default, the Interface ID content in Option18 is interface id – duid format.
|
Configure Option37
The content of Remote ID includes default filling format and extended filling format. The default content filling format of Remote ID is as follows:
Figure 8-3 The default content filling format of Remote ID
The extended filling format needs the filling format to be configured to take effect in the user configuration format. The extended filling format of Remote ID is as follows:
Figure 8-4 The non-default content filling format of Remote ID
Table 8-7 Configure Option37
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration just takes effect on the current port. After entering the aggregation group configuration mode, the subsequent configuration just takes effect on the aggregation group.
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
Enable Option37 function
|
ipv6 dhcp snooping option remote-id enable
|
Mandatory
By default, the Option37 function is disabled.
|
Configure the content of Remote ID
|
ipv6 dhcp snooping option format remote-id { string | hostname }
|
Mandatory
By default, the Remote ID content in Option37 is enterprise num - interface id –duid format.
|
Configure the Processing Policy of Option18/37 Packet
After configuring the processing policy of the Option18/37 packet, you can adopt different processing policies for the DHCPv6 request packet with Option18/37.
Table 8-8 Configure the processing policy of the Option18/37 packet
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration just takes effect on the current port. After entering the aggregation group configuration mode, the subsequent configuration just takes effect on the aggregation group.
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
Configure the processing policy of the Option18/37 packet
|
ipv6 dhcp snooping option policy replace
|
Mandatory
By default, do not replace the Option18/37 content in the DHCPv6 request packet.
|