- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-IPv6 transition technologies commands | 90.00 KB |
IPv6 transition technologies commands
display 6rd
Use display 6rd to display 6RD tunnel interface information.
Syntax
display 6rd [ interface tunnel number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface tunnel number: Specifies an existing tunnel interface by its number. If you do not specify a 6RD tunnel interface, this command displays information about all existing 6RD tunnel interfaces.
Examples
# Display information about 6RD tunnel interface Tunnel 1.
<Sysname> display 6rd interface tunnel 1
Interface : Tunnel1
Tunnel source : 10.11.12.13
6RD status : Operational
IPv6 prefix : 2001:1000::/32
IPv4 prefix : 10.0.0.0/8
IPv4 suffix : 0.0.0.0/0
BR address : 10.11.12.1
Delegated prefix: 2001:1000:B0C:D00::/56
# Display information about all 6RD tunnel interfaces.
<Sysname> display 6rd
Interface : Tunnel0
Tunnel source : 0.0.0.0
6RD status : Not operational
IPv6 prefix : 2002:1000::/32
Interface : Tunnel1
Tunnel source : 10.11.12.13
6RD status : Operational
IPv6 prefix : 2001:1000::/32
IPv4 prefix : 10.0.0.0/8
IPv4 suffix : 0.0.0.0/0
BR address : 10.11.12.1
Delegated prefix: 2001:1000:B0C:D00::/56
Table 1 Command output
Field |
Description |
Interface |
Tunnel interface. |
Tunnel source |
Source address of the tunnel. If a source interface is specified for the tunnel interface, this field displays the IP address of the source interface. If no source address or source interface is specified for the tunnel interface, or the specified source interface has no IP address, this field displays 0.0.0.0. |
6RD status |
6RD configuration status: · Operational—6RD configuration is available. · Not operational—6RD configuration is not available. This field displays Operational when the tunnel source address and 6RD prefix are configured. |
IPv6 prefix |
6RD prefix and its length. If no 6RD prefix is configured, this field displays Not configured. |
IPv4 prefix |
IPv4 prefix and its length. If the prefix length is not configured, this field displays 0.0.0.0/0. |
IPv4 suffix |
IPv4 suffix and its length. If the suffix length is not configured, this field displays 0.0.0.0/0. |
BR address |
IP address of the BR router. If no BR address is configured, this field displays Not configured. |
Delegated prefix |
6RD delegated prefix calculated based on the 6RD configuration. This field is empty if the 6RD status is Not operational. |
Related commands
tunnel 6rd br
tunnel 6rd ipv4
tunnel 6rd prefix
display 6rd destination
Use display 6rd destination to display a 6RD tunnel destination address.
Syntax
display 6rd destination prefix ipv6-prefix interface tunnel number
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
prefix ipv6-prefix: Specifies a 6RD delegated prefix.
interface tunnel number: Specifies an existing tunnel interface by its number.
Usage guidelines
After this command is executed, the system displays the 6RD tunnel destination address calculated by the specified 6RD delegated prefix and 6RD configuration on the tunnel interface. The 6RD configuration includes the 6RD prefix/prefix length, IPv4 prefix/prefix length, and IPv4 suffix/suffix length.
Examples
# Display the 6RD tunnel destination address calculated by the 6RD delegated prefix 2001:1000:0101:0100:: and 6RD configuration on Tunnel 1.
<Sysname> display 6rd destination prefix 2001:1000:0101:0100:: interface tunnel 1
Interface : Tunnel1
Delegated prefix: 2001:1000:101:100::
Destination : 10.1.1.1
Table 2 Command output
Field |
Description |
Interface |
Tunnel interface. |
Delegated prefix |
6RD delegated prefix. |
Destination |
Tunnel destination address. |
Related commands
display 6rd prefix
display 6rd prefix
Use display 6rd prefix to display a 6RD delegated prefix.
Syntax
display 6rd prefix destination ipv4-address interface tunnel number
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
destination ipv4-address: Specifies a 6RD tunnel destination address.
interface tunnel number: Specifies an existing tunnel interface by its number.
Usage guidelines
After this command is executed, the system displays the 6RD delegated prefix calculated by the specified 6RD tunnel destination address and 6RD configuration on the tunnel interface. The 6RD configuration includes the 6RD prefix/prefix length, IPv4 prefix/prefix length, and IPv4 suffix/suffix length. The 6RD delegated prefix calculated on the peer tunnel interface must be the same as the 6RD delegated prefix configured on the local device.
Examples
# Display the 6RD delegated prefix calculated by the 6RD tunnel destination address 10.1.1.1 and 6RD configuration on Tunnel 1.
<Sysname> display 6rd prefix destination 10.1.1.1 interface tunnel 1
Interface : Tunnel1
Destination : 10.1.1.1
Delegated Prefix: 2001:1000:101:100::
Table 3 Command output
Field |
Description |
Interface |
Tunnel interface. |
Destination |
6RD tunnel destination address. |
Delegated Prefix |
6RD delegated prefix. |
Related commands
display 6rd destination
display ds-lite b4 information
Use display ds-lite b4 information to display information about the connected B4 routers on the AFTR, including the IPv6 addresses of the B4 routers, and the assigned tunnel IDs.
Syntax
display ds-lite b4 information
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display information about the connected B4 routers.
<Sysname> display ds-lite b4 information
B4 address Tunnel ID Tunnel interface Idle time
1234:5678:1234:5678:abcd:abcd:efff:1234 0x00000023 1 12
2000::100:1 0x80000013 2 13
3000::2 0x00000015 3 8
3001::2 0x00000032 -- 15
Total B4 addresses: 4
# Display information about the connected B4 routers.
<Sysname> display ds-lite b4 information
Slot 0 Cpu 0:
B4 address Tunnel ID Tunnel interface Idle time
1234:5678:1234:5678:abcd:abcd:efff:1234 0x00000023 1 12
2000::100:1 0x80000013 2 13
3000::2 0x00000015 3 2
3001::2 0x00000032 -- --
Total B4 addresses: 4
Slot 1 Cpu 0:
B4 address Tunnel ID Tunnel interface Idle time
1234:5678:1234:5678:abcd:abcd:efff:ffff 0x00000125 1 12
5000::100:1 0x80000010 5 13
Total B4 addresses: 2
Table 4 Command output
Field |
Description |
B4 address |
IPv6 address of the B4 router. |
Tunnel ID |
Tunnel ID that the IPv6 address of the B4 router maps to. |
Tunnel interface |
ID of the tunnel interface on the DS-Lite tunnel to which the mapping belongs. When the tunnel to which the mapping belongs is removed or a tunnel with the same ID but different mode is created, this field displays hyphens (--). |
Idle time |
Remaining time in minutes for the mapping between the IPv6 address of the B4 router and tunnel ID. When the mapping ages out but is still used by a session, this field displays hyphens (--). |
Total B4 addresses |
Number of IPv6 addresses of the B4 routers. |
ds-lite enable
Use ds-lite enable to enable DS-Lite tunneling on an interface.
Use undo ds-lite enable to disable DS-Lite tunneling on an interface.
Syntax
ds-lite enable
undo ds-lite enable
Default
DS-Lite tunneling is disabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
Use this command on the AFTR's interface connected to the public IPv4 network, so the AFTR can forward IPv4 packets to the B4 router through the DS-Lite tunnel.
You cannot enable DS-Lite tunneling on a DS-Lite tunnel interface on the AFTR.
Examples
# Enable DS-Lite tunneling on Ten-GigabitEthernet 0/0/6.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 0/0/6
[Sysname-Ten-GigabitEthernet0/0/6] ds-lite enable
tunnel 6rd br
Use tunnel 6rd br to specify a BR address for a 6RD tunnel.
Use undo tunnel 6rd br to restore the default.
Syntax
tunnel 6rd br ipv4-address
undo tunnel 6rd br
Default
No BR address is specified for a 6RD tunnel.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
ipv4-address: Specifies the BR address (IPv4 address of a 6RD BR router), in dotted decimal notation.
Usage guidelines
Use this command on a 6RD CE. For a 6RD network to communicate with a non-6RD network over a 6RD tunnel, you must specify the BR address on the 6RD CE.
All the 6RD CEs and 6RD BR routers in a 6RD network must have the same IPv4 prefix and suffix. Make sure the BR address and the tunnel source address have the same IPv4 prefix and suffix.
Examples
# Specify the BR address as 10.11.12.13 on Tunnel 1.
<Sysname> system-view
[Sysname] interface tunnel 1 mode ipv6-ipv4 6rd
[Sysname-Tunnel1] tunnel 6rd br 10.11.12.13
Related commands
display 6rd
tunnel 6rd ipv4
Use tunnel 6rd ipv4 to specify a prefix length and a suffix length for a 6RD tunnel source address.
Use undo tunnel 6rd ipv4 to restore the default.
Syntax
tunnel 6rd ipv4 { prefix-length length | suffix-length length } *
undo tunnel 6rd ipv4
Default
All 32 bits of the IPv4 tunnel source address are used to create the 6RD delegated prefix.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
prefix-length length: Specifies the prefix length in the range of 0 to 31.
suffix-length length: Specifies the suffix length in the range of 0 to 31.
Usage guidelines
All 6RD tunnel interfaces in a 6RD network must be configured with the same IPv4 prefix length and suffix length.
You can specify a prefix length, a suffix length, both prefix and suffix lengths, or neither. The device will remove the prefix and suffix bits from the tunnel source address and embed the left bits of the address to the 6RD delegated prefix. If neither a prefix length nor a suffix length is specified, all 32 bits of the IPv4 tunnel source address will be embedded in the 6RD delegated prefix.
Examples
# Specify both the prefix length and suffix length as 8 on Tunnel 1.
<Sysname> system-view
[Sysname] interface tunnel 1 mode ipv6-ipv4 6rd
[Sysname-Tunnel1] tunnel 6rd ipv4 prefix-length 8 suffix-length 8
Related commands
display 6rd
display 6rd destination
display 6rd prefix
tunnel 6rd prefix
Use tunnel 6rd prefix to configure the 6RD prefix for a 6RD tunnel.
Use undo tunnel 6rd prefix to restore the default.
Syntax
tunnel 6rd prefix ipv6-prefix/prefix-length
undo tunnel 6rd prefix
Default
No 6RD prefix is configured for a 6RD tunnel.
Views
Tunnel interface view
Predefined user roles
network-admin
Parameters
ipv6-prefix/prefix-length: Specifies the IPv6 prefix and its length. The value range for the prefix length is 1 to 127.
Usage guidelines
A 6RD delegated prefix contains a 6RD prefix and all or part of the bits in the IPv4 tunnel source address.
All tunnels in a 6RD network must have the same 6RD prefix.
Examples
# Configure the 6RD prefix as 2001:1000::/32 on Tunnel 1.
<Sysname> system-view
[Sysname] interface tunnel 1 mode ipv6-ipv4 6rd
[Sysname-Tunnel1] tunnel 6rd prefix 2001:1000::/32
Related commands
display 6rd
display 6rd destination
display 6rd prefix
tunnel ipv6-fragmentation-check enable
Use tunnel ipv6-fragmentation-check enable to enable fragmentation check for packets to be tunneled.
Use undo tunnel ipv6-fragmentation-check enable to disable fragmentation check for packets to be tunneled.
Syntax
tunnel ipv6-fragmentation-check enable
undo tunnel ipv6-fragmentation-check enable
Default
Fragmentation check is disabled for packets to be tunneled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables the tunnel source to perform fragmentation check for IPv6 packets to be tunneled through an IPv6 over IPv4 tunnel. The tunnel source returns an ICMPv6 Packet Too Big message to the packet sending source and discards the packet if the packet size exceeds both of the following values:
· Outgoing interface MTU minus the IPv4 header length.
· The minimum IPv6 path MTU 1280 bytes.
Examples
# Enable IPv6 fragmentation check for packets to be tunneled.
<Sysname> system-view
[Sysname] tunnel ipv6-fragmentation-check enable