Configuration example
Network requirements
As shown in
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 52 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.
Figure
52, the default gateway of the host is the IP address 1.1.1.2/24 of VLAN-interface 3
Command
system-view
interface interface-type
interface-number
121
Remarks
N/A
N/A