Ostatnimi czasy szykuję się do CCNA i aktualnie wałkuje temat VTP na PT ver. 5.3 . Przy ostatnio testowanym scenariuszu naszły mnie pewne wątpliwości które mam nadzieje uda wam się mi wyjaśnić Do rzeczy:
Topologia następująca:
PC0 ------- Switch 0 --------- Switch 1 ------- PC1
Pc'ty są tylko dla picu i nic nie wnoszą. Łącze pomiędzy Switchami jest na początku scenariusza nie ruszane (czyli nie ma tam trunk'a).
Konfiguracja wpisywana chronologicznie wygląda następująco:
Switch 0:
Komendy show wyglądają następująco na switchu 0:Switch(config)#interface vlan 1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#vlan 23
Switch(config-vlan)#name switch0
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#
Switch(config)#vtp domain tompa
Changing VTP domain name from NULL to tompa
Revision number = 0 z powodu zmiany domeny z domyślnego Null na tompa. Przynajmniej tak to rozumiem.
Switch#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 6
VTP Operating Mode : Server
VTP Domain Name : tompa
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xE2 0x56 0x42 0xC3 0xF8 0x9C 0x54 0xEB
Configuration last modified by 192.168.1.1 at 3-1-93 00:01:59
Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN interface found)
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
23 switch0 active
Konfiguracja na Switch'u 1:
Komendy show na Switchu 1:
Switch(config)#interface vlan 1
Switch(config-if)#ip ad
Switch(config-if)#ip address 192.168.1.2 255.255.255.0
Switch(config-if)#no shutdown
Switch(config)#vlan 75
Switch(config-vlan)#name switch1
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#vtp mode client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain tompa
Changing VTP domain name from NULL to tompa
Switch(config)#exit
Następnie włączyłem na łączu pomiędzy Switch'ami trunk, by VTP mogło zacząć rozsyłać swoje wiadomości.Switch#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 6
VTP Operating Mode : Client
VTP Domain Name : tompa
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x32 0x37 0xCB 0xEC 0x98 0x86 0x50 0xED
Configuration last modified by 192.168.1.2 at 3-1-93 00:02:40
Switch#show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
75 switch1 active
Na switchu 0 wpisałem:
I teraz meritum. Wydawało mi się, że w tym przypadku oba switche posiadające ten sam revision number zachowają swoją konfiguracje (Vlan 23 na switchu 0, i vlan 75 na switchu 1) . Jednakże po podniesieniu trunku, Switch 1 przyjął konfiguracje od switcha 0 pomimo takiego samego revision number. Zrzut ze switcha 1 wygląda następująco:Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchpo
Switch(config-if)#switchport mode trunk
Switch#show vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 6
VTP Operating Mode : Client
VTP Domain Name : tompa
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xE2 0x56 0x42 0xC3 0xF8 0x9C 0x54 0xEB
Configuration last modified by 192.168.1.1 at 3-1-93 00:01:59
Switch#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa0/3, Fa0/4, Fa0/5
Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10, Fa0/11, Fa0/12, Fa0/13
Fa0/14, Fa0/15, Fa0/16, Fa0/17
Fa0/18, Fa0/19, Fa0/20, Fa0/21
Fa0/22, Fa0/23, Fa0/24
23 switch0 active
Czy jest to błąd PT ? Czy rzeczywiście tak powinno się to zachować? Jeśli tak to gdzie jest błąd w moim rozumowaniu? Dziękuje z góry za każdą pomoc!
Pozdrawiam!