CISCO交換機(jī)VLAN配置思路
1.建在交換機(jī)上創(chuàng)建vlan
立一個(gè)vtp管理域
為了在交換機(jī)上創(chuàng)建vlan,必須首先建立一個(gè)vtp管理域以使它能夠核驗(yàn)網(wǎng)絡(luò)上當(dāng)前的vlan
Catalyst 4000 系列交換機(jī)模塊只支持802.1q。
判斷硬件是否支持干道,及硬件所支持的干道封裝使用:show portcapabilities
首先運(yùn)行clear config allvtp command:
在基于IOS的交換機(jī)上配置VTP管理域或加入一個(gè)管理域:
switch# vlan database
witch(vlan)# vtp domain domain-name
在基于CLI的交換機(jī)上配置VTP管理域:
switch(enable) set vtp [domain domain-name] passwd password在基于IOS的交換機(jī)上配置VTP 模式:
witch# vlan database
witch(vlan)# vtp domain domain-name
witch(vlan)# vtp {sever|cilent|transparent}
witch(vlan)# vtp password password
在基于CLI的交換機(jī)上配置VTP 模式:
switch(enable) set vtp [domain domain-name] [mode{sever|cilent|transparent }][password password]
核驗(yàn)vtp的配置:
how vtp domain
how vtp statistics
在基于IOS的交換機(jī)上配置VTP版本:
VTP版本1是缺省配置
witch# vlan database
witch(vlan)# vtp v2-mode
在基于CLI的交換機(jī)上配置VTP版本:
witch(enable) set vtp v2 enable在基于IOS的交換機(jī)上啟動(dòng)VTP剪裁:
witch# vlan database
witch(vlan)# vtp pruning
在基于CLI 的交換機(jī)上啟動(dòng)VTP剪裁:
witch(enable) set vtp pruning enable
(set vtp pruneeligible vlan-range)
不起用vtp修剪:
clear vtp pruneeligible vlan-range
核驗(yàn)vtp修剪的配置:
how trunk
2.創(chuàng)建Vlan在基于IOS的交換機(jī)上配置靜態(tài)VLAN:
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
在基于CLI的交換機(jī)上配置靜態(tài)VLAN:
witch(enable) set vlan vlan-num [name name]
witch(enable) set vlan vlan-num mod-num/port-list核驗(yàn)配置:show vlan
3.配置干道鏈路
干道是在兩臺(tái)catalyst交換機(jī)端口或catalyst交換機(jī)與路由器間的一條點(diǎn)對(duì)點(diǎn)鏈路。
干道鏈路可以承載多個(gè)vlan。
在基于IOS的交換機(jī)上配置干道鏈路
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
在基于CLI的交換機(jī)上配置干道鏈路:
witch(enable) set trunk module/port[on|off|desirable|auto|nonegotiate]
Vlan-range
相關(guān)文章
通過(guò)SSH實(shí)現(xiàn)Cisco路由器登錄
通過(guò)SSH實(shí)現(xiàn)Cisco路由器登錄...2007-09-09
修改QQ密碼將改至網(wǎng)頁(yè)上進(jìn)行正文分析錯(cuò)誤
修改QQ密碼將改至網(wǎng)頁(yè)上進(jìn)行正文分析錯(cuò)誤...2007-09-09
OSPFv3動(dòng)態(tài)路由協(xié)議在NBMA鏈路上的實(shí)現(xiàn)
OSPFv3動(dòng)態(tài)路由協(xié)議在NBMA鏈路上的實(shí)現(xiàn)...2007-09-09
Win2KWinXP網(wǎng)絡(luò)顯示配置常用命令
Win2KWinXP網(wǎng)絡(luò)顯示配置常用命令...2007-09-09
關(guān)于Server.Transfer(URL)和UrlReWrite的一個(gè)突發(fā)奇想
關(guān)于Server.Transfer(URL)和UrlReWrite的一個(gè)突發(fā)奇想...2006-06-06
網(wǎng)吧服務(wù)器設(shè)置的不完全攻略大全集
網(wǎng)吧服務(wù)器設(shè)置的不完全攻略大全集...2007-09-09

