您的位置:首页 > 编程语言 > PHP开发

VTP配置

2004-11-17 22:15 344 查看
假定有如图3的VLAN连接,具体配置如下:

·作为VTP服务器交换机1的配置

switch1#configure terminal

switch1(cofig)#ip address 10.5.5.11 255.255.255.0





switch1(cofig)#ip defaul-gateway 10.5.5.3

switch1(cofig)#vtp server domain Hartsfield purning enable

switch1(cofig)#vlan 2 name vlan2

switch1(cofig)#vlan 3 name vlan3

switch1(cofig)#interface e 0/5

switch1(cofig-if)#valn-membership static 2

switch1(cofig)#interface e 0/6

switch1(cofig-if)#valn-membership static 2

......

switch1(cofig)#interface e 0/9

switch1(cofig-if)#valn-membership static 3

switch1(config)#interface e fa 0/26

switch1(config-if)#trunk on

switch1(config-if)#vlan-membershi static 1

......

switch1(config)#interface e fb 0/27

switch1(config-if)#trunk on

switch1(config-if)#vlan-membershi static 1

......

·作为VTP客户交换机2的配置

switch2#configure terminal

switch2(cofig)#ip address 10.5.5.12 255.255.255.0

switch2(cofig)#ip defaul-gateway 10.5.5.3

switch2(cofig)#vtp client

switch2(cofig)#interface e 0/5

switch2(cofig-if)#valn-membership static 3

switch2(cofig)#interface e 0/6

switch2(cofig-if)#valn-membership static 3

switch2(cofig)#interface e 0/7

switch2(cofig-if)#valn-membership static 3

switch2(cofig)#interface e 0/8

switch2(cofig-if)#valn-membership static 3

switch2(cofig)#interface e 0/9

switch2(cofig-if)#valn-membership static 3

......

switch2(config)#interface e fa 0/27

switch2(config-if)#trunk on

switch2(config-if)#vlan-membershi static 1

switch2(config-if)#vlan-membershi static 3

注意:在交换机2配置中没有域名,这可能通过第一个通告学习到;

在交换机2配置中无须对VLAN进行定义,而且在VTP客户模式下是不能定义的。

在交换机1中裁剪被启用,VTP从交换机2中裁剪VLAN2,因交换机2中没有VLAN2端口。
为了验证新的配置或了解VTP的配置信息可以使用命令:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: