0% found this document useful (0 votes)
86 views6 pages

Catalyst Switch How To Make Vlans

The document discusses configuring VLANs on a switch. It describes setting the switch as a VTP server, client, or transparent mode. As a server, it advertises VLAN configurations to other switches. As a client, it synchronizes its VLAN configuration from the server. As transparent, it ignores VTP updates. The document also explains creating VLANs, assigning switch ports to VLANs, and verifying the VLAN and port configurations.

Uploaded by

Aileen Crawford
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views6 pages

Catalyst Switch How To Make Vlans

The document discusses configuring VLANs on a switch. It describes setting the switch as a VTP server, client, or transparent mode. As a server, it advertises VLAN configurations to other switches. As a client, it synchronizes its VLAN configuration from the server. As transparent, it ignores VTP updates. The document also explains creating VLANs, assigning switch ports to VLANs, and verifying the VLAN and port configurations.

Uploaded by

Aileen Crawford
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

C H A P T E R

Configuring VLANs
To configure VLANs on the switch, perform these tasks:
Step 1 Step 2

Configuring VLAN Trunking ProtocolCreate a VLAN Trunking Protocol (VTP) domain and set the VTP mode on the switch. Configuring VLANsCreate VLANs in the VTP domain and assign switch ports to those VLANs.

Configuring VLAN Trunking Protocol


VTP propagates information about the VLAN configuration throughout the switched network.
Note

VTP only exchanges VLAN information over VLAN trunk links. For information on configuring trunk links, see Chapter 3, Configuring EtherChannel and VLAN Trunks. The switch can operate in any one of these three VTP modes:

ServerVTP servers advertise their VLAN configuration to other switches in the same VTP domain and synchronize their VLAN configuration with other switches based on advertisements received over trunk links. The VTP server is the default mode. ClientVTP clients are similar to VTP servers, except that you cannot create, change, or delete VLANs on a VTP client. TransparentVTP transparent switches do not participate in VTP. A VTP transparent switch does not advertise its VLAN configuration and does not synchronize its VLAN configuration based on received advertisements.

Note

Before you configure VLANs on the switch, you should decide whether to use VTP. If you decide to use VTP, you need to decide whether the switch should function as a VTP client or a VTP server. If you are connecting the switch to an existing network, make sure that your VTP configuration is compatible with the rest of the network.

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G OL-4668-01

2-1

Chapter 2 Configuring VLAN Trunking Protocol

Configuring VLANs

Configure the Switch as a VTP Server


When you configure a switch as a VTP server, you must define a VTP domain before you can create VLANs. To configure a switch as a VTP server, perform this task in privileged mode: Task
Step 1 Step 2 Step 3

Command

Assign a name to the VTP management set vtp domain name domain. Set the VTP mode. Verify the VTP configuration. set vtp mode server show vtp domain

This example shows how to configure a switch as a VTP server:


Console> (enable) set vtp domain BigCorp VTP domain BigCorp modified Console> (enable) set vtp mode server VTP domain BigCorp modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------BigCorp 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 Console> (enable)

Configure the Switch as a VTP Client


When you configure a switch as a VTP client, you cannot configure VLANs on the switch; instead, you configure VLANs on a VTP server in the same VTP domain as the client. The VTP client synchronizes its VLAN configuration to the configuration of the server. To configure a switch as a VTP client, perform this task in privileged mode: Task
Step 1 Step 2 Step 3

Command

Assign a name to the VTP management set vtp domain name domain. Set the VTP mode. set vtp mode client Verify the VTP configuration. (It might show vtp domain take a few minutes before a VTP client learns the VTP and VLAN configuration information from neighboring switches.)

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G

2-2

OL-4668-01

Chapter 2

Configuring VLANs Configuring VLANs

This example shows how to configure a switch as a VTP client:


Console> (enable) set vtp domain BigCorp VTP domain BigCorp modified Console> (enable) set vtp mode client VTP domain BigCorp modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------BigCorp 1 2 client 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 Console> (enable)

Configure the Switch as VTP Transparent


