- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
18-IP Address and Performance Command | 86.17 KB |
Table of Contents
1 IP Address Configuration Commands
IP Address Configuration Commands
2 IP Performance Configuration Commands
IP Performance Configuration Commands
IP Address Configuration Commands
display ip interface
Syntax
display ip interface [ interface-type interface-number ]
View
Any view
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Description
Use the display ip interface command to display information about a specified or all Layer 3 interfaces.
If no argument is specified, information about all Layer 3 interfaces is displayed.
Examples
# Display information about VLAN-interface 1.
<device> display ip interface vlan-interface 1
Vlan-interface1 current state :UP
Line protocol current state :UP
Internet Address is 192.168.0.39/24 Primary
Broadcast address : 192.168.0.255
The Maximum Transmit Unit : 1500 bytes
IP packets input number: 9678, bytes: 475001, multicasts: 7
IP packets output number: 8622, bytes: 391084, multicasts: 0
TTL invalid packet number: 0
ICMP packet input number: 0
Echo reply: 0
Unreachable: 0
Source quench: 0
Routing redirect: 0
Echo request: 0
Router advert: 0
Router solicit: 0
Time exceed: 0
IP header bad: 0
Timestamp request: 0
Timestamp reply: 0
Information request: 0
Information reply: 0
Netmask request: 0
Netmask reply: 0
Unknown type: 0
Table 1-1 display ip interface command output description
Field |
Description |
Vlan-interface1 current state |
Current physical state of VLAN interface 1 |
Line protocol current state |
Current state of the link layer protocol |
Internet Address |
IP address. Primary indicates it is the primary IP address and Sub indicates it is a secondary IP address |
Broadcast address |
Broadcast address |
The Maximum Transmit Unit |
Max transmit unit |
IP packets input number: 9678, bytes: 475001, multicasts: 7 IP packets output number: 8622, bytes: 391084, multicasts: 0 |
Total number of input/output packets, bytes, and multicast packets |
TTL invalid packet number |
Number of received invalid TTL packets |
ICMP packet input number: 0 Echo reply: 0 Unreachable: 0 Source quench: 0 Routing redirect: 0 Echo request: 0 Router advert: 0 Router solicit: 0 Time exceed: 0 IP header bad: 0 Timestamp request: 0 Timestamp reply: 0 Information request: 0 Information reply: 0 Netmask request: 0 Netmask reply: 0 Unknown type: 0 |
Total number of received ICMP packets, including: Echo reply packet, unreachable packet, source quench packet, routing redirect packet, Echo request packet, router advert packet, router solicit packet, time exceed packet, IP header bad packet, timestamp request packet, timestamp reply packet, information request packet, information reply packet, netmask request packet, netmask reply packet, and unknown types of packets. |
display ip interface brief
Syntax
display ip interface brief [ interface-type [ interface-number ] ]
View
Any view
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the display ip interface brief command to display brief information about a specified or all Layer 3 interfaces.
With no argument included, the command displays information about all Layer 3 interfaces; with only the interface type specified, it displays information about all Layer 3 interfaces of the specified type; with both the interface type and interface number specified, it displays information about the specified interface.
Related commands: display ip interface.
Examples
# Display brief information about VLAN-interface1.
<device> display ip interface brief vlan-interface 1
*down: administratively down
(l): loopback
(s): spoofing
Interface IP Address Physical Protocol Description
Vlan-interface1 192.168.0.39 up up Vlan-inte...
Table 1-2 display ip interface brief command output description
Field |
Description |
*down |
The interface is administratively shut down with the shutdown command. |
(s) |
Spoofing attribute of the interface. It indicates that the interface whose link layer protocol is displayed up may have no such a link present or the link is set up only on demand. |
Interface |
Interface name |
IP Address |
IP address of the interface (If no IP address is configured, “unassigned” is displayed.) |
Physical |
Physical state of the interface |
Protocol |
Link layer protocol state of the interface |
Description |
Description information for the interface |
ip address
Syntax
ip address ip-address { mask | mask-length } [ sub ]
undo ip address [ ip-address { mask | mask-length } [ sub ] ]
View
VLAN interface view/loopback interface view
Parameters
ip-address: IP address, in dotted decimal notation.
mask: Subnet mask, in dotted decimal notation.
mask-length: Length of a subnet mask, in the range of 0 to 32.
sub: Specifies a secondary IP address of a VLAN or loopback interface.
Description
Use the ip address command to specify an IP address and mask for a VLAN or loopback interface.
Use the undo ip address command to remove an IP address and mask of a VLAN or loopback interface.
By default, no IP address is configured for VLAN or loopback interface.
Note that:
l If you execute the undo ip address command without any parameter, the device deletes both primary and secondary IP addresses of the interface.
l The undo ip address ip-address { mask | mask-length } command is used to delete the primary IP address.
l The undo ip address ip-address { mask | mask-length } sub command is used to delete specified secondary IP addresses.
l You can assign at most two IP address to an interface, among which one is the primary IP address and another is secondary IP addresses. A newly specified primary IP address overwrites the previous one if there is any.
l The primary and secondary IP addresses of an interface cannot reside on the same network segment; the IP address of a VLAN interface must not be in the same network segment as that of a loopback interface on a device.
l A VLAN interface cannot be configured with a secondary IP address if the interface has been configured to obtain an IP address through BOOTP or DHCP.
Related commands: display ip interface.
Examples
# Assign the primary IP address 129.12.0.1 and secondary IP address 129.12.1.1 to VLAN interface 1 with subnet mask 255.255.255.0.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface vlan-interface 1
[device-Vlan-interface1] ip address 129.12.0.1 255.255.255.0
[device-Vlan-interface1] ip address 129.12.1.1 255.255.255.0 sub
IP Performance Configuration Commands
display fib
display fib
View
Any view
Parameters
None
Description
Use the display fib command to display all forwarding information base (FIB) information.
Examples
# Display all FIB information.
<device> display fib
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS Destination/Mask Nexthop Flag TimeStamp Interface
10.153.17.0/24 10.153.17.99 U t[37] Vlan-interface1
10.153.18.88/32 127.0.0.1 GHU t[37] InLoopBack0
10.153.18.0/24 10.153.18.88 U t[37] LoopBack0
10.153.17.99/32 127.0.0.1 GHU t[37] InLoopBack0
127.0.0.0/8 127.0.0.1 U t[33] InLoopBack0
Table 2-1 display fib command output description
Field |
Description |
Flag |
Flags: U: A route is up and available. G: Gateway route H: Local host route B: Blackhole route D: Dynamic route S: Static route R: Rejected route E: Multi-path equal-cost route L: Route generated by ARP or ESIS |
Destination/Mask |
Destination address/mask length |
Nexthop |
Next hop address |
TimeStamp |
Timestamp |
Interface |
Forwarding interface |
display fib ip-address
Syntax
display fib ip-address1 [ { mask1 | mask-length1 } [ ip-address2 { mask2 | mask-length2 } | longer ] | longer ]
View
Any view
Parameters
ip-address1, ip-address2: Destination IP addresses, in dotted decimal notation. ip-address1 and ip-address2 together define an address range. The FIB entries in this address range will be displayed.
mask1, mask2: Subnet masks, in dotted decimal notation.
mask-length1, mask-length2: Length of the subnet masks, in the range of 0 to 32.
longer: Displays the FIB entries matching the specified address/mask and having masks longer than or equal to the specified mask. If no masks are specified, FIB entries that match the natural network address and have the masks longer than or equal to the natural mask will be displayed.
Description
Use the display fib ip-address command to view the FIB entries matching the specified destination IP address.
Examples
# Display the FIB entries whose destination addresses match 12.158.10.0 in the natural mask range.
<device> display fib 12.158.10.0 longer
Route Entry Count: 1
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS
Destination/Mask Nexthop Flag TimeStamp Interface
12.158.10.0/24 12.158.10.1 U t[85391] Vlan-interface10
# Display the FIB entries whose destination addresses are in the range of 12.158.10.0/24 to 12.158.10.6/24.
<device> display fib 12.158.10.0 255.255.255.0 12.158.10.6 255.255.255.0
Route Entry Count: 1
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS
Destination/Mask Nexthop Flag TimeStamp Interface
12.158.10.0/24 12.158.10.1 U t[85391] Vlan-interface10
For details about the displayed information, see Table 2-1.
display fib acl
Syntax
display fib acl acl-number
View
Any view
Parameters
acl-number: Basic ACL number, in the range of 2000 to 2999.
Description
Use the display fib acl command to display the FIB entries matching a specific ACL. For ACL, refer to ACL in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide
Examples
# Display ACL 2001.
<device>display acl 2001
Basic ACL 2001, 1 rule
Acl's step is 1
rule 0 permit source 211.71.75.0 0.0.0.255
# Display the FIB entries filtered by ACL 2001.
<device> display fib acl 2001
Route Entry matched by access-list 2001
Summary Counts :1
Flag:
U:Usable G:Gateway H:Host B:Blackhole D:Dynamic S:Static
R:Reject E:Equal cost multi-path L:Generated by ARP or ESIS
Destination/Mask Nexthop Flag TimeStamp Interface
211.71.75.0/24 1.1.1.2 GSU t[250763] Vlan-interface2
For details about the displayed information, see Table 2-1.
display fib |
Syntax
display fib | { begin | exclude | include } regular-expression
View
Any view
Parameters
begin: Displays the FIB entries from the first one containing the regular expression string.
exclude: Displays only those FIB entries excluding the regular expression character string.
include: Display only those FIB entries containing the regular expression character string.
regular-expression: Regular expression. For details about regular expression, refer to File System Management in H3C WX3000 Series Unified Switches Switching Engine Configuration Guide.
Description
Use the display fib | command to output the FIB entries related to the specific character string from the buffer according to the regular expression.
Examples
# Display the entries starting from the first one containing the string 169.254.0.0.
<device> display fib | begin 169.254.0.0
169.254.0.0/16 2.1.1.1 U t[0] Vlan-interface1
2.0.0.0/16 2.1.1.1 U t[0] Vlan-interface1
For details about the displayed information, see Table 2-1.
display fib statistics
Syntax
display fib statistics
View
Any view
Parameters
None
Description
Use the display fib statistics command to display the total number of FIB entries.
Examples
# Display the total number of FIB entries.
<device> display fib statistics
Route Entry Count : 8
display icmp statistics
Syntax
display icmp statistics
View
Any view
Parameters
None
Description
Use the display icmp statistics command to display the statistics about ICMP packets.
Related commands: display ip interface, reset ip statistics.
Examples
# Display the statistics about ICMP packets.
<device> display icmp statistics
Input: bad formats 0 bad checksum 0
echo 5 destination unreachable 0
source quench 0 redirects 0
echo reply 10 parameter problem 0
timestamp 0 information request 0
mask requests 0 mask replies 0
time exceeded 0
Output:echo 10 destination unreachable 0
source quench 0 redirects 0
echo reply 5 parameter problem 0
timestamp 0 information reply 0
mask requests 0 mask replies 0
time exceeded 0
Table 2-2 display icmp statistics command output description
Field |
Description |
bad formats |
Number of input wrong format packets |
bad checksum |
Number of input wrong checksum packets |
echo |
Number of input/output echo packets |
destination unreachable |
Number of input/output destination unreachable packets |
source quench |
Number of input/output source quench packets |
redirects |
Number of input/output redirection packets |
echo reply |
Number of input/output replies |
parameter problem |
Number of input/output parameter problem packets |
timestamp |
Number of input/output time stamp packets |
information request |
Number of input information request packets |
mask requests |
Number of input/output mask requests |
mask replies |
Number of input/output mask replies |
information reply |
Number of output information reply packets |
time exceeded |
Number of input/output expiration packets |
display ip socket
Syntax
display ip socket [ socktype sock-type ] [ task-id socket-id ]
View
Any view
Parameters
sock-type: Type of a socket, ranging from 1 to 3. These values correspond to SOCK_STREAM (TCP socket), SOCK_DGRAM (UDP socket or socket based on the link layer), and SOCK_RAW (RAW IP socket).
task-id: ID of a task, with the value ranging from 1 to 100.
socket-id: ID of a socket, with the value ranging from 0 to 3072.
Description
Use the display ip socket command to display the information of the current socket.
Examples
# Display the information about the socket of the TCP type.
<device> display ip socket socktype 1
SOCK_STREAM:
Task = VTYD(18), socketid = 1, Proto = 6,
LA = 0.0.0.0:23, FA = 0.0.0.0:0,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_ACCEPTCONN SO_KEEPALIVE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_PRIV SS_ASYNC
Task = VTYD(18), socketid = 2, Proto = 6,
LA = 10.153.17.99:23, FA = 10.153.17.56:1161,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Task = VTYD(18), socketid = 3, Proto = 6,
LA = 10.153.17.99:23, FA = 10.153.17.82:1121,
sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,
socket option = SO_KEEPALIVE SO_OOBINLINE SO_SENDVPNID SO_SETKEEPALIVE,
socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC
Table 2-3 display ip socket command output description
Field |
Description |
SOCK_STREAM |
Indicates the socket type is TCP |
Task |
Task ID |
socketid |
Socket ID |
Proto |
Protocol number used by the socket |
sndbuf |
Sending buffer size of the socket |
rcvbuf |
Receiving buffer size of the socket |
sb_cc |
Current data size in the sending buffer. The value makes sense only for the socket of TCP type, because only TCP is able to cache data. |
rb_cc |
Current data size in the receiving buffer |
socket option |
Option of a socket |
socket state |
State of a socket |
display ip statistics
Syntax
display ip statistics
View
Any view
Parameters
None
Description
Use the display ip statistics command to display the statistics about IP packets.
Related commands: display ip interface, reset ip statistics.
Examples
# Display the statistics about IP packets.
<device> display ip statistics
Input: sum 7120 local 112
bad protocol 0 bad format 0
bad checksum 0 bad options 0
Output: forwarding 0 local 27
dropped 0 no route 2
compress fails 0
Fragment:input 0 output 0
dropped 0
fragmented 0 couldn't fragment 0
Reassembling:sum 0 timeouts 0
Table 2-4 display ip statistics command output description
Field |
Description |
|
Input: |
sum |
Total number of packets received |
local |
Total number of packets with destination being local |
|
bad protocol |
Total number of unknown protocol packets |
|
bad format |
Total number of packets with incorrect format |
|
bad checksum |
Total number of packets with incorrect checksum |
|
bad options |
Total number of packets with incorrect option |
|
Output: |
forwarding |
Total number of packets forwarded |
local |
Total number of packets sent from the local |
|
dropped |
Total number of packets discarded |
|
no route |
Total number of packets for which no route is available |
|
compress fails |
Total number of packets failed to compress |
|
Fragment: |
input |
Total number of fragments received |
output |
Total number of fragments sent |
|
dropped |
Total number of fragments dropped |
|
fragmented |
Total number of packets successfully fragmented |
|
couldn't fragment |
Total number of packets that can’t be fragmented |
|
Reassembling: |
sum |
Total number of packets reassembled |
timeouts |
Total number of reassembly timeout packets |
display tcp statistics
Syntax
display tcp statistics
View
Parameters
None
Description
Use the display tcp statistics command to display the statistics about TCP packets.
Related commands: display tcp status, reset tcp statistics.
Examples
# Display the statistics about TCP connections.
<device> display tcp statistics
Received packets:
Total: 753
packets in sequence: 412 (11032 bytes)
window probe packets: 0, window update packets: 0
checksum error: 0, offset error: 0, short error: 0
duplicate packets: 4 (88 bytes), partially duplicate packets: 5 (7 bytes)
out-of-order packets: 0 (0 bytes)
packets of data after window: 0 (0 bytes)
packets received after close: 0
ACK packets: 481 (8776 bytes)
duplicate ACK packets: 7, too much ACK packets: 0
Sent packets:
Total: 665
urgent packets: 0
control packets: 5 (including 1 RST)
window probe packets: 0, window update packets: 2
data packets: 618 (8770 bytes) data packets retransmitted: 0 (0 bytes)
ACK-only packets: 40 (28 delayed)
Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0
Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0
Initiated connections: 0, accepted connections: 0, established connections: 0
Closed connections: 0 (dropped: 0, initiated dropped: 0)
Packets dropped with MD5 authentication: 0
Packets permitted with MD5 authentication: 0
Table 2-5 display tcp statistics command output description
Field |
Description |
|
Received packets: |
Total |
Total number of packets received |
packets in sequence |
Number of packets arriving in sequence |
|
window probe packets |
Number of window probe packets received |
|
window update packets |
Number of window update packets received |
|
checksum error |
Number of checksum error packets received |
|
offset error |
Number of offset error packets received |
|
short error |
Number of received packets with length being too small |
|
duplicate packets |
Number of completely duplicate packets received |
|
partially duplicate packets |
Number of partially duplicate packets received |
|
out-of-order packets |
Number of out-of-order packets received |
|
packets of data after window |
Number of packets outside the receiving window |
|
packets received after close |
Number of packets that arrived after connection is closed |
|
ACK packets |
Number of ACK packets received |
|
duplicate ACK packets |
Number of duplicate ACK packets received |
|
too much ACK packets |
Number of ACK packets for data unsent |
|
Sent packets: |
Total |
Total number of packets sent |
urgent packets |
Number of urgent packets sent |
|
control packets |
Number of control packets sent |
|
window probe packets |
Number of window probe packets sent; in the brackets are resent packets |
|
window update packets |
Number of window update packets sent |
|
data packets |
Number of data packets sent |
|
data packets retransmitted |
Number of data packets retransmitted |
|
ACK-only packets: 40 |
Number of ACK packets sent; in brackets are delayed ACK packets |
|
Retransmitted timeout |
Number of retransmission timer timeouts |
|
connections dropped in retransmitted timeout |
Number of connections broken due to retransmission timeouts |
|
Keepalive timeout |
Number of keepalive timer timeouts |
|
keepalive probe |
Number of keepalive probe packets sent |
|
Keepalive timeout, so connections disconnected |
Number of connections broken due to keepalive probe failures |
|
Initiated connections |
Number of connections initiated |
|
accepted connections |
Number of connections accepted |
|
established connections |
Number of connections established |
|
Closed connections |
Number of connections closed; in brackets are connections closed accidentally (before receiving SYN from the peer) and connections closed initiatively (after receiving SYN from the peer) |
|
Packets dropped with MD5 authentication |
Number of packets dropped with MD5 authentication |
|
Packets permitted with MD5 authentication |
Number of packets permitted with MD5 authentication |
display tcp status
Syntax
display tcp status
View
Any view
Parameters
None
Description
Use the display tcp status command to display the state of all the TCP connections so that you can monitor TCP connections in real time.
Examples
# Display the state of all the TCP connections.
<device> display tcp status
*: TCP MD5 Connection
TCPCB Local Add:port Foreign Add:port State
03e37dc4 0.0.0.0:4001 0.0.0.0:0 Listening
04217174 100.0.0.204:23 100.0.0.253:65508 Established
Table 2-6 display tcp status command output description
Field |
Description |
* |
If there is an asterisk before a connection, it means that the TCP connection is authenticated through the MD5 algorithm |
TCPCB |
TCP control block |
Local Add:port |
Local IP address and port number |
Foreign Add:port |
Remote IP address and port number |
State |
State of the TCP connection |
display udp statistics
Syntax
display udp statistics
View
Any view
Parameters
None
Description
Use the display udp statistics command to display the statistics about UDP packets.
Related commands: reset udp statistics.
Examples
# Display the statistics about UDP packets.
<device> display udp statistics
Received packets:
Total: 26320
checksum error: 0
shorter than header: 0, data length larger than packet: 0
no socket on port: 0
total broadcast or multicast packets : 25006
no socket broadcast or multicast packets: 24989
not delivered, input socket full: 0
input packets missing pcb cache: 1314
Sent packets:
Total: 7187
Table 2-7 display udp statistics command output description
Field |
Description |
|
Received packets: |
Total |
Total number of received UDP packets |
checksum error |
Total number of packets with incorrect checksum |
|
shorter than header |
Number of packets with data shorter than header |
|
data length larger than packet |
Number of packets with data longer than packet |
|
no socket on port |
Number of unicast packets with no socket on port |
|
total broadcast or multicast packets |
Total number of transmitted broadcast or multicast packets |
|
no socket broadcast or multicast packets |
Total number of broadcast or multicast packets without socket on port |
|
not delivered, input socket full |
Number of not delivered packets because the socket cache is full |
|
input packets missing pcb cache |
Number of packets without matching PCB cache |
|
Sent packets: |
Total |
Total number of UDP packets sent |
icmp redirect send
Syntax
icmp redirect send
undo icmp redirect send
View
System view
Parameters
None
Description
Use the icmp redirect send command to enable the device to send ICMP redirection packets.
Use the undo icmp redirect send command to disable the device from sending ICMP redirection packets.
By default, the device is enabled to send ICMP redirection packets.
Examples
# Disable the device from sending ICMP redirection packets.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] undo icmp redirect send
icmp unreach send
Syntax
icmp unreach send
undo icmp unreach send
View
System view
Parameters
None
Description
Use the icmp unreach send command to enable the device to send ICMP destination unreachable packets.
Use the undo icmp unreach send command to disable the device from sending ICMP destination unreachable packets.
By default, the device is enabled to send ICMP destination unreachable packets.
Examples
# Disable the device from sending ICMP destination unreachable packets.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] undo icmp unreach send
reset ip statistics
Syntax
reset ip statistics
View
User view
Parameters
None
Description
Use the reset ip statistics command to clear the statistics about IP packets.
Related commands: display ip interface, display ip statistics.
Examples
# Clear the statistics about IP packets.
<device> reset ip statistics
reset tcp statistics
Syntax
reset tcp statistics
View
User view
Parameters
None
Description
Use the reset tcp statistics command to clear the statistics about TCP packets.
Related commands: display tcp statistics.
Examples
# Clear the statistics about TCP packets.
<device> reset tcp statistics
reset udp statistics
Syntax
reset udp statistics
View
User view
Parameters
None
Description
Use the reset udp statistics command to clear the statistics about UDP packets.
Related commands: display udp statistics.
Examples
# Clear the statistics about UDP packets.
<device> reset udp statistics
tcp timer fin-timeout
Syntax
tcp timer fin-timeout time-value
undo tcp timer fin-timeout
View
System view
Parameters
time-value: TCP finwait timer value, in seconds, with the value ranging from 76 to 3600.
Description
Use the tcp timer fin-timeout command to configure the TCP finwait timer.
Use the undo tcp timer fin-timeout command to restore the default value of the TCP finwait timer.
By default, the value of the TCP finwait timer is 675 seconds.
When the TCP connection state changes from FIN_WAIT_1 to FIN_WAIT_2, the finwait timer is enabled. If the device does not receive FIN packets before finwait timer times out, the TCP connection will be terminated.
Related commands: tcp timer syn-timeout, tcp window.
Examples
# Configure the value of the TCP finwait timer to 800 seconds.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] tcp timer fin-timeout 800
tcp timer syn-timeout
Syntax
tcp timer syn-timeout time-value
undo tcp timer syn-timeout
View
System view
Parameters
time-value: TCP synwait timer value, in seconds, with the value ranging from 2 to 600.
Description
Use the tcp timer syn-timeout command to configure the TCP synwait timer.
Use the undo tcp timer syn-timeout command to restore the default value of the TCP synwait timer.
By default, the value of the TCP synwait timer is 75 seconds.
When sending the SYN packet, TCP starts the synwait timer. If the response packet is not received before synwait times out, the TCP connection will be terminated.
Related commands: tcp timer fin-timeout, tcp window.
Examples
# Configure the value of the TCP synwait timer to 80 seconds.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] tcp timer syn-timeout 80
tcp window
Syntax
tcp window window-size
undo tcp window
View
System view
Parameters
window-size: Size of the transmission and receiving buffers of the connection-oriented socket, measured in kilobytes (KB), in the range of 1 to 32.
Description
Use the tcp window command to configure the size of the transmission and receiving buffers of the connection-oriented socket.
Use the undo tcp window command to restore the default size of the transmission and receiving buffers of the connection-oriented socket.
By default, the size of the transmission and receiving buffers is 8 KB.
Related commands: tcp timer fin-timeout, tcp timer syn-timeout.
Examples
# Configure the size of the transmission and receiving buffers of the connection-oriented socket to 3KB.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] tcp window 3