1、Switch_config_if_range#Switch_config_if_range#no shutdown 备注:启用子板8(1-24#口)Switch_config_if_range#exit 备注:退出Switch_config#write 备注:保存配置VLAN子板位置交换机端口VLANIP段网关备注子板7光口1-12#VLAN71192.168.1.0-254192.168.1.254光口13-24#VLAN72192.168.2.0-254192.168.2.254子板8VLAN81192.168.3.0-254192.168.3.254VLAN82192.168.4.0-2
2、54192.168.4.254子板9电口1#方便客户搜索IP电口2#电口3#电口4#光口5-12#VLAN91192.168.5.0-254192.168.5.254VLAN92192.168.6.0-254192.168.6.254命令如下:Switch#config Switch_config#int vlan 71Switch_config_v71#ip address 192.168.1.254 255.255.255.0Switch_config_v71#quitSwitch_config#int vlan 72 Switch_config_v72#ip address 192.16
3、8.2.254 255.255.255.0Switch_config_v72#quitSwitch_config#int vlan 81 Switch_config_v81#ip address 192.168.3.254 255.255.255.0Switch_config_v81#quitSwitch_config#int vlan 82 Switch_config_v82#ip address 192.168.4.254 255.255.255.0Switch_config_v82#quitSwitch_config#int vlan 91 Switch_config_v91#ip ad
4、dress 192.168.5.254 255.255.255.0Switch_config_v91#quitSwitch_config#int vlan 92 Switch_config_v92#ip address 192.168.6.254 255.255.255.0Switch_config_v92#quitSwitch_config#writeSaving current configuration.OK!给端口配置IP:Switch_config#int range g 7/1 - 12Switch_config_if_range#switchport pvid 71% VLAN
5、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 upSwitch_config_if_range#quitSwitch_config#interface range g 7/13 - 24Switch_config_if_range#switchport pvid 72% VLAN does not exist, Creating vlan 72.15:15 %LINE-5-UPDO
6、WN: Line on Interface VLAN72, changed state to upSwitch_config#int range g 8/1 - 12 Switch_config_if_range#switchport pvid 81 % VLAN does not exist, Creating vlan 81.16:05 %LINE-5-UPDOWN: Line on Interface VLAN81, changed state to upSwitch_config_if_range#interface range g 8/13 - 24Switch_config_if_
7、range#switchport pvid 82 % VLAN does not exist, Creating vlan 82.26 %LINE-5-UPDOWN: Line on Interface VLAN82, changed state to upSwitch_config#interface range g 9/13 - 24Switch_config_if_range#switchport pvid 92 % VLAN does not exist, Creating vlan 92.17:39 %LINE-5-UPDOWN: Line on Interface VLAN92,
8、changed state to upNov 18 16:40 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN92, changed state to upSwitch_config#interface range g 9/5 - 12Switch_config_if_range#switchport pvid 91% VLAN does not exist, Creating vlan 91.18:46 %LINE-5-UPDOWN: Line on Interface VLAN91, changed state to up47 %L
9、INEPROTO-5-UPDOWN: Line protocol on Interface VLAN91, changed state to upSwitch_config#interface range g 9/1Incomplete commandSwitch_config#interface g 9/1Switch_config_g9/1#ssflow share-load short-ifdescr show shutdown slotsnmp spanning-tree speed storm-control switchportSwitch_config_g9/1#switchpo
10、rt pvid 71Switch_config_g9/1#Nov 18 16:20:29 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN71, changed state to upquitSwitch_config#interface g 9/2Switch_config_g9/2#switchport pvid 72Switch_config_g9/2#Nov 18 16:46 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN72, changed state to up Sw
11、itch_config_g9/2#quitSwitch_config#interface g 9/3Switch_config_g9/3#switchport pvid 81Switch_config_g9/3#Nov 18 16:21:14 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN81, changed state to upSwitch_config#interface g 9/4Switch_config_g9/4#switchport pvid 82Switch_config_g9/4#Nov 18 16:24:25 %LINEPROTO-5-UPDOWN: Line protocol on Interface VLAN82, changed state to upSwitch_config_g9/4#quitSwitch_config_if_range#switchport pvid 92
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1