CISCO3560-VLAN配置实例

上传人:公**** 文档编号:479776515 上传时间:2022-12-10 格式:DOCX 页数:9 大小:135.28KB
返回 下载 相关 举报
CISCO3560-VLAN配置实例_第1页
第1页 / 共9页
CISCO3560-VLAN配置实例_第2页
第2页 / 共9页
CISCO3560-VLAN配置实例_第3页
第3页 / 共9页
CISCO3560-VLAN配置实例_第4页
第4页 / 共9页
CISCO3560-VLAN配置实例_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《CISCO3560-VLAN配置实例》由会员分享,可在线阅读,更多相关《CISCO3560-VLAN配置实例(9页珍藏版)》请在金锄头文库上搜索。

1、CISCO3560 VLAN配置实例原创规范1.注意事项1.1.交换机启动需要大约4-5分钟;1.2.网线插入交换机接口从黄变为绿需要大约1-2分钟,即进入正常工作模式;1.3.建议使用XP系统进行操作,2003默认没有安装超级终端,需要使用安装光盘添加该工具才有;1.4.请严格按照以下步骤进行,背景灰色字体为交换机显示信息,蓝色字体为配置命令。2.准备工作先保持交换机断电状态;使用调试串口线连接笔记本电脑的串口与交换机背面的CONSOLE接口;打开超级终端:开始-所有程序-附件-超级终端;配置超级终端:名称-cisco选择com1或com2(请依照实际情况进行选择)修改每秒位数为9600应用

2、-确定-回车;3.初始配置给交换机通电;片刻后会看到交换机的启动信息,直到出现以下配置选项:Would you like to terminate autoinstall? yes: noWould you like to enter the initial configuration dialog? yes/no:noWould you like to terminate autoinstall? yes: no4.出现命令窗口Switch5.备份出厂配置Switchen 进入特权模式Switch#copy running-config sfbak-configDestination fil

3、ename sfbak-config?回车片刻后会出现:1204 bytes copied in 0.529 secs (2276 bytes/sec)表示文件备份成功。6.配置账号密码Switch#configure terminal 进入配置子模式Switch(config)#enable password cisco 设置PASSWORD密码为ciscoSwitch(config)#enable secret cisco 设置SECRET密码为ciscoSwitch(config)#exit片刻后会出现:00:11:26: %SYS-5-CONFIG_I: Configured from

4、 console by console表示将配置保存到了内存中,在后面的配置过程中会出现类似的信息,属于正常现象。7.创建VLANSwitch#show vlan 查看VLAN信息,默认有一个VLAN 1,并且所有端口都属于它Switch#vlan database 进入VLAN子模式片刻后会出现:% Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for config

5、uring VTP/VLAN in config mode.属于正常的警告信息。Switch(vlan)#vlan 2 创建VLAN2片刻后会出现:VLAN 2 added:Name: VLAN0002表示VLAN创建成功。Switch(vlan)#vlan 3 创建VLAN3Switch(vlan)#exit8.为VLAN设置IP地址为VLAN2设置IP地址Switch#configure terminal 进入配置子模式Switch(config)#interface vlan 2 配置IP,VLAN2Switch(config-if)#ip address 133.37.125.5 25

6、5.255.255.0 设置交换机IP(具体IP请依照实际情况设置)Switch(config-if)#exit为VLAN3设置IP地址Switch(config)#interface vlan 3 配置IP,VLAN3Switch(config-if)#ip address 192.168.1.5 255.255.255.0 设置交换机IP(具体IP请依照实际情况设置)Switch(config-if)#exit9.为VLAN划分交换机接口配置1-12号电口为VLAN2Switch(config)#interface range fastEthernet 0/1 - 12 进入F0/1 到

7、F0/12Switch(config-if)#Switchport mode access 设成静态VLAN访问模式Switch(config-if)#Switchport access vlan 2 将此口分给VLAN2Switch(config-if)#exit=配置13-24号电口为VLAN3Switch(config)#interface range fastEthernet 0/13 - 24 进入F0/13 到 F0/24Switch(config-if)#Switchport mode access 设成静态VLAN访问模式Switch(config-if)#Switchport

