05-Layer 3 - IP Services Command Reference

HomeSupportRoutersH3C SR8800 Router SeriesReference GuidesCommand ReferencesH3C SR8800 Command Reference-Release3347-6W10305-Layer 3 - IP Services Command Reference
06-IP Performance Optimization Commands
Title Size Download
06-IP Performance Optimization Commands 133.35 KB

 

 

NOTE:

In this documentation, SPC cards refer to the interface cards prefixed with SPC, for example, SPC-GT48L. SPE cards refer to the base cards prefixed with SPE, for example, SPE-1020-E-II.

 

display fib

Syntax

display fib [ vpn-instance vpn-instance-name ] [ | { begin | exclude | include regular-expression | acl acl-number | ip-prefix ip-prefix-name ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the FIB entries of the specified VPN instance. The vpn-instance-name is a string of 1 to 31 case-sensitive characters. If no VPN instance is specified, FIB entries of the public network are displayed.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

acl acl-number: Displays FIB entries matching a specified ACL numbered from 2000 to 2999. If the specified ACL does not exist, all FIB entries are displayed.

ip-prefix ip-prefix-name: Displays FIB entries matching a specified IP prefix list, a string of 1 to 19 characters. If the specified IP prefix list does not exist, all FIB entries are displayed.

Description

Use the display fib command to display FIB entries. If no parameters are specified, all FIB entries will be displayed.

Examples

# Display all FIB entries.

<Sysname> display fib

Destination count: 4    FIB entry count: 4

Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

  R:Relay

Destination/Mask  Nexthop     Flag    OutInterface  InnerLabel Token 

10.2.0.0/16       10.2.1.1    U       GE3/1/1        Null       Invalid

10.2.1.1/32       127.0.0.1   UH      InLoop0       Null       Invalid

127.0.0.0/8       127.0.0.1   U       InLoop0       Null       Invalid

127.0.0.1/32      127.0.0.1   UH      InLoop0       Null       Invalid

# Display FIB information matching ACL 2000.

<Sysname> system-view

[Sysname] acl number 2000

[Sysname-acl-basic-2000] rule permit source 10.2.0.0 0.0.255.255

[Sysname-acl-basic-2000] display fib acl 2000

Destination count: 2    FIB entry count: 2

 Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

  R:Relay

Destination/Mask  Nexthop     Flag    OutInterface  InnerLabel Token 

10.2.0.0/16       10.2.1.1    U       GE3/1/1        Null       Invalid

10.2.1.1/32       127.0.0.1   UH      InLoop0       Null       Invalid

# Display all entries that contain the string 127 and start from the first one.

<Sysname> display fib | begin 127

Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

  R:Relay

Destination/Mask  Nexthop     Flag    OutInterface  InnerLabel Token 

10.2.1.1/32       127.0.0.1   UH      InLoop0       Null       Invalid

127.0.0.0/8       127.0.0.1   U       InLoop0       Null       Invalid

127.0.0.1/32      127.0.0.1   UH      InLoop0       Null       Invalid

# Display FIB information passing the IP prefix list abc0.

<Sysname> system-view

[Sysname] ip ip-prefix abc0 permit 10.2.0.0 16

[Sysname] display fib ip-prefix abc0

Destination count: 1    FIB entry count: 1

Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

  R:Relay

Destination/Mask Nexthop     Flag    OutInterface  InnerLabel Token 

10.2.0.0/16      10.2.1.1    U       GE3/1/1        Null       Invalid

Table 1 Output description

Field

Description

Destination count

Total number of destination addresses

FIB entry count

Total number of FIB entries

Destination/Mask

Destination address/length of mask

Nexthop

Address of next hop

Flag

Flags of routes:

·       U—Usable route

·       G—Gateway route

·       H—Host route

·       B—Blackhole route

·       D—Dynamic route

·       S—Static route

·       R—Relay route

OutInterface

Forwarding interface

InnerLabel

Inner label

Token

LSP index number

 

display fib ip-address

Syntax

display fib [ vpn-instance vpn-instance-name ] ip-address [ mask | mask-length ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vpn-instance vpn-instance-name: Displays the FIB entries of the specified VPN instance. The vpn-instance-name is a string of 1 to 31 case-sensitive characters. If no VPN instance is specified, FIB entries of the public network are displayed.

ip-address: Destination IP address, in dotted decimal notation.

mask: IP address mask.

mask-length: Length of IP address mask.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display fib ip-address command to display FIB entries that match 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 will be displayed.

Examples

# Display the FIB entries that match the destination IP address of 10.2.1.1.

<Sysname> display fib 10.2.1.1

Destination count: 1    FIB entry count: 1

 Flag:

  U:Useable   G:Gateway   H:Host   B:Blackhole   D:Dynamic   S:Static

  R:Relay

 

Destination/Mask  Nexthop     Flag     OutInterface  InnerLabel Token

10.2.1.1/32       127.0.0.1   UH       InLoop0       Null       Invalid

For the output description, see Table 1.

display icmp statistics

Syntax

display icmp statistics [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays the ICMP statistics of the specified card.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display icmp statistics command to display ICMP statistics.

Related commands: display ip interface and reset ip statistics.

Examples

# Display ICMP statistics.

<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 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 redirect 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 ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

socktype sock-type: Displays the socket information of this type. The sock type is in the range of 1 to 3, corresponding to TCP, UDP and raw IP respectively.

task-id: Displays the socket information of this task. Task ID is in the range of 1 to 180.

socket-id: Displays the information of the socket. Socket ID is in the range of 0 to 3072.

slot-number: Displays the socket information of the specified card.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display ip socket command to display socket information.

Examples

# Display all socket information.

<Sysname> display ip socket

SOCK_STREAM:

Task = VTYD(64), 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_REUSEPORT SO_SETKEEPALIVE,

socket state = SS_PRIV SS_ASYNC

 

Task = ROUT(92), socketid = 2, Proto = 6,

LA = 0.0.0.0:179, FA = 33.33.33.33:0,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN SO_REUSEADDR SO_REUSEPORT SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_PRIV SS_ASYNC

 

Task = LDP(98), socketid = 2, Proto = 6,

LA = 0.0.0.0:646, FA = 0.0.0.0:0,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_ACCEPTCONN SO_REUSEADDR SO_REUSEPORT SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_PRIV SS_ASYNC

 

Task = LDP(98), socketid = 3, Proto = 6,

LA = 55.55.55.55:1055, FA = 22.22.22.22:646,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_REUSEADDR SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

 

Task = ROUT(92), socketid = 3, Proto = 6,

LA = 55.55.55.55:1059, FA = 33.33.33.33:179,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_REUSEADDR SO_LINGER SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

 

Task = VTYD(64), socketid = 3, Proto = 6,

LA = 192.168.1.145:23, FA = 192.168.1.1:2957,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_KEEPALIVE SO_OOBINLINE SO_REUSEPORT SO_SETKEEPALIVE,

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

 

Task = VTYD(64), socketid = 4, Proto = 6,

LA = 192.168.1.145:23, FA = 192.168.1.67:1411,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = SO_KEEPALIVE SO_OOBINLINE SO_REUSEPORT SO_SETKEEPALIVE,

socket state = SS_ISCONNECTED SS_PRIV SS_ASYNC

 

SOCK_DGRAM:

Task = DHCP(65), socketid = 2, Proto = 17,

LA = 0.0.0.0:67, FA = 0.0.0.0:0,

sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,

socket option = SO_BROADCAST SO_REUSEPORT SO_UDPCHECKSUM,

socket state = SS_PRIV SS_ASYNC

 

Task = LDP(98), socketid = 1, Proto = 17,

LA = 0.0.0.0:646, FA = 0.0.0.0:0,

sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,

socket option = SO_REUSEADDR SO_UDPCHECKSUM SO_SETSRCADDR SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_PRIV SS_ASYNC

 

Task = RDSO(79), socketid = 1, Proto = 17,

LA = 0.0.0.0:1024, FA = 0.0.0.0:0,

sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,

socket option = SO_UDPCHECKSUM,

socket state = SS_PRIV

 

Task = RDSO(79), socketid = 2, Proto = 17,

LA = 0.0.0.0:1812, FA = 0.0.0.0:0,

sndbuf = 9216, rcvbuf = 41600, sb_cc = 0, rb_cc = 0,

socket option = SO_UDPCHECKSUM,

socket state = SS_PRIV

 

SOCK_RAW:

Task = DHCP(65), socketid = 1, Proto = 1,

LA = 0.0.0.0, FA = 0.0.0.0,

sndbuf = 8192, rcvbuf = 8192, sb_cc = 0, rb_cc = 0,

socket option = 0,

socket state = SS_PRIV SS_ASYNC

 

Task = ROUT(92), socketid = 4, Proto = 89,

LA = 0.0.0.0, FA = 0.0.0.0,

sndbuf = 262144, rcvbuf = 262144, sb_cc = 0, rb_cc = 0,

socket option = SO_SENDVPNID(0) SO_RCVVPNID(0),

socket state = SS_PRIV SS_ASYNC

 

Task = RSVP(97), socketid = 1, Proto = 46,

LA = 0.0.0.0, FA = 0.0.0.0,

sndbuf = 4194304, rcvbuf = 4194304, sb_cc = 0, rb_cc = 0,

socket option = 0,

socket state = SS_PRIV SS_NBIO SS_ASYNC

Table 3 Output description

Field

Description

SOCK_STREAM

TCP socket

SOCK_DGRAM

UDP socket

SOCK_RAW

raw IP socket

Task

Task number

socketid

Socket ID

Proto

Protocol number

LA

Local address and local port number

FA

Remote address and remote port number

sndbuf

Sending buffer size of the socket, in bytes

rcvbuf

Receiving buffer size of the socket, in bytes

sb_cc

Current data size in the sending buffer (It is available only for TCP that can buffer data)

rb_cc

Data size currently in the receiving buffer

socket option

Socket option

socket state

Socket state

 

display ip statistics

Syntax

display ip statistics [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

slot slot-number: Displays statistics of IP packets on the slot.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display ip statistics command to display statistics of IP packets.

Related commands: display ip interface and reset ip statistics.

Examples

# Display statistics of 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 4 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 failed to be fragmented

Reassembling

sum

Total number of packets reassembled

timeouts

Total number of reassembly timeout fragments

 

display tcp statistics

Syntax

display tcp statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display tcp statistics command to display statistics of TCP traffic.

Related commands: display tcp status and reset tcp statistics.

Examples

# Display statistics of TCP traffic.

<Sysname> display tcp statistics

Received packets:

     Total: 18042

     packets in sequence: 2691 (3362 bytes)

     window probe packets: 0, window update packets: 1

     checksum error: 0, offset error: 0, short error: 0

 

     duplicate packets: 1 (8 bytes), partially duplicate packets: 0 (0 bytes)

     out-of-order packets: 0 (0 bytes)

     packets of data after window: 0 (0 bytes)

     packets received after close: 0

 

     ACK packets: 4042 (155590 bytes)

     duplicate ACK packets: 12330, too much ACK packets: 0

 

Sent packets:

     Total: 5989

     urgent packets: 0

     control packets: 3 (including 7 RST)

     window probe packets: 0, window update packets: 0

 

     data packets: 5914 (155584 bytes) data packets retransmitted: 0 (0 bytes)

     ACK-only packets: 72 (65 delayed)

 

Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0

Keepalive timeout: 12350, keepalive probe: 12348, Keepalive timeout, so connections disconnected : 2

Initiated connections: 0, accepted connections: 5, established connections: 5

Closed connections: 5 (dropped: 2, initiated dropped: 0)

Packets dropped with MD5 authentication: 0

Packets permitted with MD5 authentication: 0

Table 5 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

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 timeout of the keepalive timer

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 udp statistics

Syntax

display udp statistics [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

include: Displays all lines that match the specified regular expression.

exclude: Displays all lines that do not match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display udp statistics command to display statistics of UDP packets.

Related commands: reset udp statistics.

Examples

# Display statistics of UDP packets.

<Sysname> display udp statistics

Received packets:

     Total: 0

     checksum error: 0

     shorter than header: 0, data length larger than packet: 0

     unicast(no socket on port): 0

     broadcast/multicast(no socket on port): 0

     not delivered, input socket full: 0

     input packets missing pcb cache: 0

Sent packets:

     Total: 0

Table 6 Output description

Field

Description

Received packets:

Total

Total number of UDP packets received

checksum error

Total number of packets with incorrect checksum

shorter than header

Number of packets with data shorter than head

data length larger than packet

Number of packets with data longer than packet

unicast(no socket on port)

Number of unicast packets with no socket on port

broadcast/multicast(no socket on port)

Number of broadcast/multicast packets without socket on port

not delivered, input socket full

Number of packets not delivered to upper layer due to socket buffer being full

input packets missing pcb cache

Number of packets without matching protocol control block (PCB) cache

Sent packets:

Total

Total number of UDP packets sent

 

ip forward-broadcast

Syntax

ip forward-broadcast [ acl acl-number ]

undo ip forward-broadcast

View

Interface view

Default level

2: System level

Parameters

acl acl-number: Access control list number, in the range of 2000 to 3999. Numbers from 2000 to 2999 are for basic ACLs, and from 3000 to 3999 are for advanced ACLs. Only directed broadcasts permitted by the ACL can be forwarded. The router does not support the option.

Description

Use the ip forward-broadcast command to enable the interface to forward directed broadcasts to a directly-connected network.

Use the undo ip forward-broadcast command to disable the interface from forwarding directed broadcasts to a directly-connected network.

By default, an interface is disabled from forwarding directed broadcasts to a directly-connected network.

 

CAUTION

CAUTION:

The system does not support this command when working in hybrid mode. For more information about system working modes, see Fundamentals Configuration Guide.

 

Examples

# Enable VLAN-interface 10 to forward the directed broadcasts to a directly-connected network matching ACL 2001.

<Sysname> system-view

[Sysname] interface Vlan-interface 10

[Sysname- Vlan-interface10] ip forward-broadcast acl 2001

ip icmp flow-control

Syntax

ip icmp flow-control

undo ip icmp flow-control

View

System view

Default level

2: System level

Parameters

None

Description

Use the ip icmp flow-control command to enable ICMP flow control.

Use the undo ip icmp flow-control command to disable ICMP flow control.

By default, ICMP flow control is disabled.

Examples

# Enable ICMP flow control.

<Sysname> system-view

[Sysname] ip icmp flow-control

ip icmp-extensions

Syntax

ip icmp-extensions { compliant | non-compliant }

undo ip icmp-extensions

View

System view

Default level

2: System level

Parameters

compliant: Specifies the compliant mode.

non-compliant: Specifies the non-compliant mode.

Description

Use the ip icmp-extensions command to enable support for ICMP extensions.

Use the undo ip icmp-extensions command to disable support for ICMP extensions.

By default, ICMP extensions are not supported.

Examples

# Enable support for ICMP extensions in compliant mode.

<Sysname> system-view

[Sysname] ip icmp-extensions compliant

ip redirects enable

Syntax

ip redirects enable

undo ip redirects

View

System view

Default level

2: System level

Parameters

None

Description

Use the ip redirects enable command to enable sending of ICMP redirect packets.

Use the undo ip redirects command to disable sending of ICMP redirect packets.

This feature is disabled by default.

 

 

NOTE:

On SPC cards, you can enable sending of ICMP redirect packets only on VLAN interfaces.

 

Examples

# Enable sending of ICMP redirect packets.

<Sysname> system-view

[Sysname] ip redirects enable

ip ttl-expires enable

Syntax

ip ttl-expires enable

undo ip ttl-expires

View

System view

Default level

2: System level

Parameters

None

Description

Use the ip ttl-expires enable command to enable the sending of ICMP timeout packets.

Use the undo ip ttl-expires command to disable sending of ICMP timeout packets.

Sending of ICMP timeout packets is disabled by default.

If the feature is disabled, the router will not send TTL timeout ICMP packets, but still send “reassembly timeout” ICMP packets.

Examples

# Enable sending of ICMP timeout packets.

<Sysname> system-view

[Sysname] ip ttl-expires enable

ip unreachables enable

Syntax

ip unreachables enable

undo ip unreachables

View

System view

Default level

2: System level

Parameters

None

Description

Use the ip unreachables enable command to enable the sending of ICMP destination unreachable packets.

Use the undo ip unreachables command to disable sending of ICMP destination unreachable packets.

Sending of ICMP destination unreachable packets is disabled by default.

Examples

# Enable sending of ICMP destination unreachable packets.

<Sysname> system-view

[Sysname] ip unreachables enable

reset ip statistics

Syntax

reset ip statistics [ slot slot-number ]

View

User view

Default level

2: System level

Parameters

slot slot-number: Clears IP packet statistics on the specified slot.

Description

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

Related commands: display ip interface and display ip statistics.

Examples

# Clear statistics of IP packets.

<Sysname> reset ip statistics

reset tcp statistics

Syntax

reset tcp statistics

View

User view

Default level

2: System level

Parameters

None

Description

Use the reset tcp statistics command to clear statistics of TCP traffic.

Related commands: display tcp statistics.

Examples

# Display statistics of TCP traffic.

<Sysname> reset tcp statistics

reset udp statistics

Syntax

reset udp statistics

View

User view

Default level

2: System level

Parameters

None

Description

Use the reset udp statistics command to clear statistics of UDP traffic.

Examples

# Display statistics of UDP traffic.

<Sysname> reset udp statistics

tcp mss

Syntax

tcp mss value

undo tcp mss

View

Interface view

Default level

2: System level

Parameters

value: TCP maximum segment size (MSS) in bytes, ranging from 128 to 2048.

Description

Use the tcp mss command to configure the TCP MSS.

Use the undo tcp mss command to restore the default.

By default, the TCP MSS is 1460 bytes.

As the default MTU on an interface is 1500 bytes, and there are link layer cost and IP packet header, so the recommended TCP MSS is about 1200 bytes.

Examples

# Set the TCP MSS to 300 bytes on GigabitEthernet 3/1/1.

<Sysname> system-view

[Sysname] interface GigabitEthernet 3/1/1

[Sysname-GigabitEthernet3/1/1] tcp mss 300

tcp timer fin-timeout

Syntax

tcp timer fin-timeout time-value

undo tcp timer fin-timeout

View

System view

Default level

2: System level

Parameters

time-value: Length of the TCP finwait timer in seconds, ranging from 76 to 3600.

Description

Use the tcp timer fin-timeout command to configure the length of the TCP finwait timer.

Use the undo tcp timer fin-timeout command to restore the default.

By default, the length of the TCP finwait timer is 675 seconds.

Note that the actual length of the finwait timer is determined by the following formula:

Actual length of the finwait timer = (Configured length of the finwait timer – 75) + configured length of the synwait timer

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

Examples

# Set the length of the TCP finwait timer to 800 seconds.

<Sysname> system-view

[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

Default level

2: System level

Parameters

time-value: Length of the TCP finwait timer in seconds, ranging from 2 to 600.

Description

Use the tcp timer syn-timeout command to configure the length of the TCP synwait timer.

Use the undo tcp timer syn-timeout command to restore the default.

By default, the length of the TCP synwait timer is 75 seconds.

Related commands: tcp timer fin-timeout and tcp window.

Examples

# Set the length of the TCP synwait timer to 80 seconds.

<Sysname> system-view

[Sysname] tcp timer syn-timeout 80

tcp window

Syntax

tcp window window-size

undo tcp window

View

System view

Default level

2: System level

Parameters

window-size: Receiving/sending buffer size of TCP connection in KB, ranging from 1 to 32.

Description

Use the tcp window command to configure the receiving/sending buffer size of TCP connection.

Use the undo tcp window command to restore the default.

The TCP receiving/sending buffer is 8 KB by default.

Related commands: tcp timer fin-timeout and tcp timer syn-timeout.

Examples

# Configure the receiving/sending buffer of TCP connection as 3 KB.

<Sysname> system-view

[Sysname] 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
新华三官网