ImageVerifierCode 换一换
格式:DOC , 页数:9 ,大小:135.26KB ,
资源ID:3737141      下载积分:20 文钱
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,省得不是一点点
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wenke99.com/d-3737141.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(CISCO3560 VLAN配置实例.doc)为本站会员(11****ws)主动上传,文客久久仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知文客久久(发送邮件至hr@wenke99.com或直接QQ联系客服),我们立即给予删除!

CISCO3560 VLAN配置实例.doc

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

2、照实际情况进行选择)修改每秒位数为 9600应用-确定- 回车;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 sf

3、bak-configDestination filename 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: %

4、SYS-5-CONFIG_I: Configured from 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

5、 consult userdocumentation for configuring 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

6、,VLAN2Switch(config-if)#ip address 133.37.125.5 255.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 号电口为 V

7、LAN2Switch(config)#interface range fastEthernet 0/1 - 12 进入 F0/1 到 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(

8、config-if)#Switchport mode access 设成静态 VLAN 访问模式Switch(config-if)#Switchport 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 将此口分给 VLA

9、N2Switch(config-if)#exit=配置 2 号光口为 VLAN-3Switch(config)#interface GigabitEthernet 0/2 进入 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

10、)#interface vlan 1 配置 VLAN1Switch(config-if)#shutdown 关闭 VLAN1Switch(config-if)#exitSwitch(config)#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

11、)#ip default-gateway 133.37.125.4Switch(config)#exit12.设置使可以远程 telnet 登陆Switch#configure terminal 进入配置子模式Switch(config)#line vty 0 4Switch(config-line)#password ciscoSwitch(config-line)#loginSwitch(config-line)#exitSwitch(config)#exit13.保存当前配置Switch#copy running-config startup-configDestination file

12、name startup-config?回车片刻后出现:Building configuration.OK表示当前配置保存成功。14.交换机配置情况图示配置完成,目前整个交换机配置情况如下:15.其它相关知识交换机与交换机/路由器间级联通信:当级联的设备端口设置了 trunk 或划分了 VLAN 等情况,可能需要修改级联端口的工作模式为 trunk 模式才能实现相互之间的通信。如果是与电口级联,可以修改 1 号网口为 trunk 工作模式,使用该接口进行级联:Switch#configure terminal 进入配置子模式Switch(config)#interface fastethern

13、et0/1 进入 F0/1 口Switch(config-if)#switchport trunk encapsulation dot1qSwitch(config-if)#switchport mode trunk 设成 TRUNK 口Switch(config-if)#switchport trunk allowed vlan all 允许所有 VLAN 从此口通过Switch(config-if)#exitSwitch(config)#exit如果是与光纤接口级联,可以修改 1 号光纤接口为 trunk 工作模式,使用该接口进行级联:Switch#configure terminal 进

14、入配置子模式Switch(config)#interface GigabitEthernet 0/1 进入 G0/1Switch(config-if)#switchport trunk encapsulation dot1qSwitch(config-if)#switchport mode trunk 设成 TRUNK 口Switch(config-if)#switchport trunk allowed vlan all 允许所有 VLAN 从此口通过Switch(config-if)#exitSwitch(config)#exit执行后请按照第 13 步中的描述保存当前配置。WEB 方式检

15、查交换机状态:如果需要对交换机的状态进行实施查看,可以通过URL:http:/192.168.1.5 或 http:/133.37.125.5账号:admin密码:cisco登陆后进行查看。恢复交换机出厂设置:Switchen 进入特权模式Switch#write eraseErasing the nvram filesystem will remove all configuration files! Continue? confirm回车OKErase of nvram: complete00:36:19: %SYS-7-NV_BLOCK_INIT: Initialized the geo

16、metry 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;执行 telnet 133.37.125.5 或 telnet 192.168.1.5 即可。CISCO 交换机基本配置:Conso

