VLAN.pdf
(
47 KB
)
Pobierz
Cisco − Creating Ethernet VLANs on Catalyst Switches
Table of Contents
Creating Ethernet VLANs on Catalyst Switches.............................................................................................1
Document ID: 10023
................................................................................................................................1
Introduction..........................................................................................................................................................1
Prerequisites.........................................................................................................................................................1
Requirements..........................................................................................................................................1
Components Used...................................................................................................................................2
Related Products.....................................................................................................................................2
Conventions............................................................................................................................................3
Configuring the VLAN on Catalyst Switches Running CatOS...........................................................................3
Create VLANs and Ports........................................................................................................................3
Remove Ports or VLANs........................................................................................................................6
Troubleshooting Tips..............................................................................................................................7
Configuring the VLAN on Catalyst 2900 XL, 3500 XL, 2950, 2970, and 2940 Series Switches......................8
Create VLANS and Ports........................................................................................................................8
Remove Ports or VLANS.....................................................................................................................12
Configuring Multi−VLAN Port on Catalyst 2900 XL/3500 XL.......................................................................14
Configuring the VLAN on Catalyst 3550, 3750, 4000/4500, and 6000/6500 Switches Running Integrated
Cisco IOS Software (Native Mode)...................................................................................................................17
Create VLANs and Ports......................................................................................................................17
Remove VLANs
....................................................................................................................................21
Troubleshooting Tips............................................................................................................................22
NetPro Discussion Forums − Featured Conversations......................................................................................22
Related Information...........................................................................................................................................22
i
Creating Ethernet VLANs on Catalyst Switches
Document ID: 10023
Introduction
Prerequisites
Requirements
Components Used
Related Products
Conventions
Configuring the VLAN on Catalyst Switches Running CatOS
Create VLANs and Ports
Remove Ports or VLANs
Troubleshooting Tips
Configuring the VLAN on Catalyst 2900 XL, 3500 XL, 2950, 2970, and 2940 Series
Switches
Create VLANS and Ports
Remove Ports or VLANS
Configuring Multi−VLAN Port on Catalyst 2900 XL/3500 XL
Configuring the VLAN on Catalyst 3550, 3750, 4000/4500, and 6000/6500 Switches
Running Integrated Cisco IOS Software (Native Mode)
Create VLANs and Ports
Remove VLANs
Troubleshooting Tips
NetPro Discussion Forums − Featured Conversations
Related Information
Introduction
This document provides basic information on how to create VLANs on Catalyst switches running Catalyst OS
(CatOS) and Integrated Cisco IOS® Software (Native Mode). The sample commands for each section use one
Catalyst switch from each configuration section.
Prerequisites
Requirements
Readers of this document should have knowledge of the information in this section.
VLANs are a mechanism to allow network administrators to create logical broadcast domains that can span
across a single switch or multiple switches, regardless of physical proximity. This is useful to reduce the size
of broadcast domains or to allow groups or users to be logically grouped without the need to be physically
located in the same place.
To create VLANs, you must decide how to configure these items:
•
What VLAN Trunk Protocol (VTP) domain name and VTP mode will be used on this switch?
•
What ports on the switch will belong to which VLAN?
•
Will you need to have communication between VLANs, or will they be isolated? If you require
communication between VLANs, you will need to use a Layer 3 (L3) routing device, such as an
Cisco − Creating Ethernet VLANs on Catalyst Switches
external Cisco router or an internal router module:
♦
WS−X4232−L3 card for Catalyst 4000 with Supervisor Engine I (SUPI) and SUPII
♦
Route Switch Module (RSM) or Route Switch Feature Card (RSFC) for Catalyst 5000
♦
Multilayer Switch Module (MSM) or Multilayer Switch Feature Card (MSFC) for Catalyst
6000
Some of the switches have built−in support in software and hardware to do InterVLAN routing (no
external device, modules, or daughter cards are required):
♦
Catalyst 3550/3750/6500 with SUP720
♦
Catalyst 4000/4500 with SUPII+, SUPIII, and SUPIV
For details on InterVLAN routing configuration on an MSFC, RSM, RSFC, or external router, refer to these
documents:
•
Configuring InterVLAN Routing with Catalyst 3750/3560/3550 Series Switches
•
Configuring InterVLAN Routing on the MSFC
•
Configuring InterVLAN Routing on the RSM
•
Configuring InterVLAN Routing on the RSFC
•
Configuring InterVLAN Routing on an External Cisco Router
•
Configuring InterVLAN Routing Using an Internal Router (Layer 3 Card) on Catalyst 5500/5000 and
6500/6000 Switches That Run CatOS System Software
•
Configuring InterVLAN Routing and ISL/802.1Q Trunking on a Catalyst 2900 XL/3500 XL/2950
Switch Using An External Router
Note:
This document assumes that you have basic connectivity to the switch, either through the console or
through Telnet access. For details on how to get basic connectivity to the switches, refer to these documents:
•
Catalyst 6000 family switchesBasic Software Configuration
•
XL series switchesQuick Start Guide
Components Used
The information in this document is based on these hardware and software versions:
•
Catalyst 6009 switch running Catalyst OS 5.5(x) software
•
Catalyst 3524XL switch running Cisco IOS Software Release 12.0(5.x)XU
•
Catalyst 4507 switch with SUPIV (WS−X4515) running Cisco IOS Software Release 12.1(13)EW1
The information in this document was created from the devices in a specific lab environment. All of the
devices used in this document started with a cleared (default) configuration. If your network is live, make sure
that you understand the potential impact of any command.
Related Products
The information in this document can also be used with the these switches:
•
Catalyst 4000/4500/2948G/2980G/4912G switches
•
Catalyst 5000/2926G family switches
•
Catalyst 6000/6500 family switches
•
Catalyst 2900 XL/3500 XL/2950/3550/3750 switches
Cisco − Creating Ethernet VLANs on Catalyst Switches
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Configuring the VLAN on Catalyst Switches Running
CatOS
Create VLANs and Ports
Follow these steps:
1. Before you can create a VLAN, the switch must be in VTP server mode or VTP transparent mode. If
the switch is a VTP server, you must define a VTP domain name before you can add any VLANs.
This must be defined, regardless of the number of switches in the network (one or many) and
regardless of whether you will use VTP to propagate VLANs to other switches in the network.
This is the default VTP configuration on the switch:
CatosSwitch> (enable)
show vtp domain
Domain Name
Domain Index VTP Version Local Mode Password
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−
1
2
server
−
Vlan−count Max−vlan−storage Config Revision Notifications
−−−−−−−−−− −−−−−−−−−−−−−−−− −−−−−−−−−−−−−−− −−−−−−−−−−−−−
5
1023
0
disabled
Last Updater
V2 Mode Pruning PruneEligible on Vlans
−−−−−−−−−−−−−−− −−−−−−−− −−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−
0.0.0.0
disabled disabled 2−1000
Issue the
set vtp
command, to set the domain name and mode.
CatosSwitch> (enable)
set vtp domain ?
<name>
Domain name
CatosSwitch> (enable)
set vtp domain cisco ?
mode
passwd
pruning
v2
Set
Set
Set
Set
VTP
VTP
VTP
VTP
mode
password
pruning
version 2
CatosSwitch> (enable)
set vtp domain cisco mode ?
client
server
transparent
VTP client mode
VTP server mode
VTP transparent mode
CatosSwitch> (enable)
set vtp domain cisco mode server
VTP domain cisco modified
Note:
For details on VTP, refer to Understanding and Configuring VLAN Trunk Protocol (VTP).
Cisco − Creating Ethernet VLANs on Catalyst Switches
2. Issue the
show vtp domain
command, to verify VTP configuration.
CatosSwitch> (enable)
show vtp domain
Domain Name
Domain Index VTP Version Local Mode Password
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−− −−−−−−−−−−
cisco
1
2
server
−
Vlan−count Max−vlan−storage Config Revision Notifications
−−−−−−−−−− −−−−−−−−−−−−−−−− −−−−−−−−−−−−−−− −−−−−−−−−−−−−
5
1023
1
disabled
Last Updater
V2 Mode Pruning PruneEligible on Vlans
−−−−−−−−−−−−−−− −−−−−−−− −−−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−−
0.0.0.0
disabled disabled 2−1000
Note:
If you have the output of a
show vtp domain
command from your Cisco device, you can use
Output Interpreter (
registered customers only
) to display potential issues and fixes.
3. Once the VTP domain has been set and verified, you can begin to create VLANs on the switch.
By default, there is only a single VLAN for all ports, and this VLAN is called
default.
VLAN 1
can not be renamed or deleted.
Issue the
show vlan
command, to display the parameters for all configured VLANs in the
administrative domain.
CatosSwitch> (enable)
show vlan
VLAN Name
Status
IfIndex Mod/Ports, Vlans
−−−− −−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−− −−−−−−−−− −−−−−−− −−−−−−−−−−−−−−−−−−−−−−−−
1
default
active
5
1/1−2
3/1−48
4/1−16
1002 fddi−default
active
6
1003 token−ring−default
active
9
1004 fddinet−default
active
7
1005 trnet−default
active
8
VLAN
−−−−
1
1002
1003
1004
1005
VLAN
−−−−
1
1002
1003
1004
1005
Type
−−−−−
enet
fddi
trcrf
fdnet
trbrf
SAID
−−−−−−−−−−
100001
101002
101003
101004
101005
MTU
−−−−−
1500
1500
1500
1500
1500
Parent
−−−−−−
−
−
−
−
−
RingNo
−−−−−−
−
−
−
−
−
BrdgNo
−−−−−−
−
−
−
−
−
Stp
−−−−
−
−
−
−
ibm
BrdgMode
−−−−−−−−
−
−
−
−
−
Trans1
−−−−−−
0
0
0
0
0
Trans2
−−−−−−
0
0
0
0
0
DynCreated
−−−−−−−−−−
static
static
static
static
static
RSPAN
−−−−−−−−
disabled
disabled
disabled
disabled
disabled
VLAN AREHops STEHops Backup CRF 1q VLAN
−−−− −−−−−−− −−−−−−− −−−−−−−−−− −−−−−−−
1003 7
7
off
a. Issue the
set vlan
command, to create VLANs.
CatosSwitch> (enable)
set vlan
Cisco − Creating Ethernet VLANs on Catalyst Switches
Plik z chomika:
musli_com
Inne pliki z tego folderu:
Catalyst_3560_Switcht_SCGuide.pdf
(11346 KB)
Catalyst 3550 Multilayer Switch Software Configuration Guide, Rel. 12.2_25SEE.pdf
(11400 KB)
Hardware Installation Guide.pdf
(3275 KB)
Catalyst 3550 Multilayer Switch Hardware Installation Guide.pdf
(2722 KB)
Clustering.pdf
(515 KB)
Inne foldery tego chomika:
17xx
28xx
2950
3560_Switch
500_switch
Zgłoś jeśli
naruszono regulamin