8、 access vlan 3 将此口分给VLAN3Switch(config-if)#exit=配置1号光口为VLAN-2Switch(config)#interface GigabitEthernet 0/1 进入G0/1Switch(config-if)#Switchport mode access 设成静态VLAN访问模式Switch(config-if)#Switchport access vlan 2 将此口分给VLAN2Switch(config-if)#exit=配置2号光口为VLAN-3Switch(config)#interface GigabitEthernet 0/2 进

9、入G0/2Switch(config-if)#Switchport mode access 设成静态VLAN访问模式Switch(config-if)#Switchport access vlan 3 将此口分给VLAN3Switch(config-if)#exitSwitch(config)#exit10.关闭VLAN1Switch#configure terminal 进入配置子模式Switch(config)#interface vlan 1 配置VLAN1Switch(config-if)#shutdown 关闭VLAN1Switch(config-if)#exitSwitch(con

10、fig)#exitSwitch#show interface fastethernet0/1 status 查看F0/1网口状态Switch#show interface fastethernet0/1 查看F0/1网口详细配置Switch#show running-config 查看全局配置11.配置默认网关Switch#configure terminal 进入配置子模式Switch(config)#ip default-gateway 133.37.125.4Switch(config)#exit12.设置使可以远程telnet登陆Switch#configure terminal 进入

11、配置子模式Switch(config)#line vty 0 4Switch(config-line)#password ciscoSwitch(config-line)#loginSwitch(config-line)#exitSwitch(config)#exit13.保存当前配置Switch#copy running-config startup-configDestination filename startup-config?回车片刻后出现:Building configuration.OK表示当前配置保存成功。14.交换机配置情况图示配置完成,目前整个交换机配置情况如下:15.其它

12、相关知识交换机与交换机/路由器间级联通信:当级联的设备端口设置了trunk或划分了VLAN等情况,可能需要修改级联端口的工作模式为trunk模式才能实现相互之间的通信。如果是与电口级联,可以修改1号网口为trunk工作模式,使用该接口进行级联:Switch#configure terminal 进入配置子模式Switch(config)#interface fastethernet0/1 进入F0/1口Switch(config-if)#switchport trunk encapsulation dot1qSwitch(config-if)#switchport mode trunk 设成T

13、RUNK口Switch(config-if)#switchport trunk allowed vlan all 允许所有VLAN从此口通过Switch(config-if)#exitSwitch(config)#exit如果是与光纤接口级联,可以修改1号光纤接口为trunk工作模式,使用该接口进行级联:Switch#configure terminal 进入配置子模式Switch(config)#interface GigabitEthernet 0/1 进入G0/1Switch(config-if)#switchport trunk encapsulation dot1qSwitch(co

14、nfig-if)#switchport mode trunk 设成TRUNK口Switch(config-if)#switchport trunk allowed vlan all 允许所有VLAN从此口通过Switch(config-if)#exitSwitch(config)#exit执行后请按照第13步中的描述保存当前配置。WEB方式检查交换机状态:如果需要对交换机的状态进行实施查看,可以通过URL:http:/192.168.1.5 或 http:/133.37.125.5账号:admin密码:cisco登陆后进行查看。恢复交换机出厂设置:Switchen 进入特权模式Switch#w

15、rite eraseErasing the nvram filesystem will remove all configuration files! Continue? confirm回车OKErase of nvram: complete00:36:19: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvramSwitch# reloadProceed with reload? confirm回车00:36:59: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.片刻之后,交换机会进行重启,并在重启后恢复为出厂设置。远程通过telnet登陆交换机终端:将本机IP设置为与交换机VLAN2或VLAN3同一个网段;开始-运行-cmd;执

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 试题/考题 > 初中试题/考题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号