目錄
- vtp介紹
- vtp作用
- vtp配置實驗
<一> VTP介紹
Vlan Trunk Protocol (VLAN中繼協議、虛擬局域網幹道協議),是思科私有協議。
<二> VTP作用
在十幾臺交換機在企業網中,配置VLAN工作量大,可以使用VTP協議,把一臺交換機配置成VTP Server,
其餘交換機配置成VTP Client,這樣他們可以自動學習到server 上的VLAN 信息。
<三> VTP配置實驗
1> 構建網絡拓撲
2> 關閉三層路由工作模式
☞ no ip routing
3> 查看vtp配置狀態
☞ show vtp status
4> 三個路由器VTP配置
############Server############
vlan database
vlan 10 name VLAN_10
vlan 20 name VLAN_20
apply
vtp server
vtp domain test.com //設置VTP域名
vtp password 123456
apply
exit
conf t
hostname Server
no ip routing //關閉三層交換功能
int f3/10
switchport trunk encapsulation dot1q
switchport mode trunk
no sh
exit
show vlan-switch brief
############Transparent############
vlan database
vtp transparent
vtp domain test.com
vtp password 123456
apply
exit
conf t
hostname Transparent
no ip routing
int f3/10
switchport trunk encapsulation dot1q
switchport mode trunk
no sh
int f3/11
switchport trunk encapsulation dot1q
switchport mode trunk
no sh
exit
show vlan-switch brief
############Client############
vlan database
vtp client
vtp domain test.com
vtp password 123456
apply
exit
conf t
hostname Client
no ip routing
int f3/11
switchport trunk encapsulation dot1q
switchport mode trunk
no sh
exit
show vtp status