Configuring TCP Attributes 129
[SwitchA] interface vlan-interface 3
[SwitchA-Vlan-interface3] ip address 1.1.1.2 24
[SwitchA-Vlan-interface3] quit
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 2.2.2.2 24
# Enable VLAN-interface 2 to forward directed broadcasts.
[SwitchA-Vlan-interface2] ip forward-broadcast
■ Configure Switch B
# Enable Switch B to receive directed broadcasts.
<SwitchB> system-view
[SwitchB] ip forward-broadcast
# Configure a static route to the host.
[SwitchB] ip route-static 1.1.1.1 24 2.2.2.2
# Configure an IP address for VLAN-interface 2.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 2.2.2.1 24
After the above configurations, if you ping the subnet broadcast address
(2.2.2.255) of VLAN-interface 2 of Switch A on the host, the ping packets can be
received by VLAN-interface 2 of Switch B. However, if you disable the ip
forward-broadcast command, the ping packets can not be received by the
VLAN-interface 2 of Switch B.
Configuring TCP
Attributes
Configuring TCP
Optional Parameters
TCP optional parameters that can be configured include:
■ synwait timer: When sending a SYN packet, TCP starts the synwait timer. If no
response packets are received within the synwait timer timeout, the TCP
connection is not successfully created.
■ finwait timer: When the TCP connection is in FIN_WAIT_2 state, finwait timer
will be started. If no FIN packets are received within the timer timeout, the TCP
connection will be terminated. If FIN packets are received, the TCP connection
state changes to TIME_WAIT. If non-FIN packets are received, the system
restarts the timer from receiving the last non-FIN packet. The connection is
broken after the timer expires.
■ Size of TCP receive/send buffer
Follow these steps to configure TCP optional parameters:
To do… Use the command… Remarks
Enter system view system-view -