Cisco(GNS3)- VTP

目录

  • 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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章