Beruflich Dokumente
Kultur Dokumente
VLAN Facts
Using VLANs lets you assign devices on different switch ports to different logical (or virtual)
LANs. Although each switch can be connected to multiple VLANs, each switch port can be
assigned to only one VLAN at a time. The following graphic shows a single-switch VLAN
configuration.
Mc ½n the graphic above, FastEthernet ports 0/1 and 0/2 are members of VLAN 1.
FastEthernet ports 0/3 and 0/4 are members of VLAN 2.
Mc ½n the graphic above, workstations in VLAN 1 willc cbe able to communicate with
workstations in VLAN 2, even though they are connected to the same physical switch.
Mc efining VLANs creates additional broadcast domains. The above example has two
broadcast domains, each of which corresponds to one of the VLANs.
Mc {y default, switches come configured with several default VLANs:
c VLAN 1
c VLAN 1002
c VLAN 1003
c VLAN 1004
c VLAN 1005
Mc {y default, all ports are members of VLAN 1.
]reating VLANs with switches offers the following administrative benefits.
Mc Vou can create virtual LANs based on criteria other than physical location (such as
workgroup, protocol, or service)
Mc Vou can simplify device moves (devices are moved to new VLANs by modifying the
port assignment)
Mc Vou can control broadcast traffic and create collision domains based on logical criteria
Mc Vou can control security (isolate traffic within a VLAN)
Mc Vou can load-balance network traffic (divide traffic logically rather than physically)
Note: VLANs are commonly used with Voice over ½ (Vo½ ) to distinguish voice traffic from
data traffic. Traffic on the voice VLAN can be given a higher priority to ensure timely delivery.
]reating VLANs with switches offers the following benefits over using routers to create distinct
networks.
A disadvantage of using switches to create VLANs is that you might be tied to a specific vendor.
etails of how VLANs are created and identified can vary from vendor to vendor. ]reating a
VLAN might mean you must use only that vendor's switches throughout the network. When
using multiple vendors in a switched network, be sure each switch supports the 802.1q standards
if you want to implement VLANs.
c c
VLAN Command List
To configure a simple VLAN, first create the VLAN, and then assign ports to that VLAN. The
following table shows common VLAN configuration commands.
cc c
cc c
cc
cc cc
cc
c
c cc m
c
c
c
c ccc
c
c c
c
cc
c
c
c
c
c c
Ô ample
The following commands create VLAN 12 named ½ VLAN, identifies port 0/12 as having only
workstations attached to it, and assigns the port to VLAN 12.
m
m
!
m
"#$%&'(
m
m)!
m
m
mm
!
c c
nking Facts
Mc ½n the above graphic, each switch has two VLANs. One port on each switch has been
assigned to each VLAN.
Mc Workstations in VLAN 1 can only communicate with workstations in VLAN 1. This
means that the two workstations connected to the same switch cannot communicate with
each other. ]ommunications within the VLAN must pass through the trunk link to the
other switch.
Mc Trunk ports identify which ports are connected to other switches.
Mc Trunk ports can automatically carry traffic for all VLANs defined on the switch. Vou can
prevent traffic from a specific VLAN from being carried on the trunk through a specific
configuration.
Mc Typically, Gigabit Ethernet ports are used for trunk ports, although any port can be a
trunking port.
When trunking is used, frames that are sent over a trunk port are tagged with the VLAN ½
number so that the receiving switch knows to which VLAN the frame belongs.
Mc Tags are appended by the first switch in the path, and removed by the last.
Mc Only VLAN-capable devices understand the frame tag.
Mc Tags must be removed before a frame is forwarded to a non-VLAN-capable device.
The trunking protocol describes the format that switches use for tagging frames with the VLAN
½. ]isco devices support two trunking protocols:
nking
Cha acte istics
P otocol
Mc A ]isco-proprietary trunking protocol.
Mc ½L can only be used between ]isco devices.
½nter-witch Link
Mc ½L tags each frame with the VLAN ½.
(½L)
Mc ]atalyst 2960 switches do csupport ½L.
]isco switches have the ability to automatically detect ports that are trunk ports, and to negotiate
the trunking protocol used between devices. witches use the ynamic Trunking rotocol (T )
to detect and configure trunk ports. For example, when you connect two switches together, they
will automatically recognize each other and select the trunking protocol to use.
c c
nking Command List
The following table lists important commands for configuring and monitoring trunking on a switch.
Command Fnction
Mc Enables trunking on the interface.
#
m *+ Mc The port will cuse T on the interface.
#
m
mm isables trunking configuration on the port.
hows interface trunking information with the following:
Mc ode
#
m
*+
#
m
)*+ Mc Encapsulation
Mc Trunking status
Mc VLAN assignments
Note: Two switches both configured to use desi able dynamic trunking will not trunk. At least
one of the switches must be set to manually trunk or to use ato dynamic trunking.
VP Facts
The VLAN Trunking rotocol (VT ) simplifies VLAN configuration on a multi-switch network
by propagating configuration changes to other switches. With the VT , switches are placed in
one of the following three configuration modes.
A switch in transparent mode allows for local configuration of VLANs, but does not
update its configuration based on the configuration of other switches. On a
transparent switch:
c c
VP Config ation Facts
Use... To...
#
]onfigure the VT mode of the switch.
m..
m
The default mode is se e .
]onfigure VT domain of the switch.
The default domain name is <null> (blank).
All switches must be configured with the same domain
name.
#
A new VT client switch (with a blank domain name)
will automatically set its domain name based on the
first VT advertisement it receives.
A switch in transparent mode will automatically set
its domain name.
]onfigure VT password of the switch.
When a password is used, all switches in the same
#
mm domain must use the same password.
Vou must manually configure the VT password on
each switch.
§educe broadcast traffic by forwarding the messages
only through switch trunks which belong to a particular
#
* VLAN ½.
Enabling or disabling VT pruning on a server enables
or disables it on all devices in the domain.
#
m m
*m View the current VT configuration of the switch.
#
m
mm View the current VT password of the switch.
Mc ½f you add a switch to the network with a higher revision number, the VLAN
configuration on that switch will update (modify) the existing VLAN configuration on all
other switches in the domain. This is true 2 2 cc2c
cc
ccc
2 . ]lient
switches pass their configuration information on to other switches. This information can
be used to update server or client switches with lower revision numbers.
Mc ½f you add a switch to the network with a lower revision number, the switch's
configuration will be modified to match the configuration currently used on the network.
This is true 2 2 cc2c
cc
ccc2 2 .
Mc To prevent disruptions to the existing configuration when adding new switches, reset the
revision number on all new switches before adding them to the network. The revision
number resets to 0 each time you:
c ]hange the domain name.
c ]hange the VT mode to transparent.
{efore adding a switch back into the network, change the domain name or the mode to
transparent, then change it back to its original setting.
Mc {e sure to place switches in the same domain adjacent to each other through trunk links.
½f you insert a switch with a different domain name between two switches, VT
information will not be passed through the new switch. To correct this problem, use one
of the following solutions:
c odify the domain name on the new switch to match the existing switches.
c ove the new switch so that switches in the same domain are connected directly
together.
Note: Once set, you cannot completely remove a domain name. ½n other words, once you
have configured a VT domain name, you can only change the name, you cannot remove
it completely.