Configuring VTP Pruning on a Catalyst 1900 Switch

To configure the switch for VTP pruning, use the following command:

1912(config)# vtp pruning

Configuring VTP on a Set/Clear CLI Switch

Before you can configure a router or internal route processor for interVLAN routing, you must enable VTP, assign a mode, and configure a domain.

1.You enable and configure VTP and VLANs on the switch in Privileged mode. To enable VTP and specify a VTP mode, use the set vtp mode {client server transparent} command, as follows:

5002> (enable) set vtp mode server VTP domain modified

2.If you set the mode to client or server, then you need to set the VTP domain name and password on the first switch. The VTP name can be up to 32 characters long. The password is a minimum of 8 characters with a maximum of 64. For our example, we set the mode to server. The following shows the available syntaxes for the set vtp domain option:

5002> (enable) set vtp domain ?

Usage: set vtp [domain <name>] [mode <mode>] [passwd <passwd>] [pruning <enabledisable>] [v2 <enabledisable>

(mode = clientservertransparent

Use passwd Ô0’ to clear vtp password) Usage: set vtp pruneeligible <vlans>

(vlans = 2..1000

An example of vlans is 2−10,1000)

You must configure a VTP domain name if you choose to configure the switch as a VTP client or server. To do so, use the set vtp domain name command, as follows:

5002> (enable) set vtp domain Coriolis VTP domain Coriolis modified

3. Set the password to “pass1” for the VTP domain with the following command:

5002> (Enable) set vtp passwd pass1

Configuring VTP on a 1900 Cisco IOS CLI Switch

The 1900 switch does not require you to set the VTP password, just the domain name. The following shows the options available for the vtp domain command:

1900EN(config)#vtp

domain ?

WORD Name of the

VTP management domain

1900EN(config)#vtp

domain Coriolis ?

client

VTP

client

pruning

VTP

pruning

server

VTP

server

transparent

VTP

transparent

trap

VTP

trap

Here is an example of setting the domain to “Coriolis” on the 1912EN:

110

Page 126
Image 126
Cisco Systems RJ-45-to-AUX Configuring VTP Pruning on a Catalyst 1900 Switch, Configuring VTP on a Set/Clear CLI Switch