技巧:CISCO交换机VLAN配置思路-应用技巧

王朝数码·作者佚名  2010-09-20
窄屏简体版  字體: |||超大  

在交换机上创建VLAN

1.建立一个vtp管理域

×为了在交换机上创建VLAN,必须首先建立一个vtp管理域以使它能够核验网络上当前的VLAN

×Catalyst 4000 系列交换机模块只支持802.1q。

×判断硬件是否支持干道,及硬件所支持的干道封装使用:show portcapabilities

首先运行 clear config allvtp command:

在基于IOS的交换机上配置VTP管理域或加入一个管理域:

switch# VLAN database

switch(VLAN)# vtp domain domain-name

在基于CLI的交换机上配置VTP管理域:

switch(enable) set vtp [domain domain-name] passwd password在基于IOS的交换机上配置VTP 模式:

switch# VLAN database

switch(VLAN)# vtp domain domain-name

switch(VLAN)# vtp

switch(VLAN)# vtp password password

在基于CLI的交换机上配置VTP 模式:

switch(enable) set vtp [domain domain-name] [mode{severcilenttransparent }][password password]

核验vtp的配置:

show vtp domain

show vtp statistics

在基于IOS的交换机上配置VTP版本:

×VTP版本1是缺省配置

switch# VLAN database

switch(VLAN)# vtp v2-mode

在基于CLI的交换机上配置VTP版本:

switch(enable) set vtp v2 enable在基于IOS的交换机上启动VTP剪裁:

switch# VLAN database

switch(VLAN)# vtp pruning

在基于CLI 的交换机上启动VTP剪裁:

switch(enable) set vtp pruning enable

(set vtp pruneeligible VLAN-range)

不起用vtp修剪:

clear vtp pruneeligible VLAN-range

核验vtp修剪的配置:

show trunk

2.创建VLAN在基于IOS的交换机上配置静态VLAN:

switch# VLAN database

switch(VLAN)# VLAN VLAN-num name VLAN-name

switch(VLAN)# exit

switch# configure teriminal

switch(config)# interface interface module/number

switch(config-if)# switchport mode access

switch(config-if)# switchport access VLAN VLAN-num

switch(config-if)# end

在基于CLI的交换机上配置静态VLAN:

switch(enable) set VLAN VLAN-num [name name]

switch(enable) set VLAN VLAN-num mod-num/port-list核验配置:show VLAN

3.配置干道链路

干道是在两台catalyst交换机端口或catalyst交换机与路由器间的一条点对点链路。

干道链路可以承载多个VLAN。

在基于IOS的交换机上配置干道链路

switch(config)# interface interface mod/port

switch(config-if)# switchport mode trunk

switch(config-if)# switchport trunk encapsulation

switch(config-if)# switchport trunk allowed VLAN remove VLAN-list

switch(config-if)# switchport trunk allowed VLAN add VLAN-list

在基于CLI的交换机上配置干道链路:

switch(enable) set trunk module/port[onoffdesirableautononegotiate]

VLAN-range

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航