To do...
3.
Assign an IP address to the
VLAN interface
4.
Configure the description of
the VLAN interface
5.
Bring up the VLAN
interface
Before creating a VLAN interface for a VLAN, create the VLAN first.
Port-based VLAN configuration
Introduction to port-based VLAN
Port-based VLANs group VLAN members by port. A port forwards traffic for a VLAN only after it is
assigned to the VLAN.
Port link type
Configure the link type of a port as access, trunk, or hybrid. The link types use the following VLAN tag
handling methods:
An access port belongs to only one VLAN and sends traffic untagged. It is usually used to connect a
•
terminal device unable to recognize VLAN tagged-packets or when there is no need to separate
different VLAN members.
A trunk port can carry multiple VLANs to receive and send traffic for them. Except traffic of the
•
default VLAN, traffic sent through a trunk port will be VLAN tagged. Usually, ports connecting
network devices are configured as trunk ports.
Like a trunk port, a hybrid port can carry multiple VLANs to receive and send traffic for them. Unlike
•
a trunk port, a hybrid port allows traffic of all VLANs to pass through VLAN untagged. You can
configure a port connected to a network device or user terminal as a hybrid port.
Default VLAN
By default, VLAN 1 is the default VLAN for all ports. Configure the default VLAN for a port as required.
Use the following guidelines when configuring the default VLAN on a port:
Because an access port can join only one VLAN, its default VLAN is the VLAN to which it belongs
•
and cannot be configured.
Use the command...
ip address ip-address { mask |
mask-length } [ sub ]
description text
undo shutdown
107
Remarks
Optional.
No IP address is assigned to any VLAN
interface by default.
Optional.
VLAN interface name is used by
default, for example, Vlan-interface1
Interface.
Optional.
By default, a VLAN interface is in the
up state. The VLAN interface is up so
long as one port in the VLAN is up and
goes down if all ports in the VLAN go
down.
An administratively shut down VLAN
interface however will be in the down
state until you bring it up, regardless of
how the state of the ports in the VLAN
changes.