312
Setting the DSCP value for packets sent by the SSH client
A field in an IPv4 or IPv6 header contains 8 bits and is used to identify the service type of an IP packet.
In an IPv4 packet, this field is called "Type of Service (ToS)." In an IPv6 packet, this field is called "Traffic
class." According to RFC 2474, the ToS field is redefined as the differentiated services (DS) field, where
a DSCP value is represented by the first six bits (0 to 5) and is in the range 0 to 63. The remaining two
bits (6 and 7) are reserved. When a packet is being transmitted, the network devices can identify its
DSCP value, and determines the transmission priority of the packet according to the DSCP value.
To set the DSCP value for packets sent by the SSH client:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the DSCP value for
packets sent by the SSH client.
•
Set the DSCP value for IPv4
packets sent by the SSH client:
ssh client dscp
dscp-value
•
Set the DSCP value for IPv6
packets sent by the SSH client:
ssh client ipv6 dscp
dscp-value
Optional.
By default, the DSCP value is 16 in
IPv4 packets sent by the SSH client
and is 0 in IPv6 packets sent by the
SSH client.
Displaying and maintaining SSH
Task Command
Remarks
Display the source IP address or
interface set for the SFTP client.
display sftp client source
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the source IP address or
interface information on an SSH
client.
display ssh client source
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display SSH server status
information or session information
on an SSH server.
display ssh server
{
status
|
session
} [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the mappings between
SSH servers and their host public
keys on an SSH client.
display ssh server-info
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display information about SSH
users on an SSH server.
display ssh user-information
[
username
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the public keys of the local
key pairs.
display public-key local
{
dsa
|
rsa
}
public
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the public keys of the SSH
peers.
display public-key peer
[
brief
|
name
publickey-name
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view