- Table of Contents
-
- H3C S3600 Command Manual-Release 1602(V1.02)
- 00-1Cover
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-IP Address and Performance Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Port Basic 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-Auto Detect Command
- 15-MSTP Command
- 16-Routing Protocol Command
- 17-Multicast Command
- 18-802.1x and System Guard Command
- 19-AAA Command
- 20-Web Authentication Command
- 21-MAC Address Authentication Command
- 22-VRRP Command
- 23-ARP Command
- 24-DHCP Command
- 25-ACL Command
- 26-QoS-QoS Profile Command
- 27-Web Cache Redirection Command
- 28-Mirroring Command
- 29-IRF Fabric Command
- 30-Cluster Command
- 31-PoE-PoE Profile Command
- 32-UDP Helper Command
- 33-SNMP-RMON Command
- 34-NTP Command
- 35-SSH Command
- 36-File System Management Command
- 37-FTP-SFTP-TFTP Command
- 38-Information Center Command
- 39-System Maintenance and Debugging Command
- 40-VLAN-VPN Command
- 41-HWPing Command
- 42-IPv6 Management Command
- 43-DNS Command
- 44-Smart Link-Monitor Link Command
- 45-Access Management Command
- 46-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
05-IP Address and Performance Command | 95.62 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.
<Sysname> 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 Description on the fields of the display ip interface command
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 of the interface followed by: l Primary: Identifies a primary IP address, or l Sub: Identifies a secondary IP address. |
Broadcast address |
Directed broadcast address of the subnet attached to the interface |
The Maximum Transmit Unit |
Maximum transmission unit on the interface |
IP packets input number: 9678, bytes: 475001, multicasts: 7 IP packets output number: 8622, bytes: 391084, multicasts: 0 |
Total number of packets, bytes, and multicast packets forwarded and received on the interface |
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-interface 1.
<Sysname> 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 Description on the fields of the display ip interface brief command
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 |
Interface description information. If the description has no more than 12 characters, the whole description can be displayed. If it has more than 12 characters, only the first nine characters are displayed. |
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: Subnet mask length, the number of consecutive ones in the mask. It is 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 switch 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 five IP address to an interface, among which one is the primary IP address and the others are 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.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] ip address 129.12.0.1 255.255.255.0
[Sysname-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.
<Sysname> 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 Description on the fields of the display fib command
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, the number of consecutive ones in the 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.
If no mask or mask length is specified, the FIB entry that matches the destination IP address and has the longest mask will be displayed; if the mask is specified, the FIB entry that exactly matches the specified destination IP address and mask will be displayed.
Examples
# Display FIB entry information which matches destination 12.158.10.0 and has a mask length no less than eight.
<Sysname> 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 FIB entry information which has a destination in the range of 12.158.10.0/24 to 12.158.10.6/24 and has a mask length of 24.
<Sysname> 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 the part discussing ACL in this manual.
Examples
# Configure and display ACL 2001.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 211.71.75.0 0.0.0.255
[Sysname-acl-basic-2001] 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.
<Sysname> 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
|: Uses a regular expression to match FIB entries. For detailed information about regular expression, refer to Configuration File Management Command.
begin: Displays a specific FIB entry and all the FIB entries following it. The specific FIB entry is the first entry that matches the specified regular expression.
exclude: Displays the FIB entries that do not match the specified regular expression.
include: Displays the FIB entries that match the specified regular expression.
regular-expression: A case-sensitive character string.
Description
Use the display fib | command to display the FIB entries filtered by the specified regular expression.
Examples
# Display the entries starting from the first one containing the string 169.254.0.0.
<Sysname> 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 ip-prefix
Syntax
display fib ip-prefix ip-prefix-name
View
Any view
Parameters
ip-prefix-name: IP prefix list name, in the range of 1 to 19 characters.
Description
Use the display fib ip-prefix command to display the FIB entries matching a specific IP prefix list. For details about IP prefix list, refer to the part discussing IP routing in this manual.
Examples
# Configure and display the IP prefix list abc.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ip ip-prefix abc permit 211.71.75.0 24
[Sysname] display ip ip-prefix abc
name index conditions ip-prefix / mask GE LE
abc 10 permit 211.71.75.0/24 -- --
# Display the FIB entries matching IP prefix list abc.
<Sysname> display fib ip-prefix abc
Route Entry matched by prefix-list abc
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 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.
<Sysname> 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.
<Sysname> 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 Description on the fields of the display icmp statistics command
Field |
Description |
|
Input: |
bad formats |
Number of received wrong format packets |
bad checksum |
Number of received wrong checksum packets |
|
echo |
Number of received echo packets |
|
destination unreachable |
Number of received destination unreachable packets |
|
source quench |
Number of received source quench packets |
|
redirects |
Number of received redirection packets |
|
echo reply |
Number of received replies |
|
parameter problem |
Number of received parameter problem packets |
|
timestamp |
Number of received time stamp packets |
|
information request |
Number of received information request packets |
|
mask requests |
Number of received mask requests |
|
mask replies |
Number of received mask replies |
|
time exceeded |
Number of received expiration packets |
|
Output: |
echo |
Number of sent echo packets |
destination unreachable |
Number of sent destination unreachable packets |
|
source quench |
Number of sent source quench packets |
|
redirects |
Number of sent redirection packets |
|
echo reply |
Number of sent replies |
|
parameter problem |
Number of sent parameter problem packets |
|
timestamp |
Number of sent time stamp packets |
|
information reply |
Number of sent information reply packets |
|
mask requests |
Number of sent mask requests |
|
mask replies |
Number of sent mask replies |
|
time exceeded |
Number of sent expiration packets |
display ip socket
Syntax
display ip socket [ socktype sock-type ] [ task-id socket-id ]
View
Any view
Parameters
socktype sock-type: Displays the socket information of this type. The sock type is in the range 1 to 3, corresponding to TCP, UDP and raw IP respectively.
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 socket information.
Examples
# Display the information about the socket of the TCP type.
<Sysname> 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 Description on the fields of the display ip socket command
Field |
Description |
SOCK_STREAM |
Indicates the socket type is TCP |
SOCK_DGRAM |
Indicates the socket type is UDP |
SOCK_RAW |
Indicates the socket type is raw IP |
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.
<Sysname> 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 Description on the fields of the display ip statistics command
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. Unknown protocol packets are destined to the local device, but the upper layer protocol specified in their IP header cannot be processed by the device. (For example, if a switch is not enabled with the Layer 3 multicast function, it considers IGMP packets as unknown protocol packets.) |
|
bad format |
Total number of packets with incorrect header format that contains a wrong version, or has a header length less than 20 bytes. |
|
bad checksum |
Total number of packets with incorrect checksum |
|
bad options |
Total number of packets with incorrect option |
|
Output: |
forwarding |
Total number of IP packets forwarded by the local device |
local |
Total number of IP packets initiated from the local device |
|
dropped |
Total number of IP packets discarded |
|
no route |
Total number of IP packets for which no route is available |
|
compress fails |
Total number of IP packets failed to compress |
|
Fragment: |
input |
Total number of fragments received |
output |
Total number of fragments sent |
|
dropped |
Total number of fragments discarded |
|
fragmented |
Total number of IP packets successfully fragmented |
|
couldn't fragment |
Total number of IP packets that cannot be fragmented |
|
Reassembling: |
sum |
Total number of IP packets reassembled |
timeouts |
Total number of reassembly timeout IP 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.
<Sysname> 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 Description on the fields of the display tcp statistics command
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; in brackets are retransmitted packets |
|
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.
<Sysname> 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 Description on the fields of the display tcp status command
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.
<Sysname> 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 Description on the fields of the display udp statistics command
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 received 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 due to a full socket cache |
|
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.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] 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. After enabled with this feature, the switch, upon receiving a packet with an unreachable destination, discards the packet and then sends a destination unreachable packet to the source host.
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.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] undo icmp unreach send
ip forward-broadcast
Syntax
ip forward-broadcast
undo ip forward-broadcast
View
System view
Parameters
None
Description
Use the ip forward-broadcast command to enable the device to receive directed broadcasts to a directly connected network.
Use the undo ip forward-broadcast command to disable the device from receiving directed broadcasts to a directly connected network.
By default, the device is disabled from receiving directed broadcasts to a directly connected network.
Examples
# Enable the device to receive directed broadcasts to a directly connected network.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ip forward-broadcast
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. You can use the display ip statistics command to view the current IP packet statistics.
Related commands: display ip interface.
Examples
# Clear the statistics about IP packets.
<Sysname> 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. You can use the display tcp statistics command to view the current TCP packet statistics.
Examples
# Clear the statistics about TCP packets.
<Sysname> 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. You can use the display udp statistics command to view the current UDP packet statistics.
Examples
# Clear the statistics about UDP packets.
<Sysname> 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, 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 switch 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.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] 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, 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.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] 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 3 KB.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] tcp window 3