海康6800核心交换机配置及划Vlan.docx
- 文档编号:4403102
- 上传时间:2022-12-01
- 格式:DOCX
- 页数:27
- 大小:17.31KB
海康6800核心交换机配置及划Vlan.docx
《海康6800核心交换机配置及划Vlan.docx》由会员分享,可在线阅读,更多相关《海康6800核心交换机配置及划Vlan.docx(27页珍藏版)》请在冰豆网上搜索。
海康6800核心交换机配置及划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
192.168.1.0-254
192.168.1.254
子板7
光口13-24#
VLAN72
192.168.2.0-254
192.168.2.254
子板8
光口1-12#
VLAN81
192.168.3.0-254
192.168.3.254
子板8
光口13-24#
VLAN82
192.168.4.0-254
192.168.4.254
子板9
电口1#
VLAN71
192.168.1.0-254
192.168.1.254
方便客户搜索IP
子板9
电口2#
VLAN72
192.168.2.0-254
192.168.2.254
方便客户搜索IP
子板9
电口3#
VLAN81
192.168.3.0-254
192.168.3.254
方便客户搜索IP
子板9
电口4#
VLAN82
192.168.4.0-254
192.168.4.254
方便客户搜索IP
子板9
光口5-12#
VLAN91
192.168.5.0-254
192.168.5.254
子板9
光口13-24#
VLAN92
192.168.6.0-254
192.168.6.254
命令如下:
Switch#config
Switch_config#intvlan71
Switch_config_v71#ipaddress192.168.1.254255.255.255.0
Switch_config_v71#quit
Switch_config#intvlan72
Switch_config_v72#ipaddress192.168.2.254255.255.255.0
Switch_config_v72#quit
Switch_config#intvlan81
Switch_config_v81#ipaddress192.168.3.254255.255.255.0
Switch_config_v81#quit
Switch_config#intvlan82
Switch_config_v82#ipaddress192.168.4.254255.255.255.0
Switch_config_v82#quit
Switch_config#intvlan91
Switch_config_v91#ipaddress192.168.5.254255.255.255.0
Switch_config_v91#quit
Switch_config#intvlan92
Switch_config_v92#ipaddress192.168.6.254255.255.255.0
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-ifdescrshowshutdownslot
snmpspanning-treespeedstorm-controlswitchport
Switch_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:
!
!
version4.1.1Bbuild19169
servicetimestampslogdate
servicetimestampsdebugdate
!
!
!
!
!
!
!
!
!
!
spanning-treemoderstp
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceNull0
!
interfaceGigaEthernet6/0
noipaddress
noipdirected-broadcast
!
!
!
slot724
interfaceGigaEthernet7/1
switchportpvid71
!
interfaceGigaEthernet7/2
switchportpvid71
!
interfaceGigaEthernet7/3
switchportpvid71
!
interfaceGigaEthernet7/4
switchportpvid71
!
interfaceGigaEthernet7/5
switchportpvid71
!
interfaceGigaEthernet7/6
switchportpvid71
!
interfaceGigaEthernet7/7
switchportpvid71
!
interfaceGigaEthernet7/8
switchportpvid71
!
interfaceGigaEthernet7/9
switchportpvid71
!
interfaceGigaEthernet7/10
switchportpvid71
!
interfaceGigaEthernet7/11
switchportpvid71
!
interfaceGigaEthernet7/12
switchportpvid71
!
interfaceGigaEthernet7/13
switchportpvid72
!
interfaceGigaEthernet7/14
switchportpvid72
!
interfaceGigaEthernet7/15
switchportpvid72
!
interfaceGigaEthernet7/16
switchportpvid72
!
interfaceGigaEthernet7/17
switchportpvid72
!
interfaceGigaEthernet7/18
switchportpvid72
!
interfaceGigaEthernet7/19
switchportpvid72
!
interfaceGigaEthernet7/20
switchportpvid72
!
interfaceGigaEthernet7/21
switchportpvid72
!
interfaceGigaEthernet7/22
switchportpvid72
!
interfaceGigaEthernet7/23
switchportpvid72
!
interfaceGigaEthernet7/24
switchportpvid72
!
!
!
slotend
!
!
!
slot824
interfaceGigaEthernet8/1
switchportpvid81
!
interfaceGigaEthernet8/2
switchportpvid81
!
interfaceGigaEthernet8/3
switchportpvid81
!
interfaceGigaEthernet8/4
switchportpvid81
!
interfaceGigaEthernet8/5
switchportpvid81
!
interfaceGigaEthernet8/6
switchportpvid81
!
interfaceGigaEthernet8/7
switchportpvid81
!
interfaceGigaEthernet8/8
switchportpvid81
!
interfaceGigaEthernet8/9
switchportpvid81
!
interfaceGigaEthernet8/10
switchportpvid81
!
interfaceGigaEthernet8/11
switchportpvid81
!
interfaceGigaEthernet8/12
switchportpvid81
!
interfaceGigaEthernet8/13
switchportpvid82
!
interfaceGigaEthernet8/14
switchportpvid82
!
interfaceGigaEthernet8/15
switchportpvid82
!
interfaceGigaEthernet8/16
switchportpvid82
!
interfaceGigaEthernet8/17
switchportpvid82
!
interfaceGigaEthernet8/18
switchportpvid82
!
interfaceGigaEthernet8/19
switchportpvid82
!
interfaceGigaEthernet8/20
switchportpvid82
!
interfaceGigaEthernet8/21
switchportpvid82
!
interfaceGigaEthernet8/22
switchportpvid82
!
interfaceGigaEthernet8/23
switchportpvid82
!
interfaceGigaEthernet8/24
switchportpvid82
!
!
!
slotend
!
!
!
slot923
interfaceGigaEthernet9/1
switchportpvid71
!
interfaceGigaEthernet9/2
switchportpvid72
!
interfaceGigaEthernet9/3
switchportpvid81
!
interfaceGigaEthernet9/4
switchportpvid81
!
interfaceGigaEthernet9/5
switchportpvid91
!
interfaceGigaEthernet9/6
switchportpvid91
!
interfaceGigaEthernet9/7
switchportpvid91
!
interfaceGigaEthernet9/8
switchportpvid91
!
interfaceGigaEthernet9/9
switchportpvid91
!
interfaceGigaEthernet9/10
switchportpvid91
!
interfaceGigaEthernet9/11
switchportpvid91
!
interfaceGigaEthernet9/12
switchportpvid91
!
interfaceGigaEthernet9/13
switchportpvid92
!
interfaceGigaEthernet9/14
switchportpvid92
!
interfaceGigaEthernet9/15
switchportpvid92
!
interfaceGigaEthernet9/16
switchportpvid92
!
interfaceGigaEthernet9/17
switchportpvid92
!
interfaceGigaEthernet9/18
switchportpvid92
!
interfaceGigaEthernet9/19
switchportpvid92
!
interfaceGigaEthernet9/20
switchportpvid92
!
interfaceGigaEthernet9/21
switchportpvid92
!
interfaceGigaEthernet9/22
switchportpvid92
!
interfaceGigaEthernet9/23
switchportpvid92
!
interfaceGigaEthernet9/24
switchportpvid92
!
!
!
slotend
!
interfaceVLAN71
ipaddress192.168.1.254255.255.255.0
noipdirected-broadcast
!
interfaceVLAN72
ipaddress192.168.2.254255.255.255.0
noipdirected-broadcast
!
interfaceVLAN81
ipaddress192.168.3.254255.255.255.0
noipdirected-broadcast
!
interfaceVLAN82
ipaddress192.168.4.254255.255.255.0
noipdirected-broadcast
!
interfaceVLAN91
ipaddress192.168.5.254255.255.255.0
noipdirected-broadcast
!
interfaceVLAN92
ipaddress192.168.6.254255.255.255.0
noipdirected-broadcast
!
!
!
vlan1,71-72,81-82,91-92
!
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 海康 6800 核心 交换机 配置 Vlan
![提示](https://static.bdocx.com/images/bang_tan.gif)