Configure Basic Functions of VLAN Interface
Configuration Condition
No
Configure VLAN Interface
Table 4-2 Configure VLAN interface
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Create VLAN interface
|
interface vlan vlan-id
|
Mandatory
By default, do not create VLAN interface.
|
-
VLAN interface is one logical interface. To work normally, you need to create the corresponding VLAN and add the physical port to VLAN. For how to create VLAN and add physical port to VLAN, refer to the VLAN chapter of the configuration manual.
- There is no order requirement for creating VLAN interface, creating VLAN and adding physical port to VLAN.
Configure Interface Logical Bandwidth
The logical bandwidth of the interface affects the calculation of the route cost and QoS, but does not affect the physical bandwidth of the interface. Usually, when the interface is connected to WAN, it is suggested that the logical bandwidth of the user configuration interface is consistent with the actual bandwidth of the leased line.
Table 4-3 Configure interface logical bandwidth
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the interface configuration mode
|
interface vlan vlan-id
|
-
|
Configure the logical bandwidth of VLAN interface
|
bandwidth width-value
|
Optional
By default, the logical bandwidth of the VLAN interface is 100,000 Kbps.
|
Configure Interface Delay
The interface delay configuration affects the calculation of the routing protocol cost, but does not affect the actual transmission delay of the interface. The user can change the cost of the routing protocol by configuring the interface delay.
Table 4-4 Configure interface delay
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the interface configuration mode
|
interface vlan vlan-id
|
-
|
Configure VLAN interface delay
|
delay delay-time
|
Optional
By default, the delay of the VLAN interface is 10 and the unit is 10 microsecond.
|
Configure Interface MTU
The interface MTU decides the maximum length of the IP fragment packet and the user can configure manually.
Table 4-5 Configure interface MTU
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the interface configuration mode
|
interface vlan vlan-id
|
-
|
Configure VLAN interface MTU
|
mtu mtu-size
|
Mandatory
By default, the VLAN interface MTU is 1500 bytes.
|
Configure Interface Protocol Delay UP
The UP and DOWN of the interface can be divided into link UP/DOWN and protocol UP/DOWN. When the link is up, the system notifies the upper protocol module through the protocol up to start sending and receiving packets.
In some cases (such as device restarting or board resetting), when the link state of the interface changes from DOWN to UP, the upper protocol module may not be ready to process packets temporarily. In this case, the interface protocol delay UP can be configured, and the interface delays a certain time to notify the protocol UP.
Table 4-6 Configure interface protocol delay UP
Step
|
Command
|
Description
|
Enter the global configuration mode
|
configure terminal
|
-
|
Enter the interface configuration mode
|
interface vlan vlan-id
|
-
|
Configure the protocol delay UP of the VLAN interface
|
protocol up-delay-time delay-seconds
|
Mandatory
By default, the delay up time of the VLAN interface protocol is 0.
|