Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco Switching Black Book - Sean Odom, Hanson Nottingham.pdf
Скачиваний:
87
Добавлен:
24.05.2014
Размер:
2.89 Mб
Скачать

1900EN(config)#vtp domain Coriolis 1900EN(config)#

To set a VTP domain password on a 1900EN to “pass1” use the following command:

1900EN(config)# vtp password pass1 1900EN(config)#

Verifying the VTP Configuration on a Set/Clear CLI

To verify the VTP domain information, use the command show vtp domain. This command will show you the domain name, mode, and pruning information:

5002> (enable) show vtp domain

Domain Name

 

Domain Index

 

VTP Version Local Mode

Password

———————————————

————————————

————————— ———————— —————————

Coriolis

 

1

 

2

server

Vlan−count

Max−vlan−storage

Config

Revision Notifications

 

——————————

————————————————

——————————————— ——————————————

 

2

1023

 

1

 

disabled

 

Last Updater V2 Mode Pruning PruneEligible on Vlans

———————————— ———————— ——————— ———————————————————————

130.10.10.14 enabled disabled 2−1000 Console> (enable)

Warning

You cannot use the show vtp domain command on a 1900. You should use the show vtp

 

statistics command instead.

Displaying VTP Statistics

The show vtp statistics command shows a summary of the VTP advertisement messages that have been sent and received, as well as errors. The command is the same on the Set/Clear and Cisco CLI switches.

5002> (enable) show vtp statistics

 

VTP statistics:

 

 

 

summary advts received

 

0

 

subset advts received

 

0

 

request advts received

 

0

 

summary advts transmitted

 

5

 

subset advts transmitted

 

2

 

request advts transmitted

 

0

 

No of config revision errors

0

 

No of config digest errors

0

 

VTP pruning statistics:

 

 

 

Trunk

Join Transmitted Join Received Summary advts received from

 

 

 

non−pruning−capable device

———————

————————————————

————————————— ——————————————————————————

2/12

0

0

0

 

5000> (enable)

 

 

 

1912EN#sh vtp stat

 

 

 

 

Receive Statistics

Transmit Statistics

————————————————————————————

—————————————————————————————

Summary Adverts

0

Summary Adverts

0

Subset Adverts

0

Subset Adverts

0

Advert Requests

0

Advert Requests

56

Configuration Errors:

 

 

 

Revision Errors

0

 

 

111

Digest Errors

0

 

VTP Pruning Statistics:

 

Port Join Received

Join Transmitted Summary Adverts

received

 

with no pruning

support

————————————————— ———————————————— ———————————————————————

A

0

0

0

B

0

0

0

1912#

 

 

 

Configuring VTP Pruning on a Set/Clear CLI Switch

Enabling pruning on a VTP server enables pruning for the entire domain, which is by default VLANs 2 through 1005. VLAN 1 can never prune.

Before you can set a VLAN to be eligible for VTP pruning, you should go to the switch to see what the available syntaxes are for the command:

5002> (enable) set vtp pruneeligible ?

Usage: set vtp [domain <name>] [mode <mode>] [passwd <passwd>] [pruning <enable|disable>] [v2 <enable|disable>

(mode = client|server|transparent Use passwd '0’ to clear vtp password) Usage: set vtp pruneeligible <vlans>

(vlans = 2..1000 An example of vlans is 2−10,1000)

Now, let’s set VLAN 2 to become eligible for VTP pruning so switches that do not use VLAN 2 will not receive VLAN 2’s broadcast traffic on their trunk links:

5002> (enable) set vtp pruneeligible 2

Vlans 2−1000 eligible for pruning on this device. VTP domain Coriolis modified.

Disabling Pruning for Unwanted VLANs

To disable pruning for VLANs that are not used or that you do not wish to prune, use the following command:

5002> (enable) clear vtp pruneeligible 3−1005 Vlans 1,3−1005 will not be pruned on this device. VTP domain Globalnet modified.

5002> (enable)

Configuring IP InterVLAN Routing on an External Cisco Router

In order to understand this section, you should be familiar with Cisco IOS software running on Cisco routers. In this demonstration, we will configure a Cisco 7505:

1.To enable IP routing on the router, enter Global Configuration mode and use the ip routing command:

7505#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. 7505 (config)#ip routing

112

2.Specify an IP routing protocol such as Open Shortest Path First (OSPF), Routing Information Protocol (RIP), Internet Gateway Routing Protocol (IGRP), or Enhanced IGRP (EIGRP) and identify the network:

Cisco7505(config)#router rip

Cisco7505(config−router)#network 192.1.0.0

3.Create a subinterface on a physical interface in Interface Configuration mode for the port connected to the switch:

7505(config−router)#interface fastethernet2/0.100

4. Specify the encapsulation type and VLAN number to use on the subinterface:

7505(config−subif)#encapsulation isl 100

5. Assign an IP address and subnet mask to the subinterface:

7505(config−subif)#ip address 192.1.1.1 255.255.255.0

6.To configure any other interfaces, repeat Steps 3 through 5 for each VLAN between the switches that you want to route traffic:

7505(config−router)#interface fastethernet2/0.200 7505(config−subif)#encapsulation isl 200 7505(config−subif)#ip address 192.1.2.3 255.255.255.0

Configuring IPX InterVLAN Routing on an External Router

In order to understand this section, you should be familiar with Cisco IOS software running on Cisco routers. In this demonstration, we will configure a Cisco 7505:

1.To enable IP routing on the router, enter Global Configuration mode and use the ipx routing command:

7505#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. 7505(config)#ipx routing

2. Specify an IPX routing protocol, such as RIP, and identify all the networks:

Cisco7505(config)#ipx router rip

Cisco7505(config−router)#network all

3.Create a subinterface on a physical interface in Interface Configuration mode for the port connected to the switch:

7505(config−router)#interface fastethernet2/0.1

4. You must specify the encapsulation type and VLAN number to use on the subinterface:

7505 (config−subif)#ipx encapsulation isl 1

5.Assign a network number to the subinterface and identify an encapsulation type for IPX, such as snap, novell−ether, arpa or sap:

7505(config−subif)# ipx network 1 encapsulation sap

6.To configure any other interfaces, repeat Steps 3 through 5 for each VLAN between the switches you want to route traffic:

7505(config−subif)#interface fastethernet2/0.2 7505(config−subif)#encapsulation isl 2 7505(config−subif)#ipx network 2 encapsulation sap

113

Соседние файлы в предмете Программирование