R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101

24
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 0/0.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/0
[Sysname-GigabitEthernet0/0] tcp mss 300
tcp state
Syntax
tcp state { closing | established | fin-wait-1 | fin-wait-2 | last-ack | syn-received } connection-number
number
undo tcp state { closing | established | fin-wait-1 | fin-wait-2 | last-ack | syn-received }
connection-number
View
System view
Default level
2: System level
Parameters
closing: CLOSING state of a TCP connection.
established: ESTABLISHED state of a TCP connection.
fin-wait-1: FIN_WAIT_1 state of a TCP connection.
fin-wait-2: FIN_WAIT_2 state of a TCP connection.