Bài Vi t VTP Modeế
Tác gi Nguy n Anh Hào
VTP Revison Number, VTP Password, VTP Domain
I/ T ng quan v các VTP revision number
Tác d ng c a VTP là duy trì c u hình c a VLAN ,và đ ng nh t trên
toàn Network .VTP là protocol thông tin ,nó s d ng frame trunk layer 2 đ
qu n lý s c ng vào hay xoá đi ,đ t tên l i các VLÁN trên toàn b Network t
1 Switch trung tâm đ c đ t trong Server mode . VTP ho t đ ng ch y u làượ ế
đ ng nh t các thông tin VLAN trong 1 vùng VTP domain.Nó gi m đi s c u
hình gi ng nhau trong các Switch.
Bài lab sau đây s miêu t các đ c tính c a Revision number ,vtp
password ,vtp domain .
Chúng ta ch c n dùng 2 thi t b Cisco 2950 đ làm đ c bài lab này . ế ượ
Switch 1 Switch 2
Vlan 3
Vlan 1 Vlan 2 Vlan 1 Vlan 4
C u hình đ u tiên bài lab này là s c u hình 2 Switch trên cùng 1
domain , sau đó c u hình vtp password 2 bên khác nhau . Nh v y m c d u ư
c ng trunk đã ch y . Nh ng 2 Switch v n ch a th y đ c nhau . Chúng ta s ư ư ượ
c u hình l n l t các Vlan 2,3 trên Switch1 và vlan 4 trên Switch2 . Sau khi ượ
c u hình 2 trên . Chúng ta theo dõi Switch có s revision number cao h n và ơ
sau đó c u hình l i vtp password cho đúng , lúc này Switch có s revision
number cao h n s update các vlan cho switch còn l i . ơ
II/ C u hình
Switch1#show run
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch1
!
ip subnet-zero
!
interface FastEthernet0/1
shutdown
encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface VLAN1
no ip directed-broadcast
no ip route-cache
!
!
line con 0
transport input none
stopbits 1
line vty 5 15
!
end
switch2#show run
Building configuration...
Current configuration : 1431 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname switch2
!
!
ip subnet-zero
!
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport mode trunk
no ip address
!
interface FastEthernet0/2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
switchport access vlan 4