- Table of Contents
Title | Size | Download |
---|---|---|
08-Dual Stack Commands | 46.56 KB |
Chapter 1 Dual Stack Configuration Commands
1.1 Dual Stack Configuration Commands
1.1.3 ipv6 address auto link-local
Chapter 1 Dual Stack Configuration Commands
1.1 Dual Stack Configuration Commands
1.1.1 ipv6
Syntax
ipv6
undo ipv6
View
System view
Default Level
2: System level
Parameters
None
Description
Use the ipv6 command to enable the IPv6 packet forwarding function.
Use the undo ipv6 command to disable the IPv6 packet forwarding function.
By default, the function is disabled.
Examples
# Enable the IPv6 packet forwarding function.
<Sysname> system-view
[Sysname] ipv6
1.1.2 ipv6 address
Syntax
ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ]
View
Interface view
Default Level
2: System level
Parameters
ipv6-address: IPv6 address for the interface.
prefix-length: Length of the prefix.
Description
Use the ipv6 address command to configure a site-local address or global unicast address for an interface.
Use the undo ipv6 address command to remove the configuration.
By default, neither site-local addresses nor global unicast addresses are configured.
Note that:
l The total number of global unicast addresses and site-local addresses that can be configured on an interface is 20.
l The undo ipv6 address command without parameters removes all IPv6 addresses manually configured, except link-local addresses automatically configured on the interface.
Examples
# Specify the global unicast address of the interface VLAN-interface 1 as 2001::1/64.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 2001::1/64
1.1.3 ipv6 address auto link-local
Syntax
ipv6 address auto link-local
undo ipv6 address auto link-local
View
Interface view
Default Level
2: System level
Parameters
None
Description
Use the ipv6 address auto link-local command to enable the device to automatically generate a link-local address for an interface.
Use the undo ipv6 address auto link-local command to remove the automatically generated link-local address.
By default, a link-local address will automatically be generated when an IPv6 site-local address or IPv6 global unicast address is configured for an interface.
Examples
# Enable the interface VLAN-interface 1 to generate a link-local address automatically.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address auto link-local
1.1.4 ipv6 address eui-64
Syntax
ipv6 address ipv6-address/prefix-length eui-64
undo ipv6 address ipv6-address/prefix-length eui-64
View
Ethernet interface view
Default Level
2: System level
Parameters
ipv6-address/prefix-length: IPv6 address and prefix length. They together specify the prefix length of an IPv6 address in the EUI-64 format. The prefix length of an EUI-64 address cannot exceed 64.
Description
Use the ipv6 address eui-64 command to configure a site-local address or global unicast address in the EUI-64 format on an interface.
Use the undo ipv6 address eui-64 command to delete the site-local address or global unicast address in the EUI-64 format on an interface.
By default, no site-local or global unicast address in the EUI-64 format is configured for an interface.
Examples
# Configure the interface VLAN-interface 1 to generate an IPv6 address in the EUI-64 format.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address 2001::1/64 eui-64
1.1.5 ipv6 address link-local
Syntax
ipv6 address ipv6-address link-local
undo ipv6 address ipv6-address link-local
View
Interface view
Default Level
2: System level
Parameters
ipv6-address: IPv6 link-local address. The high-order ten bits of an IPv6 link-local address must be 1111111010 (binary), that is to say, the first group of the IPv6 link-local address must range from FE80 to FEBF (hexadecimal).
Description
Use the ipv6 address link-local command to configure manually a link-local address for an interface.
Use the undo ipv6 address link-local command to remove the link-local address of an interface.
By default, a link-local address will automatically be generated when an IPv6 site-local address or global unicast address is configured for an interface.
Examples
# Configure a link-local address for the interface VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ipv6 address fe80::1 link-local