- 时间:2022-10-19 00:04 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:CISCO交换机VLAN配置思路
[b]1.建在交换机上创建vlan[/b]
立一个vtp管理域
为了在交换机上创建vlan,必须首先建立一个vtp管理域以使它能够核验网络上当前的vlan
Catalyst 4000 系列交换机模块只支持802.1q。
判断硬件是否支持干道,及硬件所支持的干道封装使用:show portcapabilities
首先运行clear config allvtp command:
[b]在基于IOS的交换机上配置VTP管理域或加入一个管理域:
[/b]switch# vlan database
witch(vlan)# vtp domain domain-name
[b]在基于CLI的交换机上配置VTP管理域:
[/b]switch(enable) set vtp [domain domain-name] passwd password在基于IOS的交换机上配置VTP 模式:
witch# vlan database
witch(vlan)# vtp domain domain-name
witch(vlan)# vtp {sever|cilent|transparent}
witch(vlan)# vtp password password
[b]在基于CLI的交换机上配置VTP 模式:
[/b]switch(enable) set vtp [domain domain-name] [mode{sever|cilent|transparent }][password password]
[b]核验vtp的配置:[/b]
how vtp domain
how vtp statistics
[b]在基于IOS的交换机上配置VTP版本:[/b]
VTP版本1是缺省配置
witch# vlan database
witch(vlan)# vtp v2-mode
[b]在基于CLI的交换机上配置VTP版本:[/b]
witch(enable) set vtp v2 enable在基于IOS的交换机上启动VTP剪裁:
witch# vlan database
witch(vlan)# vtp pruning
[b]在基于CLI 的交换机上启动VTP剪裁:[/b]
witch(enable) set vtp pruning enable
(set vtp pruneeligible vlan-range)
[b]不起用vtp修剪:[/b]
clear vtp pruneeligible vlan-range
[b]核验vtp修剪的配置[/b]:
how trunk
[b]2.创建Vlan在基于IOS的交换机上配置静态VLAN:[/b]
witch# vlan database
witch(vlan)# vlan vlan-num name vlan-name
witch(vlan)# exit
witch# configure teriminal
witch(config)# interface interface module/number
witch(config-if)# switchport mode access
witch(config-if)# switchport access vlan vlan-num
witch(config-if)# end
[b]在基于CLI的交换机上配置静态VLAN:[/b]
witch(enable) set vlan vlan-num [name name]
witch(enable) set vlan vlan-num mod-num/port-list核验配置:show vlan
[b]3.配置干道链路[/b]
干道是在两台catalyst交换机端口或catalyst交换机与路由器间的一条点对点链路。
干道链路可以承载多个vlan。
[b]在基于IOS的交换机上配置干道链路[/b]
witch(config)# interface interface mod/port
witch(config-if)# switchport mode trunk
witch(config-if)# switchport trunk encapsulation {isl|dotlq}
witch(config-if)# switchport trunk allowed vlan remove vlan-list
witch(config-if)# switchport trunk allowed vlan add vlan-list
[b]在基于CLI的交换机上配置干道链路:[/b]
witch(enable) set trunk module/port[on|off|desirable|auto|nonegotiate]
Vlan-range
文章录入:csh 责任编辑:csh