Configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5560 Series Switches User Manual
Page 141: Configuring mtu for an interface

126
Configuration example
Network requirements
As shown in
, the default gateway of the host is the IP address 1.1.1.2/24 of VLAN-interface 3
of the switch.
Enable VLAN-interface 2 to forward directed broadcasts destined for the directly connected network so
the server can receive directed broadcasts from the host to IP address 2.2.2.255.
Figure 51 Network diagram
Configuration procedure
# Specify an IP address for VLAN-interface 3.
[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 Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A