Port-Based VLAN
Configuration
Introduction to
Port-Based VLAN
To do...
Configure an IP address for
the VLAN interface
Specify the descriptive string
for the VLAN interface
Bring up the VLAN interface
n
Before creating a VLAN interface, ensure that the corresponding VLAN already
exists. Otherwise, the specified VLAN interface will not be created.
This is the simplest and yet the most effective way of classifying VLANs. It groups
VLAN members by port. After added to a VLAN, a port can forward the packets of
the VLAN.
Port link type
Based on the tag handling mode, a port's link type can be one of the following
three:
Access port: the port only belongs to one VLAN, normally used to connect user
■
device;
Trunk port: the port can belong to multiple VLANs, can receive/send packets for
■
multiple VLANs, normally used to connect network devices;
Hybrid port: the port can belong to multiple VLANs, can receive or send
■
packets for multiple VLANs, used to connect either user or network devices;
The differences between Hybrid and Trunk port:
A Hybrid port allows packets of multiple VLANs to be sent without the Tag
■
label;
A Trunk port only allows packets from the default VLAN to be sent without the
■
Tag label.
Port-Based VLAN Configuration
Use the command...
ip address ip-address { mask |
mask-length } [ sub ]
description text
undo shutdown
87
Remarks
Optional
Not configured by default
Optional
VLAN interface name is used
by default, for example,
"Vlan-interface1 Interface".
Optional
By default, a VLAN interface is
up. The state of a VLAN
interface also depends on the
states of the ports in the
VLAN. If all the ports in the
VLAN are down, the VLAN
interface is down; if one or
more ports in the VLAN are
up, the VLAN interface is up.
If a VLAN interface is manually
shut down, the VLAN
interface is always down
regardless of the states of
ports in the VLAN.