海康6800核心交换机配置及划Vlan副本优质文档Word下载.docx
《海康6800核心交换机配置及划Vlan副本优质文档Word下载.docx》由会员分享,可在线阅读,更多相关《海康6800核心交换机配置及划Vlan副本优质文档Word下载.docx(27页珍藏版)》请在冰豆网上搜索。
![海康6800核心交换机配置及划Vlan副本优质文档Word下载.docx](https://file1.bdocx.com/fileroot1/2022-10/12/1bf16594-3a6f-4830-98a7-6dd61ed42889/1bf16594-3a6f-4830-98a7-6dd61ed428891.gif)
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
光口13-24#
VLAN72
192.168.2.0-254
192.168.2.254
子板8
VLAN81
192.168.3.0-254
192.168.3.254
VLAN82
192.168.4.0-254
192.168.4.254
子板9
电口1#
方便客户搜索IP
电口2#
电口3#
电口4#
光口5-12#
VLAN91
192.168.5.0-254
192.168.5.254
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.
15:
15%LINE-5-UPDOWN:
LineonInterfaceVLAN72,changedstatetoup
Switch_config#intrangeg8/1-12
Switch_config_if_range#switchportpvid81
%VLANdoesnotexist,Creatingvlan81.
16:
05%LINE-5-UPDOWN:
LineonInterfaceVLAN81,changedstatetoup
Switch_config_if_range#interfacerangeg8/13-24
Switch_config_if_range#switchportpvid82
%VLANdoesnotexist,Creatingvlan82.
26%LINE-5-UPDOWN:
LineonInterfaceVLAN82,changedstatetoup
Switch_config#interfacerangeg9/13-24
Switch_config_if_range#switchportpvid92
%VLANdoesnotexist,Creatingvlan92.
17:
39%LINE-5-UPDOWN:
LineonInterfaceVLAN92,changedstatetoup
Nov1816:
40%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN92,changedstatetoup
Switch_config#interfacerangeg9/5-12
Switch_config_if_range#switchportpvid91
%VLANdoesnotexist,Creatingvlan91.
18:
46%LINE-5-UPDOWN:
LineonInterfaceVLAN91,changedstatetoup
47%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceVLAN91,changedstatetoup
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:
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_if_range#switchportpvid92