ipv6 dhcp relay interface-id
Use ipv6 dhcp relay interface-id to specify a padding mode for the Interface-ID option.
Use undo ipv6 dhcp relay interface-id to restore the default.
Syntax
ipv6 dhcp relay interface-id { bas | interface }
undo ipv6 dhcp relay interface-id
Default
The DHCPv6 relay agent fills the Interface-ID option with the interface index of the interface.
Views
Interface view
Predefined user roles
network-admin
mdc-admin
Parameters
bas: Specifies the BAS mode.
interface: Specifies the interface name mode. This mode pads the Interface-ID option in ASCII code with the interface name and VLAN ID of the interface.
Usage guidelines
Enable the DHCPv6 relay agent on the interface before executing this command. Otherwise, the command does not take effect.
Examples
# Specify the BAS mode as the padding mode for the Interface-ID option on VLAN-interface 10.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ipv6 dhcp relay interface-id bas
# Specify the interface name mode as the padding mode for the Interface-ID option on VLAN-interface 10.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ipv6 dhcp relay interface-id interface