17、le 端口连接 用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;交换机口令设置: switchenable ;进入特权模式switch#config terminal ;进入全局配置模式switch(config)#hostname csico ;设置交换机的主机名switch(config)#enable secret csico1 ;设置特权加密口令switch(config)#enable password csico8 ;设置特权非密口令switch(config)#line console 0

18、;进入控制台口switch(config-line)#line vty 0 4 ;进入虚拟终端switch(config-line)#login ;虚拟终端允许登录switch(config-line)#password csico6 ;设置虚拟终端登录口令 csico6switch#exit ;返回命令交换机 VLAN 创建,删除,端口属性的设置,配置 trunk 端口,将某端口加入 vlan 中,配置 VTP:switch#vlan database ;进入 VLAN 设置switch(vlan)#vlan 2 ;建 VLAN 2switch(vlan)#vlan 3 name vlan3

19、 ;建 VLAN 3 并命名为 vlan3switch(vlan)#no vlan 2 ;删 vlan 2switch(config)#int f0/1 ;进入端口 1switch(config)#speed ? 查看 speed 命令的子命令switch(config)#speed 100 设置该端口速率为 100mb/s (10/auto)switch(config)#duplex ? 查看 duplex 的子命令switch(config)#duplex full 设置该端口为全双工(auto/half)switch(config)#description TO_PC1 这是该端口描述为

20、 TO_PC1switch(config-if)#switchport access vlan 2 ;当前端口加入 vlan 2switch(config-if)#switchport mode trunk ;设置为 trunk 模式(access 模式)switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的 vlanswitch(config-if)#switchport trunk encap dot1q ;设置 vlan 中继switch(config)#vtp domain vtpserver ;设置 vtp 域名相同swi

21、tch(config)#vtp password ;设置发 vtp 密码switch(config)#vtp server ;设置 vtp 服务器模式switch(config)#vtp client ;设置 vtp 客户机模式交换机设置 IP 地址,默认网关,域名,域名服务器,配置和查看 MAC 地址表:switch(config)#interface vlan 1 ;进入 vlan 1switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置 IP 地址switch(config)#ip default-gateway 192.16

22、8.1.6 ;设置默认网关switch(config)#ip domain-name 设置域名switch(config)#ip name-server 192.168.1.18 设置域名服务器switch(config)#mac-address-table? 查看 mac-address-table 的子命令switch(config)#mac-address-table aging-time 100 设置超时时间为 100msswitch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在 f0/3 端口swit

23、ch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 加入静态地址目标端口 f0/6 源端口 f0/7switch(config)#endswitch#show mac-address-table 查看整个 MAC 地址表switch#clear mac-address-table restricted static 清除限制性静态地址交换机显示命令:switch#write ;保存配置信息switch#show vtp ;查看 vtp 配置信息switch#show run ;查看当前配置信息switc

24、h#show vlan ;查看 vlan 配置信息switch#show interface ;查看端口信息switch#show int f0/0 ;查看指定端口信息switch#show int f0/0 status;查看指定端口状态switch#dir flash: ;查看闪存-CISCO 2950 带光口的 24 口交换机 要把 122 口放在一个 VLAN1 里 23 和 24 口放在另一个VLAN2 里,机器的 IP 是 192.168.0.10 255.255.255.0 VLAN1 的 IP 是 192.168.1.0 255.255.255.0 VLAN2 的 IP 是 1

25、72.16.5.0 255.255.255.0所有接口默认都再 VLAN1 里 2950(switch)en 2950(switch)#vlan database 2950(switch)-vlan)#vlan 2 2950(switch-vlan)#exit 2950(switch)#configure terminal 2950(switch-config)#interface range Gig0/23 - 24 2950(switch-range)#switchport access vlan 2 2950(switch-range)#exit 2950(switch)#configure terminal 2950(switch-config)#interface vlan 1 2950(switch-vlan)#ip address 192.168.1.0 255.255.255.0 2950(switch-vlan)#no shut 2950(switch-vlan)#interface vlan 2 2950(switch-vlan)#ip address 172.16.5.0 255.255.255.0 2950(switch-vlan)#no shut

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。