海康核心交换机配置及划Vlan副本.docx
- 文档编号:27946988
- 上传时间:2023-07-06
- 格式:DOCX
- 页数:19
- 大小:16.33KB
海康核心交换机配置及划Vlan副本.docx
《海康核心交换机配置及划Vlan副本.docx》由会员分享,可在线阅读,更多相关《海康核心交换机配置及划Vlan副本.docx(19页珍藏版)》请在冰豆网上搜索。
海康核心交换机配置及划Vlan副本
6800核心交换机配置说明:
6800默认子板端口全部为shutdown状态(关闭-不启用),双主控板—上电后,ACT灯亮为主控,不亮的为备用主控。
串口线接在主控板(ACT)上。
配置命令如下:
Switch>enable
Switch#
Switch#config备注:
进入配置模式
Switch_config#
Switch_config#interfacerangeg8/1-24备注:
配置子板8(1-24#口)Switch_config_if_range#
Switch_config_if_range#noshutdown备注:
启用子板8(1-24#口)Switch_config_if_range#exit备注:
退出
Switch_config#write备注:
保存
配置VLAN
子板位置
交换机端口
VLAN
IP段
网关
备注
子板7
光口1-12#
VLAN71
子板7
光口13-24#
VLAN72
子板8
光口1-12#
VLAN81
子板8
光口13-24#
VLAN82
子板9
电口1#
VLAN71
方便客户搜索IP
子板9
电口2#
VLAN72
方便客户搜索IP
子板9
电口3#
VLAN81
方便客户搜索IP
子板9
电口4#
VLAN82
方便客户搜索IP
子板9
光口5-12#
VLAN91
子板9
光口13-24#
VLAN92
命令如下:
Switch#config
Switch_config#intvlan71
Switch_config_v71#quit
Switch_config#intvlan72
Switch_config_v72#quit
Switch_config#intvlan81
Switch_config_v81#quit
Switch_config#intvlan82
Switch_config_v82#quit
Switch_config#intvlan91
Switch_config_v91#quit
Switch_config#intvlan92
Switch_config_v92#quit
Switch_config#write
Savingcurrentconfiguration...
OK!
给端口配置IP:
Switch_config#intrangeg7/1-12
Switch_config_if_range#switchportpvid71%VLANdoesnotexist,Creatingvlan71.
Switch_config_if_range#Nov1816:
07:
42%LINE-5-UPDOWN:
LineonInterfaceVLAN71,changedstatetoup
Switch_config_if_range#quit
Switch_config#interfacerangeg7/13-24
Switch_config_if_range#switchportpvid72
%VLANdoesnotexist,Creatingvlan72.
Switch_config_if_range#Nov1816:
15:
15%LINE-5-UPDOWN:
LineonInterfaceVLAN72,changedstatetoup
Switch_config_if_range#quit
Switch_config#intrangeg8/1-12
Switch_config_if_range#switchportpvid81
%VLANdoesnotexist,Creatingvlan81.
Switch_config_if_range#Nov1816:
16:
05%LINE-5-UPDOWN:
LineonInterfaceVLAN81,changedstatetoup
Switch_config_if_range#interfacerangeg8/13-24
Switch_config_if_range#switchportpvid82
%VLANdoesnotexist,Creatingvlan82.
Switch_config_if_range#Nov1816:
16:
26%LINE-5-UPDOWN:
LineonInterfaceVLAN82,changedstatetoup
Switch_config_if_range#quit
Switch_config#interfacerangeg9/13-24
Switch_config_if_range#switchportpvid92
%VLANdoesnotexist,Creatingvlan92.
Switch_config_if_range#Nov1816:
17:
39%LINE-5-UPDOWN:
LineonInterfaceVLAN92,changedstatetoup
Nov1816:
17:
40%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN92,changedstatetoup
Switch_config_if_range#quit
Switch_config#interfacerangeg9/5-12
Switch_config_if_range#switchportpvid91%VLANdoesnotexist,Creatingvlan91.Switch_config_if_range#Nov1816:
18:
46%LINE-5-UPDOWN:
LineonInterfaceVLAN91,changedstatetoup
Nov1816:
18:
47%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN91,changedstatetoup
Switch_config_if_range#quit
Switch_config#interfacerangeg9/1
Incompletecommand
Switch_config#interfaceg9/1
Switch_config_g9/1#s
sflowshare-loadshort-ifdescrshowshutdownslotsnmpspanning-treespeedstorm-controlswitchportSwitch_config_g9/1#switchportpvid71
Switch_config_g9/1#Nov1816:
20:
29%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN71,changedstatetoup
quit
Switch_config#interfaceg9/2
Switch_config_g9/2#switchportpvid72
Switch_config_g9/2#Nov1816:
20:
46%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN72,changedstatetoup
Switch_config_g9/2#quit
Switch_config#interfaceg9/3
Switch_config_g9/3#switchportpvid81
Switch_config_g9/3#Nov1816:
21:
14%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN81,changedstatetoup
Switch_config#interfaceg9/4
Switch_config_g9/4#switchportpvid82
Switch_config_g9/4#Nov1816:
24:
25%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN82,changedstatetoup
Switch_config_g9/4#quit
Switch_config#interfacerangeg9/13-24
Switch_config_if_range#switchportpvid92%VLANdoesnotexist,Creatingvlan92.
Switch_config_if_range#Nov1816:
17:
39%LINE-5-UPDOWN:
LineonInterfaceVLAN92,changedstatetoup
Nov1816:
17:
40%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN92,changedstatetoup
Switch_config_if_range#quit
Switch_config#interfacerangeg9/5-12
Switch_config_if_range#switchportpvid91%VLANdoesnotexist,Creatingvlan91.
Switch_config_if_range#Nov1816:
18:
46%LINE-5-UPDOWN:
LineonInterfaceVLAN91,changedstatetoup
Nov1816:
18:
47%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN91,changedstatetoup
Switch_config_if_range#quit
查看配置:
Switch_config#showrun
Buildingconfiguration...
Currentconfiguration:
!
servicetimestampslogdateservicetimestampsdebugdatespanning-treemoderstp
interfaceNull0
!
interfaceGigaEthernet6/0noipaddressnoipdirected-broadcast!
!
!
slot724
interfaceGigaEthernet7/1switchportpvid71!
interfaceGigaEthernet7/2switchportpvid71interfaceGigaEthernet7/3switchportpvid71interfaceGigaEthernet7/4switchportpvid71
!
interfaceGigaEthernet7/5
switchportpvid71
!
interfaceGigaEthernet7/6
switchportpvid71
!
interfaceGigaEthernet7/7switchportpvid71
!
interfaceGigaEthernet7/8switchportpvid71
!
interfaceGigaEthernet7/9switchportpvid71
!
interfaceGigaEthernet7/10switchportpvid71interfaceGigaEthernet7/11switchportpvid71interfaceGigaEthernet7/12switchportpvid71
!
interfaceGigaEthernet7/13switchportpvid72
!
interfaceGigaEthernet7/14switchportpvid72
!
interfaceGigaEthernet7/15switchportpvid72
!
interfaceGigaEthernet7/16switchportpvid72
!
interfaceGigaEthernet7/17
switchportpvid72
!
interfaceGigaEthernet7/18switchportpvid72interfaceGigaEthernet7/19switchportpvid72interfaceGigaEthernet7/20switchportpvid72
!
interfaceGigaEthernet7/21switchportpvid72
!
interfaceGigaEthernet7/22switchportpvid72
!
interfaceGigaEthernet7/23switchportpvid72
!
interfaceGigaEthernet7/24
switchportpvid72
!
!
!
slotend
!
!
!
slot824interfaceGigaEthernet8/1switchportpvid81interfaceGigaEthernet8/2
switchportpvid81interfaceGigaEthernet8/3switchportpvid81
!
interfaceGigaEthernet8/4
switchportpvid81
!
interfaceGigaEthernet8/5
switchportpvid81
!
interfaceGigaEthernet8/6switchportpvid81
!
interfaceGigaEthernet8/7switchportpvid81
!
interfaceGigaEthernet8/8
switchportpvid81
!
interfaceGigaEthernet8/9switchportpvid81interfaceGigaEthernet8/10switchportpvid81interfaceGigaEthernet8/11switchportpvid81
!
interfaceGigaEthernet8/12switchportpvid81
!
interfaceGigaEthernet8/13switchportpvid82
!
interfaceGigaEthernet8/14switchportpvid82
!
interfaceGigaEthernet8/15switchportpvid82
!
interfaceGigaEthernet8/16
switchportpvid82
!
interfaceGigaEthernet8/17switchportpvid82interfaceGigaEthernet8/18switchportpvid82interfaceGigaEthernet8/19switchportpvid82
!
interfaceGigaEthernet8/20switchportpvid82
!
interfaceGigaEthernet8/21switchportpvid82
!
interfaceGigaEthernet8/22switchportpvid82
!
interfaceGigaEthernet8/23switchportpvid82
!
interfaceGigaEthernet8/24
switchportpvid82
!
!
!
slotend
!
!
!
slot923
interfaceGigaEthernet9/1
switchportpvid71interfaceGigaEthernet9/2switchportpvid72
!
interfaceGigaEthernet9/3
switchportpvid81
!
interfaceGigaEthernet9/4
switchportpvid81
!
interfaceGigaEthernet9/5switchportpvid91
!
interfaceGigaEthernet9/6switchportpvid91
!
interfaceGigaEthernet9/7
switchportpvid91
!
interfaceGigaEthernet9/8switchportpvid91interfaceGigaEthernet9/9switchportpvid91interfaceGigaEthernet9/10switchportpvid91
!
interfaceGigaEthernet9/11switchportpvid91
!
interfaceGigaEthernet9/12switchportpvid91
!
interfaceGigaEthernet9/13switchportpvid92
!
interfaceGigaEthernet9/14switchportpvid92
!
interfaceGigaEthernet9/15
switchportpvid92
!
interfaceGigaEthernet9/16switchportpvid92interfaceGigaEthernet9/17switchportpvid92interfaceGigaEthernet9/18switchportpvid92
!
interfaceGigaEthernet9/19switchportpvid92
!
interfaceGigaEthernet9/20switchportpvid92
!
interfaceGigaEthernet9/21switchportpvid92
!
interfaceGigaEthernet9/22switchportpvid92
!
interfaceGigaEthernet9/23
switchportpvid92
!
interfaceGigaEthernet9/24switchportpvid92
!
!
slotend
interfaceVLAN71ipnoipdirected-broadcast!
interfaceVLAN72
ip
noipdirected-broadcast!
interfaceVLAN81
ipnoipdirected-broadcast!
interfaceVLAN82
ipnoipdirected-broadcast!
interfaceVLAN91
ipnoipdirected-broadcast!
interfaceVLAN92
ip
noipdirected-broadcast
vlan1,71-72,81-82,91-92
noipigmp-proxyenable
ipexf
ipv6exf
!
Pendingconfigurationsforabsentlinecards:
!
!
Noconfigurationspendingglobal
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#interfaceg9/4
Switch_config_g9/4#switchportpvid82
Switch_config_g9/4#Nov1816:
24:
25%LINEPROTO-5-UPDOWN:
LineprotocolonInterf
aceVLAN82,changedstatetoup
quit
Switch_config#write
Savingcurrentconfiguration...
OK!
Synchronizingstartup-configtobackupcard...
OK!
Switch_config#Nov1816:
24:
36checkSLOT5IOSconsistency
Nov1816:
24:
36SLOT5isforcedtoupdate,startupdating
Nov1816:
24:
42successfulsend4542bytestoSLOT5
Nov1816:
24:
42SLOT5filesynfinished
Nov1816:
24:
42SLOT5updateOK,consumedtimeis7s
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#showrun
Buildingconfiguration...
Currentconfiguration:
!
servicetimestampslogdate
servicetimestampsdebugdate
spanning-treemoderstp
interfaceNull0
interfaceGigaEthernet6/0noipaddressnoipdirected-broadcast!
!
!
slot724
interfaceGigaEthernet7/1switchportpvid71!
interfaceGigaEthernet7/2switchportpvid71!
interfaceGigaEthernet7/3switchportpvid71!
interfaceGigaEthernet7/4switchportpvid71!
interfaceGigaEthernet7/5switchportpvid71!
interfaceGigaEthernet7/6switchportpvid71interfaceGigaEthernet7/7switchportpvid71
!
interfaceGigaEthernet7/8
switchportpvid71
!
interfaceGigaEthernet7/9switchportpvid71
!
interfaceGigaEthernet7/10switchportpvid71
!
interfaceGigaEthernet7/11
switchportpvid71
!
interfaceGigaEthernet7/12switchportpvid71
!
interfaceGigaEthernet7/13switchportpvid72
!
interfaceGigaEthernet7/14switchportpvid72
interfaceGigaEthernet7/15
switchportpvid72
!
interfaceGigaEthernet7/16switchportpvid72
!
interfaceGigaEthernet7/17switchportpvid72
!
interfaceGigaEthernet7/18switchportpvid72
!
interfaceGigaEthernet7/19switch
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 核心 交换机 配置 Vlan 副本