Figure 49 Network diagram
Configuration procedure
# Specify an IP address for VLAN-interface 3.
<Switch> system-view
[Switch] interface vlan-interface 3
[Switch-Vlan-interface3] ip address 1.1.1.2 24
[Switch-Vlan-interface3] quit
# Specify an IP address for VLAN-interface 2, and enable VLAN-interface 2 to forward directed
broadcasts destined for the directly connected network.
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ip address 2.2.2.2 24
[Switch-Vlan-interface2] ip forward-broadcast
Configuring MTU for an interface
When a packet exceeds the MTU of the output interface, the device processes it in one of the following
ways:
If the packet disallows fragmentation, the device discards it.
•
If the packet allows fragmentation, the device fragments it and forwards the fragments.
•
Fragmentation and reassembling consume system resources, so set an appropriate MTU for an interface
based on the network environment to avoid fragmentation.
To configure an MTU for an interface:
Step
1.
Enter system view.
2.
Enter interface view.
3.
Configure an MTU for the
interface.
Configuring TCP MSS for an interface
The maximum segment size (MSS) option informs the receiver of the largest segment that the sender can
accept. Each end announces its MSS during TCP connection establishment. If the size of a TCP segment
Command
system-view
interface interface-type
interface-number
ip mtu mtu-size
108
Remarks
N/A
N/A
By default, no MTU is configured.
The MTU configured for an
interface takes effect on only
packets that are sent to the CPU
for software forwarding,
including packets sent from or
destined for this interface.