conn :數據庫
SW2 e0/0 --- e0/0 SW1 e0/1 --- SW3 e0/0網絡
配置文件 :dom
----SW1---ide
SW1#show runnui
SW1#show running-config spa
Building configuration...debug
Current configuration : 1546 bytesserver
!blog
! Last configuration change at 14:41:04 CST Sat Mar 9 2013ip
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW1
clock timezone CST 8 0
no ipv6 cef
ipv6 multicast rpf use-bgp
no ip domain-lookup
ip cef
spanning-tree mode pvst
spanning-tree extend system-id
vlan internal allocation policy ascending
interface Ethernet0/0
duplex auto
interface Ethernet0/1
duplex auto
!
interface Ethernet0/2
duplex auto
no ip http server
control-plane
line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
SW1#show vtp sta
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 0200.3000.0a00
Configuration last modified by 0.0.0.0 at 3-9-13 06:38:32
Local updater ID is 0.0.0.0 (no valid interface found)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 18
Configuration Revision : 14
MD5 digest : 0x80 0x33 0xF8 0xED 0xB2 0xE5 0x27 0x5E
0x47 0x03 0x6B 0xF3 0x8F 0xE9 0xC4 0x7B
SW1#show vlan b
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/2, Et0/3, Et1/0, Et1/1
Et1/2, Et1/3
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
6 VLAN0006 active
10 VLAN0010 active
11 VLAN0011 active
12 VLAN0012 active
15 VLAN0015 active
100 VLAN0100 active
101 VLAN0101 active
111 VLAN0111 active
1000 VLAN1000 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
---SW-2---
SW2# show runn
Building configuration...
Current configuration : 1546 bytes
!
! Last configuration change at 14:56:10 CST Sat Mar 9 2013
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW2
!
no aaa new-model
clock timezone CST 8 0
no ipv6 cef
ipv6 multicast rpf use-bgp
vtp domain cisco
vtp mode transparent
!
no ip domain-lookup
ip cef
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 10,13,100,111,1000
!
interface Ethernet0/0
duplex auto
no ip http server
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
SW2# show vtp sta
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 0200.3000.0b00
Configuration last modified by 0.0.0.0 at 3-9-13 06:08:06
Feature VLAN:
--------------
VTP Operating Mode : Transparent
Maximum VLANs supported locally : 1005
Number of existing VLANs : 10
Configuration Revision : 0
MD5 digest : 0x0E 0x35 0xBD 0xD7 0xF9 0x9A 0x17 0xC0
0xE2 0x75 0x12 0xDA 0x95 0xB7 0x18 0x9C
SW2#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/1, Et0/2, Et0/3, Et1/0
Et1/1, Et1/2, Et1/3
10 VLAN0010 active
13 VLAN0013 active
100 VLAN0100 active
111 VLAN0111 active
1000 VLAN1000 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
(SW2 VTP是同步完成vlan 10,13,100,111後從Server改成Transparent)
---SW3---
SW3#show runn
Building configuration...
Current configuration : 1481 bytes
!
! Last configuration change at 14:47:21 CST Sat Mar 9 2013
!
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service compress-config
!
hostname SW3
no aaa new-model
clock timezone CST 8 0
no ipv6 cef
ipv6 multicast rpf use-bgp
!
no ip domain-lookup
ip cef
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
interface Ethernet0/0
duplex auto
!
no ip http server
!
control-plane
!
!
line con 0
logging synchronous
line aux 0
line vty 0 4
!
end
SW3# show vtp sta
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 0200.3000.0c00
Configuration last modified by 0.0.0.0 at 3-9-13 06:38:32
Local updater ID is 0.0.0.0 (no valid interface found)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 18
Configuration Revision : 14
MD5 digest : 0x80 0x33 0xF8 0xED 0xB2 0xE5 0x27 0x5E
0x47 0x03 0x6B 0xF3 0x8F 0xE9 0xC4 0x7B
SW3#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Et0/1, Et0/2, Et0/3, Et1/0
Et1/1, Et1/2, Et1/3
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
6 VLAN0006 active
10 VLAN0010 active
11 VLAN0011 active
12 VLAN0012 active
15 VLAN0015 active
100 VLAN0100 active
101 VLAN0101 active
111 VLAN0111 active
1000 VLAN1000 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
實驗總結 :
VTP 版本一致
VTP 域名定義
VLAN 建立
觀察VTP修訂版本號和VTP數目變化
VTP三種模式 :
修改VTP工做模式會致使VTP修訂版本號置0 但VLAN數據不會丟失
VTP工做過程當中VLAN傳輸原理與規則 :
從高版本號的交換機想低版本號的交換機傳輸 (VTP工做模式爲Server/Client)
VTP透明模式在工做過程當中版本號和VLAN不發生改變 可建立和修改VLAN
能夠提供透明轉發其餘網絡交換機VLAN數據的功能
VTP Server模式在工做過程當中版本號會隨VLAN的建立修改和VTP模式變換而發生改變
VTP Client模式在工做過程當中版本號會隨其餘交換機的同步數據而發生改變
VLAN由其餘交換機傳遞而建立在本地數據庫 此模式並不容許手動建立和修改VLAN數據