H3C S3100-52P Ethernet Switch Command Manual-Release 1500(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesReference GuidesCommand ReferencesH3C S3100-52P Ethernet Switch Command Manual-Release 1500(V1.01)
05-IP Address and Performance Confiugration Command

Chapter 1  IP Address Configuration Commands

1.1  IP Address Configuration Commands

1.1.1  display ip interface

Syntax

display ip interface [ brief [ interface-type [ interface-number ] ] | [ interface-type interface-number ] ]

View

Any view

Parameter

interface-type interface-number: interface-type indicates a port type and interface-number indicates a port number. For details, see the description of the interface command in Port Basic Configuration part of this manual.

brief: Displays the basic interface configuration information.

Description

Use the display ip interface command to display information about one specific or all interfaces.

Example

# Display information about VLAN-interface1.

<H3C> 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 state of VLAN interface 1

Line protocol current state

Current state of the Line protocol

Internet Address

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

Number of input/output unicast 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.

 

1.1.2  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

Parameter

Ip-address: IP address, in dotted decimal notation.

mask: Subnet mask, in dotted decimal notation.

mask-length: Length of a subnet mask.

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, a VLAN or loopback interface has no IP address.

Generally, it is enough to configure one IP address for an interface. However, you can configure up to five IP addresses for an interface so that it can be connected to several subnets. Among these IP addresses, one is the primary IP address and all the others are secondary ones. The relationship between the primary address and the secondary addresses is as follows:

l           When you configure a primary IP address for an interface which already has a primary IP address, the new address will replace the old one.

l           If you execute the undo ip address command without any parameter, the switch deletes both primary and secondary IP addresses of the interface. The undo ip address ip-address { mask | mask-length } command is used to delete the primary IP address. The undo ip address ip-address { mask | mask-length } sub command is used to delete secondary IP addresses.

Note that 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 command: display ip interface.

Example

# Specify the IP address and subnet mask of VLAN-interface1 to 129.12.0.1 and 255.255.255.0 respectively.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Vlan-interface 1

[H3C-Vlan-interface1] ip address 129.12.0.1 255.255.255.0

 


Chapter 2  IP Performance Configuration Commands

2.1  IP Performance Configuration Commands

2.1.1  display fib

Syntax

display fib

View

Any view

Parameter

None

Description

Use the display fib command to view the summary of the forwarding information base (FIB). Each line indicates an FIB entry. The information includes: destination address/mask length, next hop, current flag, timestamp, and output interface.

Example

# View the FIB summary.

<H3C> 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[0]          Vlan-interface1

10.153.18.88/32    127.0.0.1       GHU  t[0]          InLoopBack0

10.153.18.0/24     10.153.18.88    U    t[0]          LoopBack0

10.153.17.99/32    127.0.0.1       GHU  t[0]          InLoopBack0

127.0.0.0/8        127.0.0.1        U    t[0]         InLoopBack0

Table 2-1 Description on the fields of the display fib command

Field

Description

Destination/Mask

Destination address/mask length

Nexthop

Next hop address

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

TimeStamp

Timestamp

Interface

Forwarding interface

 

2.1.2  display fib ip-address

Syntax

display fib ip-address1 [ { mask1 | mask-length1 } [ ip-address2 { mask2 | mask-length2 } | longer ] | longer ]

View

Any view

Parameter

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: IP address masks, in dotted decimal notation.

mask-length1, mask-length2: Integers in the range of 0 to 32, representing the mask length.

longer: Displays the FIB entries matching specific network/mask.

Description

Use the display fib ip-address command to view the FIB entries matching the specified destination IP address. Each line indicates an FIB entry. The information includes: destination address/mask length, next hop, current flag, timestamp, and outbound interface.

Example

# View the FIB entries whose destination addresses match 12.158.10.0 in the natural mask range.

<H3C> display fib 12.158.10.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

# Display the FIB entries whose destination addresses are in the range of 12.158.10.0/24 to 12.158.10.6/24.

<H3C> 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.

2.1.3  display fib acl

Syntax

display fib acl number

View

Any view

Parameter

number: ACL in the number form, in the range of 2000 to 2999.

Description

Use the display fib acl command to view the FIB entries matching a specific ACL. For ACL, refer to the ACL part of this manual.

Example

# View all the FIB entries.

<H3C> 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

211.71.75.0/24     1.1.1.2         GSU  t[250763]     Vlan-interface2

1.1.2.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.1/32       127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.0/8        127.0.0.1       U    t[37]         InLoopBack0

1.1.1.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

1.1.1.0/24         1.1.1.1         U    t[37]         Vlan-interface2

# View ACL 2001.

<H3C> 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

# View the FIB entries filtered by ACL 2001.

<H3C> 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.

2.1.4  display fib |

Syntax

display fib | { begin | exclude | include } text

View

Any view

Parameter

begin: Displays the FIB entries from the first one containing the string identified by the argument text.

exclude: Displays only those FIB entries excluding the character string text.

include: Display only those FIB entries containing the character string text.

text: Character string.

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 For the format of the regular expression, refer to the Configuration File Management part of this manual.

Example

# View the lines starting from the first one containing the string 169.254.0.0.

<H3C> 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.

2.1.5  display fib ip-prefix

Syntax

display fib ip-prefix listname

View

Any view

Parameter

listname: Prefix list name, a string of 1 to 19 characters.

Description

Use the display fib ip-prefix command to view the FIB entries matching a specific prefix list. For the prefix list, refer to the IP Routing Policy Configuration in the Routing Protocol part of the manual.

Example

# View the prefix list abc.

<H3C> display ip ip-prefix abc

name                 index   conditions  ip-prefix / mask    GE  LE

abc                  10      permit      211.71.75.0/24      --  --

# View all the FIB entries.

<H3C> 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

211.71.75.0/24     1.1.1.2         GSU  t[250763]     Vlan-interface2

1.1.2.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.1/32       127.0.0.1       GHU  t[37]         InLoopBack0

127.0.0.0/8        127.0.0.1       U    t[37]         InLoopBack0

1.1.1.1/32         127.0.0.1       GHU  t[37]         InLoopBack0

1.1.1.0/24         1.1.1.1         U    t[37]         Vlan-interface2  

# View the FIB entries matching prefix list abc.

<H3C> 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.

2.1.6  display fib statistics

Syntax

display fib statistics

View

Any view

Parameter

None

Description

Use the display fib statistics command to view the total number of FIB entries.

Example

# View the total number of FIB entries.

<H3C> display fib statistics

Route Entry Count : 30

2.1.7  display icmp statistics

Syntax

display icmp statistics

View

Any view

Parameter

None

Description

Use the display icmp statistics command to view the statistics about ICMP packets.

Related command: display ip interface and reset ip statistics.

Example

# View the statistics about ICMP packets.

<H3C> 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

bad formats

Number of input packets in bad formats

bad checksum

Number of input packets with bad checksum

echo

Number of input/output echo request packets

destination unreachable

Number of input/output packets with unreachable destination

source quench

Number of input/output source quench packets

redirects

Number of input/output redirected packets

echo reply

Number of input/output echo reply packets

parameter problem

Number of input/output packets with parameter problem

timestamp

Number of input/output timestamp packets

information request

Number of input information request packets

mask requests

Number of input/output mask request packets

mask replies

Number of input/output mask reply packets

information reply

Number of output information reply packets

time exceeded

Number of timeout packets

 

2.1.8  display ip socket

Syntax

display ip socket [ socktype sock-type ] [ task-id socket-id ]

View

Any view

Parameter

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.

Example

# Display the information about the socket of the TCP type.

<H3C> 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

Type of a socket. Three types are available: SOCK_STREAM (TCP socket), SOCK_DGRAM (UDP socket or socket supporting link layer access), and SOCK_RAW (RAW IP socket).

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

 

2.1.9  display ip statistics

Syntax

display ip statistics

View

Any view

Parameter

None

Description

Use the display ip statistics command to view the statistics about IP packets.

Related command: display ip interface and reset ip statistics.

Example

# View the statistics about IP packets.

<H3C> 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

Sum of input packets

Local

Number of input packets whose destination address is the local device

bad protocol

Number of packets with wrong protocol number

bad format

Number of packets in bad format

bad checksum

Number of packets with bad checksum

bad options

Number of packets with wrong options

Output:

forwarding

Number of forwarded packets

local

Number of packets sent by the local device

dropped

Number of dropped packets during transmission

no route

Number of packets that cannot be routed

compress fails

Number of packets that cannot be compressed

Fragment:

input

Number of input fragments

output

Number of output fragments

dropped

Number of dropped fragments

fragmented

Number of packets that are fragmented

couldn't fragment

Number of packets that cannot be fragmented

Reassembling:

sum

Number of reassembled packets

timeouts

Number of timeout fragment packets

 

2.1.10  display tcp statistics

Syntax

display tcp statistics

View

Any view

Parameter

None

Description

Use the display tcp statistics command to view the statistics about TCP packets.

Related command: display tcp status and reset tcp statistics.

Example

# View the statistics about TCP packets.

<H3C> 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 received packets

packets in sequence

Number of packets in sequence

window probe packets/ window update packets

Number of window probe packets/number of window update packets

checksum error/ offset error/ short error

Number of checksum errors/number of offset errors/number of packet too short errors

duplicate packets/ partially duplicate packets

Number of duplicate packets/number of partially duplicate packets

out-of-order packets

Number of out-of-order packets

packets of data after window

Number of packets out of window

packets received after close

Number of received packets after close

ACK packets

Number of ACK packets

duplicate ACK packets/ too much ACK packets

Number of duplicate ACK packets/number of ACK packets for data not sent.

Sent packets

Total

Total number of sent packets

urgent packets

Number of urgent packets

control packets (including 1 RST)

Number of control packets, including one retransmitted packet

window probe packets/ window update packets

Number of window probe packets/number of window update packets

data packets/ data packets retransmitted

Number of data packets/number of retransmitted packets

ACK-only packets

Number of ACK packets (28 delay ACK packets)

Retransmitted timeout/ connections dropped in retransmitted timeout

Times of retransmission timer timeout/number of dropped connections due to retransmission times exceeding the limit

Keepalive timeout/ keepalive probe/ Keepalive timeout, so connections disconnected

Times of keepalive timer timeout/number of transmitted keepalive probe packets/number of dropped connections due to keepalive probe failure

Initiated connections/ accepted connections/ established connections

Number of initiated connections/number of accepted connections/number of established connections

Closed connections (dropped:\ initiated dropped: )

Number of closed connections (number of dropped connections\number of failed connection attempts)

Packets dropped with MD5 authentication

Number of dropped packets with MD5 authentication

Packets permitted with MD5 authentication

Number of permitted packets with MD5 authentication

 

2.1.11  display tcp status

Syntax

display tcp status

View

Any view

Parameter

None

Description

Use the display tcp status command to view the state of all the TCP connections so that you can monitor TCP connections in real time.

Example

# View the state of all the TCP connections.

<H3C> 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

Address of the TCP control block

Local Add:port

Local IP address; port number

Foreign Add:port

Remote IP address; port number

State

TCP connection state

 

2.1.12  display udp statistics

Syntax

display udp statistics

View

Any view

Parameter

None

Description

Use the display udp statistics command to view the statistics about UDP packets.

Related command: reset udp statistics.

Example

# View the statistics about UDP packets.

<H3C> 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

Number of packets with checksum errors

shorter than header,

Number of packets whose lengths are shorter than their headers

data length larger than packet

Number of packets whose data lengths are larger than the packets lengths (specified in the headers)

no socket on port

Number of packets dropped because the socket corresponding to the port number is not found

total broadcast or multicast packets

Total number of transmitted broadcast or multicast packets

no socket broadcast or multicast packets

Total number of transmitted broadcast or multicast packets whose sockets are not found

not delivered, input socket full

Number of not delivered packets because the socket cache is full

input packets missing pcb cache

Number of packets missing pcb cache

Sent packets:

Total

Total number of transmitted UDP packets

 

2.1.13  ip forward-broadcast

Syntax

ip forward-broadcast

undo ip forward-broadcast

View

System view

Parameter

None

Description

Use the ip forward-broadcast command to permit to receive subnet-directed broadcast packets.

Use the undo ip forward-broadcast command to suppress subnet-directed broadcast packets.

By default, the subnet-directed broadcast packets are suppressed.

Example

# Permit to receive the subnet-directed broadcast packets.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] ip forward-broadcast

2.1.14  reset ip statistics

Syntax

reset ip statistics

View

User view

Parameter

None

Description

Use the reset ip statistics command to clear the statistics about IP packets.

Related command: display ip interface and display ip statistics.

Example

# Clear the statistics about IP packets.

<H3C> reset ip statistics

2.1.15  reset tcp statistics

Syntax

reset tcp statistics

View

User view

Parameter

None

Description

Use the reset tcp statistics command to clear the statistics about TCP packets.

Related command: display tcp statistics.

Example

# Clear the statistics about TCP packets.

<H3C> reset tcp statistics

2.1.16  reset udp statistics

Syntax

reset udp statistics

View

User view

Parameter

None

Description

Use the reset udp statistics command to clear the statistics about UDP packets.

Example

# Clear the statistics about UDP packets.

<H3C> reset udp statistics

2.1.17  tcp timer fin-timeout

Syntax

tcp timer fin-timeout time-value

undo tcp timer fin-timeout

View

System view

Parameter

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 switch does not receive FIN packets before finwait timer times out, the TCP connection will be terminated.

Related command: tcp timer syn-timeout and tcp window.

Example

# Configure the default value of the TCP finwait timer to 800 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] tcp timer fin-timeout 800

2.1.18  tcp timer syn-timeout

Syntax

tcp timer syn-timeout time-value

undo tcp timer syn-timeout

View

System view

Parameter

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 command: tcp timer fin-timeout and tcp window.

Example

# Configure the default value of the TCP synwait timer to 80 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] tcp timer syn-timeout 80

2.1.19  tcp window

Syntax

tcp window window-size

undo tcp window

View

System view

Parameter

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 command: tcp timer fin-timeout and tcp timer syn-timeout.

Example

# Configure the size of the transmission and receiving buffers of the connection-oriented socket to 3KB.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] tcp window 3

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网