设为首页收藏本站language 语言切换
查看: 23718|回复: 518
收起左侧

[分享] vlan 配置思路

[复制链接]
发表于 2009-2-19 16:16:20 | 显示全部楼层 |阅读模式
本帖最后由 紫金绿 于 2009-2-22 09:58 编辑

vlan 配置思路在交换机上创建vlan
1.建立一个vtp管理域
×为了在交换机上创建vlan,必须首先建立一个vtp管理域以使它能够核验网络

上当前的vlan
×Catalyst 4000 系列交换机模块只支持802.1q。
×判断硬件是否支持干道,及硬件所支持的干道封装使用:show port

capabilities

首先运行 clear config all

vtp 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 {sever|cilent|transparent}
switch(vlan)# vtp password password
在基于CLI的交换机上配置VTP 模式:
switch(enable) set vtp [domain domain-name] [mode{

sever|cilent|transparent }][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 {isl|dotlq}
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

[on|off|desirable|auto|nonegotiate]
Vlan-range

[isl|dotlq|dotl0|lane|negotiate]
发表于 2009-2-21 00:29:59 | 显示全部楼层
顶起....太好了.
沙发 2009-2-21 00:29:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:20:32 | 显示全部楼层
^_^
板凳 2009-2-21 21:20:32 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:20:38 | 显示全部楼层
^_^
地板 2009-2-21 21:20:38 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:20:43 | 显示全部楼层
^_^
5# 2009-2-21 21:20:43 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:20:49 | 显示全部楼层
^_^
6# 2009-2-21 21:20:49 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:20:59 | 显示全部楼层
^_^
7# 2009-2-21 21:20:59 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:05 | 显示全部楼层
^_^
8# 2009-2-21 21:21:05 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:10 | 显示全部楼层
^_^
9# 2009-2-21 21:21:10 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:22 | 显示全部楼层
^_^
10# 2009-2-21 21:21:22 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:27 | 显示全部楼层
^_^
11# 2009-2-21 21:21:27 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:33 | 显示全部楼层
^_^
12# 2009-2-21 21:21:33 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:38 | 显示全部楼层
^_^
13# 2009-2-21 21:21:38 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:45 | 显示全部楼层
^_^
14# 2009-2-21 21:21:45 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2009-2-21 21:21:50 | 显示全部楼层
^_^
15# 2009-2-21 21:21:50 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-24 07:22 , Processed in 0.069717 second(s), 22 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表