When you configure a switch as VTP transparent, you must configure VLAN information manually on the switch. A VTP-transparent switch does not advertise its VLAN configuration information to other switches and will ignore VTP updates from VTP clients and servers. To configure a switch for VTP transparent mode, perform this task in privileged mode: Task
Step 1 Step 2

Command set vtp mode transparent show vtp domain

Set the VTP mode. Verify the VTP configuration.

This example shows how to configure a switch as VTP transparent:


Console> (enable) set vtp mode transparent VTP domain modified Console> (enable) show vtp domain Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------1 2 Transparent 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 Console> (enable)

Configuring VLANs
When you configure the switch for VTP, you can create, modify, and delete VLANs on the switch (unless you configured the switch as a VTP client). When you configure a VLAN on a VTP server, the configuration information is distributed to switches throughout the VTP domain.

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G OL-4668-01

2-3

Chapter 2 Configuring VLANs

Configuring VLANs

VTP clients and servers in the same domain update their VLAN configuration based on the advertised configuration. VTP transparent switches do not act on VTP updates; you must manually make changes to the VLAN configuration on such switches. Typically, in an IP network, each VLAN is associated with a single IP subnetwork. That is, all of the hosts in a given VLAN belong to a single subnet, use the same subnet mask, and use one or more default gateways that are connected to that subnetwork. Stations in different VLANs cannot communicate with one another without a router configured to route between the different VLANs. The supervisor engine software supports many VLAN types. This section describes only how to configure Ethernet VLANs. For information about configuring other types of VLANs, refer to the Software Configuration Guide for your switch.

Create VLANs
To configure an Ethernet VLAN in a VTP domain, perform this task in privileged mode: Task
Step 1

Command set vlan vlan_num [name name]

Create a VLAN by assigning it a VLAN number and, if desired, a VLAN name. Verify the VLAN configuration.

Step 2

show vlan vlan_num

This example shows how to create a VLAN and verify the VLAN configuration:
Console> (enable) set vlan 10 name Corporate Vlan 10 configuration successful Console> (enable) show vlan 10 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------10 Corporate active 103

VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ -----10 enet 100010 1500 0 0

VLAN DynCreated ---- ---------10 static

VLAN AREHops STEHops Backup CRF 1q VLAN ---- ------- ------- ---------- ------Console> (enable)

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G

2-4

OL-4668-01

Chapter 2

Configuring VLANs Configuring VLANs

Assign Switch Ports to VLANs


After you create a VLAN, you can assign one or more switch ports to the VLAN. Devices that are connected to those ports will belong to that VLAN. Make sure that the connected device is properly configured with an IP address, subnet mask, and default gateway in the subnet that is associated with the VLAN. To add a switch port to a VLAN, perform this task in privileged mode: Task
Step 1 Step 2 Step 3

Command set vlan vlan_num mod_num/port_num show vlan vlan_num show port [mod_num/port_num]

Add one or more switch ports to a VLAN. Verify that the ports are properly assigned to the VLAN. Check to which VLAN a particular port belongs.

This example shows how to assign ports to a VLAN and verify to which VLAN the ports belong:
Console> (enable) set vlan 10 3/1-2 VLAN 10 modified. VLAN 1 modified. VLAN Mod/Ports ---- ----------------------10 3/1-2 Console> (enable) show vlan 10 VLAN Name Status IfIndex Mod/Ports, Vlans ---- -------------------------------- --------- ------- -----------------------10 Corporate active 103 3/1-2 <... output truncated ...> Console> (enable) show port 3 Port Name Status ----- ------------------ ---------3/1 connected 3/2 connected <... output truncated ...> Console> (enable)

Vlan ---------10 10

Level Duplex Speed Type ------ ------ ----- -----------normal full 1000 1000BaseSX normal full 1000 1000BaseSX

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G OL-4668-01

2-5

Chapter 2 Configuring VLANs

Configuring VLANs

Quick Software Configuration GuideCatalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, Catalyst 2980G

2-6

OL-4668-01

You might also like