- Table of Contents
-
- 04-Layer 3 Command Reference
- 00-Preface
- 01-ARP Commands
- 02-IP Addressing Commands
- 03-DHCP Commands
- 04-DNS Commands
- 05-NAT Commands
- 06-IPv6 Basics Commands
- 07-DHCPv6 Commands
- 08-IPv6 DNS Commands
- 09-Adjacency Table Commands
- 10-Flow Classification Commands
- 11-IP Performance Optimization Commands
- 12-IPv6 Application Commands
- 13-IP Routing Basics Commands
- 14-Static Routing Commands
- 15-IPv6 Static Routing Commands
Title | Size | Download |
---|---|---|
12-IPv6 Application Commands | 99.58 KB |
ftp ipv6
Syntax
ftp ipv6 [ remote-system [ port-number ] [ source source-ipv6-address ] [ -i interface-type interface-number ] ]
View
User view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
port-number: Port through which the FTP client is connected to the FTP server. It is in the range of 0 to 65535 and defaults to 21.
source source-ipv6-address: Specifies the source address of the FTP packets to be sent. The source address specified must be the IPv6 address configured for the access controller.
-i interface-type interface-number: Specifies the type and number of an outgoing interface. It is required when the destination address is a link-local address.
Description
Use ftp ipv6 to initiate a control connection to the remote FTP server and enter FTP client view.
Note the following:
· If you execute this command without specifying any argument, you will enter FTP client view but will not be logged into the FTP server.
· If the command is executed with arguments specified, the system will prompt you for username and password for logging into the FTP server. If you enter the correct username and password, you will be logged into the FTP server and enter FTP client view; otherwise, the login will fail.
Example
# Connect to the remote FTP server whose address is 3000::200.
<Sysname> ftp ipv6 3000::200
Trying 3000::200 ...
Press CTRL+K to abort
Connected to 3000::200.
220 Welcome!
User(3000::200:(none)): MY_NAME
331 Please specify the password.
Password:
230 Login successful.
[ftp]
open ipv6
Syntax
open ipv6 remote-system [ port-number ] [ -i interface-type interface-number ]
View
FTP client view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
port-number: Number of the TCP port providing FTP service on the remote device. It is in the range of 0 to 65535 and defaults to 21.
-i interface-type interface-number: Specifies the type and number of the outgoing interface. You must specify this argument if the destination address is a link-local address.
Description
Use open ipv6 to log in to the FTP server in FTP client view.
Before you can log in, the system prompts you to enter the login username and password. If the username and password are correct, you can log in successfully; otherwise, the login fails.
Example
# In FTP client view, log in to the FTP server whose IPv6 address is 3000::200.
<Sysname> ftp ipv6
[ftp] open ipv6 3000::200
Trying 3000::200 ...
Press CTRL+K to abort
Connected to 3000::200.
220 Welcome!
User(3000::200:(none)): MY_NAME
331 Please specify the password.
Password:
230 Login successful.
[ftp]
ping ipv6
Syntax
ping ipv6 [ -a source-ipv6-address | -c count | -m interval | -s packet-size | -t timeout ]* remote-system [ -i interface-type interface-number ]
View
Any view
Parameter
-a source-ipv6-address: Specifies source IPv6 address.
-c count: Specifies the number of times that the ICMPv6 ECHO-REQUEST packets are sent, in the range of 1 to 4294967295. The default value is 5.
-m interval: Specifies the interval (in milliseconds) to send ICMPv6 ECHO-RESPONSE packets, in the range of 1 to 65535. The default value is 200 ms.
· If a response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals the actual response period plus the value of interval.
· If no response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the timeout value plus the value of interval.
-s packet-size: Specifies length (in bytes) of ICMPv6 ECHO-REQUEST packets, in the range of 20 to 8100 and defaults to 56.
-t timeout: Specifies the timeout value (in milliseconds) of the ICMPv6 ECHO-REQUEST packets, in the range of 0 to 65535 and defaults to 2000.
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the egress interface by its type and number. This parameter must be specified when the destination address is the link local address or a multicast address.
Description
Use ping ipv6 to test whether the destination is accessible.
Example
# Test whether destination 2001::1 is accessible.
<Sysname> ping ipv6 2001::1
PING 2001::1 : 56 data bytes, press CTRL_C to break
Reply from 2001::1
bytes=56 Sequence=1 hop limit=64 time = 20 ms
Reply from 2001::1
bytes=56 Sequence=2 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=3 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=4 hop limit=64 time = 0 ms
Reply from 2001::1
bytes=56 Sequence=5 hop limit=64 time = 0 ms
--- 2001::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 0/4/20 ms
The "hop limit" field in this prompt information has the same meaning as the "ttl" field in the prompt information displayed by the IPv4 ping command, indicating the TTL value in the ICMPv6 ECHO-REQUEST packets.
telnet ipv6
telnet ipv6 remote-system [ -i interface-type interface-number ] [ port-number ]
View
User view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the type and number of an outgoing interface. It is required when the destination address is a link local address.
port-number: Specifies the port number linked with a Telnet server, ranging from 0 to 65535, with the default of 23.
Description
Use telnet ipv6 to telnet to another device. You can break telnet logging-in by entering <Ctrl+K>.
Example
# Telnet to IPv6 address 3001::1.
<Sysname> telnet ipv6 3001::1
tftp ipv6
Syntax
tftp ipv6 remote-system [ -i interface-type interface-number ] { get | put } source-filename [ destination-filename ]
View
User view
Parameter
remote-system: IPv6 address or host name (a string a 1 to 46 characters) of the destination device.
-i interface-type interface-number: Specifies the type and number of an interface. It is required when the TFTP server's address is a link local address.
get: Specifies to download a file.
put: Specifies to upload a file.
source-filename: Specifies the name of a source file with a string of 1 to 135 letters.
destination-filename: Specifies the name of a destination file with a string of 1 to 135 letters. If no such parameters are specified, then the destination file's name will be the same as the source file's.
Description
Use tftp ipv6 to perform the following operations:
· Download a file: Download a specified source file from TFTP server to local.
· Upload a file: Upload a specified source file from local to TFTP server.
Example
# Download a file from TFTP server.
<Sysname> tftp ipv6 fe80::250:daff:fe91:e058 -i ethernet 1/0 get filetoget
Transfer file in binary mode.
Now begin to download file from remote tftp server, please wait for a while...
TFTP: 32 bytes received in 5 seconds.
File downloaded successfully.
tracert ipv6
Syntax
tracert ipv6 [ -f first-hl | -m max-hl | -p port | -q packet-num | -w timeout ]* remote-system
View
Any view
Parameter
-f first-hl: Specifies the first hop limit (that is, the allowed number of hops for the first packet), in the range of 1 to 255, with a default of 1.
-m max-hl: Specifies the maximum hop limit (that is, the maximum allowed number of hops for a packet), in the range of 1 to 255, with a default of 30.
-p port: Specifies the UDP port number of the destination device, in the range of 1 to 65535. The default value is 33434. It is normally unnecessary to modify this parameter.
-q packet-number: Specifies the number of probe packets sent each time, in the range of 1 to 65535 and defaults to 3.
-w timeout: Specifies the timeout time of the probing packets, ranging from 1 to 65535, in milliseconds. The default value is 5000 ms.
remote-system: IPv6 address or host name (a string a 1 to 20 characters) of the destination device.
Description
Use tracert ipv6 to trace the route to a remote device.
Example
# Trace the route of the IPv6 packets from the local access controller to the destination device at 3002::1.
<Sysname> tracert ipv6 3002::1
traceroute to 3002::1 30 hops max,60 bytes packet
1 3003::1 30 ms 0 ms 0 ms
2 3002::1 10 ms 10 ms 0 ms