The interface vlanif command creates a VLANIF interface and displays the VLANIF interface view.
The undo interface vlanif command deletes a VLANIF interface.
By default, VLANIF interfaces are not created.
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the ID of the VLAN that a VLANIF interface belongs to. |
The value is an integer that ranges from 1 to 4094. The number of VLANIF interfaces varies according to the product type.
|
Usage Scenario
When a device needs to communicate with devices at the network layer, you can create a logical interface based on a VLAN on the device, namely, a VLANIF interface. A VLANIF interface is a network layer interface and can be configured with an IP address. The device then users the VLANIF interface to communicate with devices at the network layer.
Follow-up Procedure
Run the ip address to assign an IP address to the VLANIF interface.
Precautions
After a VLANIF interface is configured, the corresponding VLAN cannot be configured as a VLAN for Dot1q termination sub-interfaces or an outer VLAN for QinQ termination sub-interfaces.