说明:6800默认子板端口全部为shutdown状态(关闭-不启用),
双主控板—上电后,ACT灯亮为主控,不亮的为备用主控。
串口线接在主控板(ACT)上。
配置命令如下:
Switch>enable
Switch#
Switch#config 备注:进入配置模式
Switch_config#
Switch_config#interface range g 8/1-24 备注:配置子板8(1-24#口)
Switch_config_if_range#
Switch_config_if_range#no shutdown 备注:启用子板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#int vlan 71
Switch_config_v71#ip address 192.168.1.254 255.255.255.0
Switch_config_v71#quit
Switch_config#int vlan 72
Switch_config_v72#ip address 192.168.2.254 255.255.255.0
Switch_config_v72#quit
Switch_config#int vlan 81
Switch_config_v81#ip address 192.168.3.254 255.255.255.0
Switch_config_v81#quit
Switch_config#int vlan 82
Switch_config_v82#ip address 192.168.4.254 255.255.255.0
Switch_config_v82#quit
Switch_config#int vlan 91
Switch_config_v91#ip address 192.168.5.254 255.255.255.0
Switch_config_v91#quit
Switch_config#int vlan 92
Switch_config_v92#ip address 192.168.6.254 255.255.255.0
Switch_config_v92#quit
Switch_config#write
Saving current configuration...
OK!
给端口配置IP:
Switch_config#int range g 7/1 - 12
Switch_config_if_range#switchport pvid 71
% VLAN does not exist, Creating vlan 71.
Switch_config_if_range#Nov 18 16:07:42 %LINE-5-UPDOWN: Line on Interface VLAN71, changed state to up
Switch_config_if_range#quit
Switch_config#interface range g 7/13 - 24
Switch_config_if_range#switchport pvid 72
% VLAN does not exist, Creating vlan 72.
Switch_config_if_range#Nov 18 16:15:15 %LINE-5-UPDOWN: Line on Interface VLAN72, changed state to up
Switch_config_if_range#quit
Switch_config#int range g 8/1 - 12
Switch_config_if_range#switchport pvid 81
% VLAN does not exist, Creating vlan 81.
Switch_config_if_range#Nov 18 16:16:05 %LINE-5-UPDOWN: Line on Interface VLAN81, changed state to up
Switch_config_if_range#interface range g 8/13 - 24
Switch_config_if_range#switchport pvid 82
% VLAN does not exist, Creating vlan 82.
Switch_config_if_range#Nov 18 16:16:26 %LINE-5-UPDOWN: Line on Interface VLAN82, changed state to up
Switch_config_if_range#quit
Switch_config#interface range g 9/13 - 24
Switch_config_if_range#switchport pvid 92
% VLAN does not exist, Creating vlan 92.
Switch_config_if_range#Nov 18 16:17:39 %LINE-5-UPDOWN: Line on Interface VLAN92, changed state to up
Nov 18 16:17:40 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN92, changed state to up
Switch_config_if_range#quit
Switch_config#interface range g 9/5 - 12
Switch_config_if_range#switchport pvid 91
% VLAN does not exist, Creating vlan 91.
Switch_config_if_range#Nov 18 16:18:46 %LINE-5-UPDOWN: Line on Interface VLAN91, changed state to up
Nov 18 16:18:47 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN91, changed state to up
Switch_config_if_range#quit
Switch_config#interface range g 9/1
Incomplete command
Switch_config#interface g 9/1
Switch_config_g9/1#s
sflow share-load short-ifdescr show shutdown slot
snmp spanning-tree speed storm-control switchport
Switch_config_g9/1#switchport pvid 71
Switch_config_g9/1#Nov 18 16:20:29 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN71, changed state to up
quit
Switch_config#interface g 9/2
Switch_config_g9/2#switchport pvid 72
Switch_config_g9/2#Nov 18 16:20:46 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN72, changed state to up
Switch_config_g9/2#quit
Switch_config#interface g 9/3
Switch_config_g9/3#switchport pvid 81
Switch_config_g9/3#Nov 18 16:21:14 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN81, changed state to up
Switch_config#interface g 9/4
Switch_config_g9/4#switchport pvid 82
Switch_config_g9/4#Nov 18 16:24:25 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN82, changed state to up
Switch_config_g9/4#quit
Switch_config#interface range g 9/13 - 24
Switch_config_if_range#switchport pvid 92
% VLAN does not exist, Creating vlan 92.
Switch_config_if_range#Nov 18 16:17:39 %LINE-5-UPDOWN: Line on Interface VLAN92, changed state to up
Nov 18 16:17:40 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN92, changed state to up
Switch_config_if_range#quit
Switch_config#interface range g 9/5 - 12
Switch_config_if_range#switchport pvid 91
% VLAN does not exist, Creating vlan 91.
Switch_config_if_range#Nov 18 16:18:46 %LINE-5-UPDOWN: Line on Interface VLAN91, changed state to up
Nov 18 16:18:47 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN91, changed state to up
Switch_config_if_range#quit
查看配置:
Switch_config#show run
Building configuration...
Current configuration:
!
!version 4.1.1B build 19169
service timestamps log date
service timestamps debug date
!
!
!
!
!
!
!
!
!
!
spanning-tree mode rstp
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Null0
!
interface GigaEthernet6/0
no ip address
no ip directed-broadcast
!
!!slot 7 24
interface GigaEthernet7/1
switchport pvid 71
!
interface GigaEthernet7/2
switchport pvid 71
!
interface GigaEthernet7/3
switchport pvid 71
!
interface GigaEthernet7/4
switchport pvid 71
!
interface GigaEthernet7/5
switchport pvid 71
!
interface GigaEthernet7/6
switchport pvid 71
!
interface GigaEthernet7/7
switchport pvid 71
!
interface GigaEthernet7/8
switchport pvid 71
!
interface GigaEthernet7/9
switchport pvid 71
!
interface GigaEthernet7/10
switchport pvid 71
!
interface GigaEthernet7/11
switchport pvid 71
!
interface GigaEthernet7/12
switchport pvid 71
!
interface GigaEthernet7/13
switchport pvid 72
!
interface GigaEthernet7/14
switchport pvid 72
!
interface GigaEthernet7/15
switchport pvid 72
!
interface GigaEthernet7/16
switchport pvid 72
!
interface GigaEthernet7/17
switchport pvid 72
!
interface GigaEthernet7/18
switchport pvid 72
!
interface GigaEthernet7/19
switchport pvid 72
!
interface GigaEthernet7/20
switchport pvid 72
!
interface GigaEthernet7/21
switchport pvid 72
!
interface GigaEthernet7/22
switchport pvid 72
!
interface GigaEthernet7/23
switchport pvid 72
!
interface GigaEthernet7/24
switchport pvid 72
!
!!slot end
!
!!slot 8 24
interface GigaEthernet8/1
switchport pvid 81
!
interface GigaEthernet8/2
switchport pvid 81
!
interface GigaEthernet8/3
switchport pvid 81
!
interface GigaEthernet8/4
switchport pvid 81
!
interface GigaEthernet8/5
switchport pvid 81
!
interface GigaEthernet8/6
switchport pvid 81
!
interface GigaEthernet8/7
switchport pvid 81
!
interface GigaEthernet8/8
switchport pvid 81
!
interface GigaEthernet8/9
switchport pvid 81
!
interface GigaEthernet8/10
switchport pvid 81
!
interface GigaEthernet8/11
switchport pvid 81
!
interface GigaEthernet8/12
switchport pvid 81
!
interface GigaEthernet8/13
switchport pvid 82
!
interface GigaEthernet8/14
switchport pvid 82
!
interface GigaEthernet8/15
switchport pvid 82
!
interface GigaEthernet8/16
switchport pvid 82
!
interface GigaEthernet8/17
switchport pvid 82
!
interface GigaEthernet8/18
switchport pvid 82
!
interface GigaEthernet8/19
switchport pvid 82
!
interface GigaEthernet8/20
switchport pvid 82
!
interface GigaEthernet8/21
switchport pvid 82
!
interface GigaEthernet8/22
switchport pvid 82
!
interface GigaEthernet8/23
switchport pvid 82
!
interface GigaEthernet8/24
switchport pvid 82
!
!!slot end
!
!!slot 9 23
interface GigaEthernet9/1
switchport pvid 71
!
interface GigaEthernet9/2
switchport pvid 72
!
interface GigaEthernet9/3
switchport pvid 81
!
interface GigaEthernet9/4
switchport pvid 81
!
interface GigaEthernet9/5
switchport pvid 91
!
interface GigaEthernet9/6
switchport pvid 91
!
interface GigaEthernet9/7
switchport pvid 91
!
interface GigaEthernet9/8
switchport pvid 91
!
interface GigaEthernet9/9
switchport pvid 91
!
interface GigaEthernet9/10
switchport pvid 91
!
interface GigaEthernet9/11
switchport pvid 91
!
interface GigaEthernet9/12
switchport pvid 91
!
interface GigaEthernet9/13
switchport pvid 92
!
interface GigaEthernet9/14
switchport pvid 92
!
interface GigaEthernet9/15
switchport pvid 92
!
interface GigaEthernet9/16
switchport pvid 92
!
interface GigaEthernet9/17
switchport pvid 92
!
interface GigaEthernet9/18
switchport pvid 92
!
interface GigaEthernet9/19
switchport pvid 92
!
interface GigaEthernet9/20
switchport pvid 92
!
interface GigaEthernet9/21
switchport pvid 92
!
interface GigaEthernet9/22
switchport pvid 92
!
interface GigaEthernet9/23
switchport pvid 92
!
interface GigaEthernet9/24
switchport pvid 92
!
!!slot end
!
interface VLAN71
ip address 192.168.1.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN72
ip address 192.168.2.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN81
ip address 192.168.3.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN82
ip address 192.168.4.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN91
ip address 192.168.5.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN92
ip address 192.168.6.254 255.255.255.0
no ip directed-broadcast
!
!
!
vlan 1,71-72,81-82,91-92
!
!
no ip igmp-proxy enable
!
!
!
!
!
!
!
!
!
!
!
ip exf
!
ipv6 exf
!
!
!
!
!
!
!
!
!
!
!
!
!
!Pending configurations for absent linecards:
!
!No configurations pending global
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#interface g 9/4
Switch_config_g9/4#switchport pvid 82
Switch_config_g9/4#Nov 18 16:24:25 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN82, changed state to up
quit
Switch_config#write
Saving current configuration...
OK!
Synchronizing startup-config to backup card...
OK!
Switch_config#Nov 18 16:24:36 check SLOT 5 IOS consistency..........
Nov 18 16:24:36 SLOT 5 is forced to update, start updating.......
Nov 18 16:24:42 successful send 4542 bytes to SLOT 5
Nov 18 16:24:42 SLOT 5 file syn finished
Nov 18 16:24:42 SLOT 5 update OK,consumed time is 7s
Switch_config#
Switch_config#
Switch_config#
Switch_config#
Switch_config#show run
Building configuration...
Current configuration:
!
!version 4.1.1B build 19169
service timestamps log date
service timestamps debug date
!
!
!
!
!
!
!
!
!
!
spanning-tree mode rstp
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Null0
!
interface GigaEthernet6/0
no ip address
no ip directed-broadcast
!
!!slot 7 24
interface GigaEthernet7/1
switchport pvid 71
!
interface GigaEthernet7/2
switchport pvid 71
!
interface GigaEthernet7/3
switchport pvid 71
!
interface GigaEthernet7/4
switchport pvid 71
!
interface GigaEthernet7/5
switchport pvid 71
!
interface GigaEthernet7/6
switchport pvid 71
!
interface GigaEthernet7/7
switchport pvid 71
!
interface GigaEthernet7/8
switchport pvid 71
!
interface GigaEthernet7/9
switchport pvid 71
!
interface GigaEthernet7/10
switchport pvid 71
!
interface GigaEthernet7/11
switchport pvid 71
!
interface GigaEthernet7/12
switchport pvid 71
!
interface GigaEthernet7/13
switchport pvid 72
!
interface GigaEthernet7/14
switchport pvid 72
!
interface GigaEthernet7/15
switchport pvid 72
!
interface GigaEthernet7/16
switchport pvid 72
!
interface GigaEthernet7/17
switchport pvid 72
!
interface GigaEthernet7/18
switchport pvid 72
!
interface GigaEthernet7/19
switchport pvid 72
!
interface GigaEthernet7/20
switchport pvid 72
!
interface GigaEthernet7/21
switchport pvid 72
!
interface GigaEthernet7/22
switchport pvid 72
!
interface GigaEthernet7/23
switchport pvid 72
!
interface GigaEthernet7/24
switchport pvid 72
!
!!slot end
!
!!slot 8 24
interface GigaEthernet8/1
switchport pvid 81
!
interface GigaEthernet8/2
switchport pvid 81
!
interface GigaEthernet8/3
switchport pvid 81
!
interface GigaEthernet8/4
switchport pvid 81
!
interface GigaEthernet8/5
switchport pvid 81
!
interface GigaEthernet8/6
switchport pvid 81
!
interface GigaEthernet8/7
switchport pvid 81
!
interface GigaEthernet8/8
switchport pvid 81
!
interface GigaEthernet8/9
switchport pvid 81
!
interface GigaEthernet8/10
switchport pvid 81
!
interface GigaEthernet8/11
switchport pvid 81
!
interface GigaEthernet8/12
switchport pvid 81
!
interface GigaEthernet8/13
switchport pvid 82
!
interface GigaEthernet8/14
switchport pvid 82
!
interface GigaEthernet8/15
switchport pvid 82
!
interface GigaEthernet8/16
switchport pvid 82
!
interface GigaEthernet8/17
switchport pvid 82
!
interface GigaEthernet8/18
switchport pvid 82
!
interface GigaEthernet8/19
switchport pvid 82
!
interface GigaEthernet8/20
switchport pvid 82
!
interface GigaEthernet8/21
switchport pvid 82
!
interface GigaEthernet8/22
switchport pvid 82
!
interface GigaEthernet8/23
switchport pvid 82
!
interface GigaEthernet8/24
switchport pvid 82
!
!!slot end
!
!!slot 9 23
interface GigaEthernet9/1
switchport pvid 71
!
interface GigaEthernet9/2
switchport pvid 72
!
interface GigaEthernet9/3
switchport pvid 81
!
interface GigaEthernet9/4
switchport pvid 82
!
interface GigaEthernet9/5
switchport pvid 91
!
interface GigaEthernet9/6
switchport pvid 91
!
interface GigaEthernet9/7
switchport pvid 91
!
interface GigaEthernet9/8
switchport pvid 91
!
interface GigaEthernet9/9
switchport pvid 91
!
interface GigaEthernet9/10
switchport pvid 91
!
interface GigaEthernet9/11
switchport pvid 91
!
interface GigaEthernet9/12
switchport pvid 91
!
interface GigaEthernet9/13
switchport pvid 92
!
interface GigaEthernet9/14
switchport pvid 92
!
interface GigaEthernet9/15
switchport pvid 92
!
interface GigaEthernet9/16
switchport pvid 92
!
interface GigaEthernet9/17
switchport pvid 92
!
interface GigaEthernet9/18
switchport pvid 92
!
interface GigaEthernet9/19
switchport pvid 92
!
interface GigaEthernet9/20
switchport pvid 92
!
interface GigaEthernet9/21
switchport pvid 92
!
interface GigaEthernet9/22
switchport pvid 92
!
interface GigaEthernet9/23
switchport pvid 92
!
interface GigaEthernet9/24
switchport pvid 92
!
!!slot end
!
interface VLAN71
ip address 192.168.1.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN72
ip address 192.168.2.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN81
ip address 192.168.3.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN82
ip address 192.168.4.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN91
ip address 192.168.5.254 255.255.255.0
no ip directed-broadcast
!
interface VLAN92
ip address 192.168.6.254 255.255.255.0
no ip directed-broadcast
!
!
!
vlan 1,71-72,81-82,91-92
!
!
no ip igmp-proxy enable
!
!
!
!
!
!
!
!
!
!
!
ip exf
!
ipv6 exf
!
!
!
!
!
!
!
!
!
!
!
!
!
!Pending configurations for absent linecards:
!
!No configurations pending global
Switch_config#
Switch_config#
Switch_config#
刘家峡ip分配表,摄像机用两个网段,192.168.0.0-254 和192.168.1.0-254
主端设备用192.168.0.0-19 门禁192.168.0.20-39 下载本文