思科交换机cisco2950的Boot过程
最新思科cisco2950交换机配置手册(中文)

2950交换机简明配置维护手册目录第1章说明 (3)第2章产品特性 (3)第3章配置端口 (3)3.1配置一组端口 (3)3.2配置二层端口 (5)3.2.1配置端口速率及双工模式 (6)3.2.2端口描述 (7)3.3监控及维护端口 (8)3.3.1监控端口和控制器的状态 (8)3.3.2刷新、重置端口及计数器 (10)3.3.3关闭和打开端口 (10)第4章配置VLAN (11)4.1理解VLAN (11)4.2可支持的VLAN (12)4.3配置正常范围的VLAN (12)4.3.1生成、修改以太网VLAN (13)4.3.2删除VLAN (15)4.3.3将端口分配给一个VLAN (15)4.4配置VLAN Trunks (16)4.4.2使用STP实现负载均衡 (19)第5章配置Cluster (23)第1章说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。
第2章产品特性2950是只支持二层的交换机支持VLAN•到250 个VLAN•支持VLAN ID从1到4094(IEEE 802.1Q 标准)•支持ISL及IEEE 802.1Q封装安全•支持IOS标准的密码保护•支持标准及扩展的访问列表来定义安全策略•支持基于VLAN的访问列表监视•交换机LED指示端口状态•SPAN及远端SPAN (RSPAN) 可以监视任何端口或VLAN的流量•内置支持四组的RMON监控功能(历史、统计、告警及事件)第3章配置端口3.1 配置一组端口当使用interface range命令时有如下的规则:•有效的组范围:o vlan从1 到4094o fastethernet槽位/{first port} - {last port}, 槽位为0o gigabitethernet槽位/{first port} - {last port},槽位为0o port-channel port-channel-number - port-channel-number, port-channel号从1到64•端口号之间需要加入空格,如:interface range fastethernet 0/1 –5是有效的,而interface range fastethernet 0/1-5是无效的.•interface range命令只能配置已经存在的interface vlan•所有在同一组的端口必须是相同类别的。
思科Catalyst2960 初始化配置

思科 Catalyst 2950/2960 初始化配置新购的思科交换机往往都没有说明书,要进行初始化配置,一般都需要专业的网络工程师,通过用CISCO随机带CONSOLE线,一端连在CISCO交换机的CONSOLE 口,一端连在计算机的COM口进行设置,这个我们下次再谈,先谈谈菜鸟级的配置。
实际上思科 Catalyst 2950/2960 已经具备了WEB的初始化设置功能,只是没有说明书或者是全英文的说明书,很多人不太了解,我们现在就讲讲这个,以方便非网络专业人员学习和设置。
第一步:交换机通电,各LED灯会依次不停的闪烁,等待3分钟。
第二步:等各LED灯无变化后,按下MODE按钮3-4秒不松,待MODE按钮上面的LED灯全亮后松开MODE按钮这个时候,交换机已经进入了设置状态第三步:将你的计算机网卡设置为自动获取IP地址,并打开DHCP第四步:将网络线(直通线)一头接到计算机的网卡,另一头接到交换机的1X 口,(注意:一定要1X口,其他口不行)这个时候你可以在计算机输入命令,CMD / ipconfig 你可以发现,你计算机取到的ip地址是 10.0.0.2如果不是,请重新从第一步开始。
第五步:打开计算机的浏览器,输入10.0.0.1 即可出现交换机的配置窗口,我的2960配置窗口居然还是全中文的,好爽。
第六步:依次按说明输入交换机的ip地址、子网掩码、网关、交换机名称、密码,以及远程telnet管理密码,点提交即可。
第七步:交换机将重新启动,按新的ip连接交换机即可。
整个初始化配置完成,是不是很简单,接下来你有三种方式进入交换机。
1. 还是通过计算机的COM口连接到交换机的CONSOLE口,这个我们下次再谈2. 通过计算机上的浏览器输入交换机的ip地址,输入交换机密码进入3. 通过计算机超级终端TCP/IP方式进入,输入交换机密码进入远程管理密码进入今天就到这里,下次我们谈谈通过CONSOLE口的配置。
Cisco 2950交换机简要使用说明

Cisco 2950交换机简要使用说明目录1 概述 (3)2 配置端口 (3)2.1 配置一个端口 (3)2.2 配置一组端口 (4)2.3 配置二层端口 (5)2.3.1 配置端口速率及双工模式 (5)2.4 监控及维护端口 (6)2.4.1 监控端口和控制器的状态 (6)2.4.2 刷新、重置端口及计数器 (6)2.4.3 关闭和打开端口 (7)3 配置VLAN (8)3.1 理解VLAN (8)3.2 可支持的VLAN (8)3.3 配置正常范围的VLAN (9)3.3.1 生成、修改以太网VLAN (9)3.3.2 删除VLAN (10)3.3.3 将端口分配给一个VLAN (11)3.4 配置VLAN Trunks (12)3.4.1 定义trunk允许的VLAN (13)3.4.2 配置Native VLAN(802.1q) (14)3.5 使用VTP (14)3.5.1 VTP管理域设置 (14)3.5.2 VTP中继设置 (15)3.5.3 创建VLAN和分配端口到VLAN (15)4 访问控制(ACL) (15)4.1 以数值命名的ACL (16)4.1.1 创建标准IP ACL (17)4.1.2 创建扩展IP ACL (17)4.2 以字符命名的ACL (18)4.2.1 创建标准IP ACL (19)4.2.2 创建扩展IP ACL (19)4.3 在接口上应用IP ACL (20)5 网络风暴控制 (20)5.1 网络风暴控制设置原则 (20)5.2 设置网络风暴控制参数 (21)5.3 取消网络风暴控制 (21)6 使用STP实现负载均衡 (21)6.1 使用STP端口权值的负载均衡 (22)6.2 配置STP路径值的负载均衡 (24)1 概述本使用说明只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。
cisco 2950是只支持二层特性的交换机。
2950交换机的详细配置

2950交换机的详细配置switch> 用户模式1:进入特权模式 enableswitch> enableswitch#2:进入全局配置模式 configure terminalswitch> enableswitch#configure terminalswitch(conf)#3:交换机命名 hostname aptech2950 以aptech2950为例switch> enableswitch#configure terminalswitch(conf)#hostname aptch-2950aptech2950(conf)#4:配置使能口令 enable password cisco 以cisco为例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable password cisco5:配置使能密码 enable secret ciscolab 以cicsolab为例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable secret ciscolab6:设置虚拟局域网vlan 1 inte***ce vlan 1switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# inte***ce vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码aptech2950(conf-if)#no shut 使配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 设置网关地址7:进入交换机某一端口 inte***ce fastehernet 0/17 以17端口为例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# inte***ce fastehernet 0/17aptech2950(conf-if)#8:查看命令 showswitch> enableswitch# show version 察看系统中的所有版本信息show inte***ce vlan 1 查看交换机有关ip 协议的配置信息show running-configure 查看交换机当前起作用的配置信息show inte***ce fastethernet 0/1 察看交换机1接口具体配置和统计信息show mac-address-table 查看mac地址表show mac-address-table aging-time 查看mac地址表自动老化时间9:交换机恢复出厂默认恢复命令switch> enableswitch# erase startup-configureswitch# reload10:双工模式设置switch> enableswitch#configure terminalswitch2950(conf)#hostname aptch-2950aptech2950(conf)# inte***ce fastehernet 0/17 以17端口为例aptech2950(conf-if)#duplex full/half/auto 有full , half, auto 三个可选项11:cdp相关命令switch> enableswitch# show cdp 查看设备的cdp全局配置信息show cdp inte***ce fastethernet 0/17 查看17端口的cdp配置信息show cdp traffic 查看有关cdp包的统计信息show cdp nerghbors 列出与设备相连的cisco设备12:csico2950的密码恢复拔下交换机电源线。
Catalyst2950交换机维护手册

Catalyst2950交换机维护手册——Ver.1——信息系统部历史信息目录1 CATALYST2950交换机简述 (1)1.1外观 (1)1.2性能简述 (1)2设备硬件方面维护 (1)2.1环境要求 (1)2.2电源要求 (2)3设备配置维护 (2)3.1连接设备 (2)3.1.1从console连接 (2)3.1.2 远程telnet连接 (5)3.2基本信息配置 (5)3.2.1 配置机器名、telnet、密码 (5)3.2.2 配置snmp (5)3.3端口设置 (6)3.3.1 基本设置 (6)3.4配置二层端口 (6)3.4.1 配置Trunk (6)3.4.2 配置二层普通交换接口 (6)3.4.3 清除二层接口配置 (6)3.5配置V LAN (7)3.5.1 添加vlan (7)3.5.2 删除VLAN (7)3.5.3 将端口分配给vlan (7)4. 交换机日常维护 (7)4.1保存配置文件 (7)4.2配置文件保存目录 (8)4.3交换机IOS保存和升级 (8)4.4交换机密码恢复 (8)4.5修改登录交换机口令 (9)1 Catalyst2950交换机简述Catalyst 2950是只支持二层的交换机,该系列交换机包括多款固定配置的交换机,公司所使用的2950系列交换机包括WS-2950G-48、WS-2950G-24、WS-2950T-24、WS-2950-24四种型号交换机。
其中WS-2950G-48、WS-2950G-24可以同时为中小型网络提供线速的快速以太网和千兆位以太网连接。
Cisco Catalyst 2950系列是一个价格适中的产品线,保持传统LAN交换的简便性。
型号图片硬件描述WS-2950G-4848个10/100端口和2个基于千兆位接口转换器(GBIC)的千兆位以太网端口WS-2950G-2424个10/100端口和2个基于千兆位接口转换器(GBIC)的千兆位以太网WS-2950T-2424个10/100端口和2个固定的1000BASE-T 上行链路端口WS-2950-2424个10/100端口1.2性能简述1)WS-2950G-48:13.6Gbps最大转发带宽;WS-2950G-24:8.8Gbps最大转发带宽;WS-2950T-24:8.8Gbps最大转发带宽;WS-2950-24:5.2Gbps最大转发带宽;2)最高16MB SDRAN和8MB闪存;3)可配置250个Vlan;4)可以设置的最大传输单元(MTU)为1530字节(只限Catalyst 2950G交换机)。
实验4交换机的启动和基本配置

实验指导4 交换机的启动和基本配置(2课时)一.实验目的:1.掌握Cisco C2950系列二层交换机的启动和基本设置的操作;2.掌握配置交换机的常用命令。
二.实验内容1.对Cisco C2950系列交换机的启动和基本设置的操作;2.熟悉交换机的开机画面;3.对交换机进行基本的配置;4.理解交换机的端口、编号及配置。
三.实验环境的搭建通过Console电缆把PC机的COM端口和交换机的Console端口连接起来, 如图示。
1. 准备PC机1台,操作系统为Windows2000 Professional;2. 准备Cisco Catalyst 2950-24交换机1台;3. Console电缆1条。
四.实验操作实践与步骤1.串口管理用串口对交换机进行配置是我们在网络工程中对交换机进行配置最基本最常用的方法。
用串口配置交换机是通过Console电缆把PC机的COM端口和交换机的Console端口连接起来。
在开始附件通讯超级终端步骤: 1) 通过Console电缆把PC机的COM端口和交换机的Console端口连接起来。
并确认连接PC机的串口是COM1还是COM2, 给交换机加电。
2) 启动Windows2000 自带的超级终端程序, 选择通信串口(COM1或COM2) 。
3) 超级终端程序的COM端口参数设置如图示。
都是以这个参数设置强调:(硬件连接或仿真软件)若没有接交换机,或选择端口错误就看不到终端连接过程三个步骤:物理连接、登陆、连接2. 交换机的启动仔细观察交换机启动过程的信息:C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1) Compiled Mon 22-Jul-02 17:18 by antoninoWS-C2950-24 starting...Baseethernet MAC Address: 00:0d:28:be:3f:40Xmodem file system is available.Initia lizing Flash…….POST: System Board Test : PassedPOST: Ethernet Controller Test : PassedASIC Initialization Passed3. 对交换机进行基本的配置Switch>?Switch>enableSwitch#config tSwitch(config)#?Switch(config)#hostname S2950S2950(config)#enable password cisco (口令)S2950(config)#exit 退出前输入show copyS2950#S2950#show running-config/ startup-config断开与交换机的连接enPassword: *****no password cisco断开与交换机的连接enenable secret(密码) ciscosho ru断开与交换机的连接enPassword: *****sho versionsho ruwrreloadSystem configuration has been modified. Save? [yes/no]: y Building configuration...[OK]Proceed with reload? [confirm]关闭交换机电源重新启动enPassword: *******sho ru4. 交换机端口的配置Switch>?Switch>enableSwitch#config tSwitch(config)#?Switch(config)#hostname S2950S2950(config)#S2950(config)#?S2950(config)#int ?S2950(config)#interface fastethernet1. interface f0/2进入 S2950(config-if)#?进入 duplex full 全双工进入 S2950(config-if)#必须设置 S2950(config-if)# speed设置成 auto 不行然后设置成100之后重新设置 deplex full成功进入设置全双工的信息 description 设置成 description topc1完成之后必须设置激活端口 no shutdown @@@@@@@@非常重要,必须激活端口。
配置Cisco2950交换机
/view/d8093e8884868762caaed574.html配置Cisco2950交换机一.CISCO2950交换机的基本配置Switch>Switch>enable 进入特权执行模式Switch#Switch#show running-config 列出运行配置清单Switch#config terminal 进入配置模式Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#Switch(config)#enable password cisco 设置enable口令Switch(config)#enable secret cisco1 设置enable密码Switch(config)#hostname c2950 设置主机名c2950(config)#interface VLAN 1 进入VLAN 1的配置模式c2950(config-if)#ip address 192.168.1.2 255.255.255.0c2950(config-if)#no shut 保存配置c2950(config-if)exit 退出c2950(config)#ip default-gateway 192.168.1.10 设置缺省网关c2950(config)#ip domain-name 设置域名c2950(config)#ip name-server 202.1.1.1 202.1.1.2 设置域名服务器地址c2950(config)#^Zc2950#show version 查看版本信息c2950#show interface VLAN 1 查看VLAN 1的配置和统计信息二.配置CISCOc2950交换机的端口属性c2950(config)#interface fastEthernet 0/1进入子接口配置模式c2950(config-if)c2950(config-if)#speed ?10 Force 10 Mbps operation100 Force 100 Mbps operationauto Enable AUTO speed configurationc2950(config-if)#speed 100 设置端口速率为100Mbit/sc2950(config-if)#duplex ?auto Enable AUTO duplex configurationfull Force full duplex operationhalf Force half-duplex operationc2950(config-if)#duplex full 设置端口为全双工c2950(config-if)description TO_PC1 端口描述c2950(config)#^Zc2950#show interface fastEthernet 0/1c2950#show interface fastEthernet 0/1 statusc2950#show interface fastEthernet 0/1 description三.配置 VTP.VLAN和VLAN Trunk两台2950交换机:c2950A,c2950B(1)配置c2950A交换机的VTP和VLANc2950A#vlan database 进入VLAN配置模式c2950A(vlan)#vtp ?client Set the device to client mode.domain Set the name of the VTP administrative domain.password Set the password for the VTP administrative domain. pruning Set the administrative domain to permit pruning.server Set the device to server mode.transparent Set the device to transparent mode.v2-mode Set the administrative domain to V2 modec2950A(vlan)#vtp server 设置VTP模式Device mode already VTP SERVERc2950A(vlan)#vtp domain test 设置VTP域名Changing VTP domain name from NULL to testc2950A(vlan)#vlan 10 name v10 定义VLANVLAN 10 added:Name: v10c2950A(vlan)#c2950A(vlan)#vlan 11 name v11VLAN 11 added:Name: v11c2950A(vlan)#vlan 12 name v12VLAN 11 added:Name: v12c2950A(vlan)#vlan 13 name v13VLAN 13 added:Name: v13c2950A(vlan)#exitAPPLY completed.Exiting....c2950A#show vtp status 查看VTP状态c2950A#show vtp counters 查看VTP统计数据c2950A(config)#interface fastEthernet 0/1c2950A(config-if)#switchport mode access设置静态VLAN访问模式c2950A(config-if)#switchport acces vlan 10配置VLAN的归属c2950A(config-if)#exitc2950A(config)#interface fastEthernet 0/2c2950A(config-if)#switchport mode accessc2950A(config-if)#switchport acces vlan 11c2950A(config)#interface fastEthernet 0/3c2950A(config-if)#switchport mode accessc2950A(config-if)#switchport acces vlan 12c2950A(config)#interface fastEthernet 0/4c2950A(config-if)#switchport mode accessc2950A(config-if)#switchport acces vlan 13c2950A(config-if)#^Zc2950A#show vlan 查看VLAN信息c2950A#show vlan brief以简捷的形式查看VLAN信息(2)配置c2950B交换机的VTPc2950B(config)#interface vlan 1c2950B(config-if)#ip address 192.168.1.1 255.255.255.0c2950B(config-if)#no shutc2950B(config)#^Zc2950B#vlan databasec2950B(vlan)#vtp domain test 设置VTP域名Changing VTP domain name from NULL to testc2950B(vlan)#vtp clientSetting device to VTP CLIENT mode.c2950B(vlan)#exitAPPLY completed.Exiting....c2950B#(3)配置和监测C2950A和C2950B交换机之间VLAN trunkc2950Ac2950A(config)#interface fastEthernet 0/24c2950A(config)#switchport mode trunk 把端口设置成trunk模式c2950A(config-if)#^Zc2950A#show interface fastEthernet 0/24 查看相应端口的交换属性c2950Bc2950B(config)#interface fastEthernet 0/24c2950B(config)#switchport mode trunk 把端口设置成trunk模式c2950B(config-if)#^Zc2950B#show interface fastEthernet 0/24 查看相应端口的交换属性(4)在c2950B上查看VTP和VLAN信息c2950B#show vtp status 查看VTP状态c2950B#ping 192.168.1.1一、基于端口的MAC地址绑定思科2950交换机为例,登录进入交换机,输入管理口令进入配置模式,敲入命令:Switch#c onfig terminal进入配置模式Switch(config)# Interface fastethernet 0/1#进入具体端口配置模式Switch(config-if)#Switchport port-secruity#配置端口安全模式Switch(config-if )switchport port-security mac-address MAC(主机的MAC地址)#配置该端口要绑定的主机的MAC地址Switch(config-if )no switchport port-security mac-address MAC(主机的MAC地址)#删除绑定主机的MAC地址二、基于MAC地址的扩展访问列表Switch(config)Mac access-list extended MAC#定义一个MAC地址访问控制列表并且命名该列表名为MACSwitch(config)permit host 0009.6bc4.d4bf any#定义MAC地址为0009.6bc4.d4bf的主机可以访问任意主机Switch(config)permit any host 0009.6bc4.d4bf#定义所有主机可以访问MAC地址为0009.6bc4.d4bf的主机Switch(config-if )interface Fa0/20#进入配置具体端口的模式Switch(config-if )mac access-group MAC in#在该端口上应用名为MAC的访问列表(即前面我们定义的访问策略)Switch(config)no mac access-list extended MAC#清除名为MAC的访问列表三、IP地址的MAC地址绑定只能将应用1或2与基于IP的访问控制列表组合来使用才能达到IP-MAC 绑定功能。
思科2950-24参考命令
思科2950-24参考命令思科2950-24参考命令一,进入交换机switch>enable //进入特权模式Switch#configure terminal //进入全局配置模式Switch(config)#hostname CS2950 //设置交换机的主机名为CS2950CS2950(config)#enable password xxx //设置特权非密口令CS2950(config)#enable secret xxx //设置特权加密口令CS2950(config)#line console 0 //进入控制台口CS2950(config)#line vty 0 4 //进入虚拟终端CS2950(config)#login //允许登录CS2950(config)#password xx //设置登录口令xxCS2950(config)#exit //退出全局配置模式CS2950#write //保存设置二,创建vlan(1)特权模式下创建vlanCS2950>enable //进入特权模式CS2950#vlan database //进入vlan设置CS2950(vlan)#vlan 2 //创建vlan 2CS2950(vlan)#exit //退出vlan设置CS2950#write //保存设置(2)全局模式下创建vlanCS2950>enable //进入特权模式CS2950#configure terminal //进入全局配置模式CS2950(config)#vlan 3 //创建vlan 3CS2950(config-vlan)#exit //退出CS2950(config)#exit //退出CS2950#write //保存设置三,删除vlanCS2950>enable //进入特权模式CS2950#vlan database //进入vlan设置CS2950(vlan)#no vlan 2 //删除vlan 2CS2950(vlan)#exit //退出vlan设置CS2950#write //保存设置四,加入vlan(1)单个端口添加到指定vlanCS2950>enable //进入特权模式CS2950#config terminal //进入全局配置模式CS2950(config-if)#interface f0/2 //进入交换机第二个口CS2950(config-if)#no shutdown //启用交换机第二个口CS2950(config-if)#switchport access vlan 2 //将第二个口加入到vlan2 (CS2950(config-if)#no switchport access vlan 2 //将端口2从vlan2中删除) CS2950(config-if)#exit //退出CS2950(config)#exit //退出CS2950#write //保存设置(2)多个端口同时添加到指定vlanCS2950>enable //进入特权模式CS2950#config terminal //进入全局配置模式CS2950(config)#interface range f0/6 - 8 //进入端口6、7、8CS2950(config-if-range)#switchport mode access //使6、7、8端口成为永久性的非中继模式CS2950(config-if-range)#switchport access vlan 3 //将6、7、8端口添加到vlan3 CS2950(config-if-range)#no shutdown //启用6、7、8端口CS2950(config-if)#exit //退出CS2950(config)#exit //退出CS2950#write //保存设置(3)连续添加端口CS2950>enable //进入特权模式CS2950#config terminal //进入全局配置模式CS2950(config)#interface f0/1 //进入交换机第一个口CS2950(config-if)#switchport mode trunk //将第一个口设置为干线(即设为中继模式)CS2950(config-if)#interface f0/2 //进入交换机第二个口CS2950(config-if)#no shutdown //启用第二个口(交换机第二个口)CS2950(config-if)#switchport access vlan 2 //将第二个口加入到vlan2CS2950(config-if)#interface f0/3 //进入交换机第三个口CS2950(config-if)#switchport access vlan 2 //将第三个口加入到vlan2CS2950(config-if)#interface f0/4 //进入交换机第四个口CS2950(config-if)#switchport access vlan 2 //将第四个口加入到vlan2CS2950(config-if)#interface f0/5 //进入交换机第五个口CS2950(config-if)#switchport access vlan 3 //将第五个口加入到vlan3CS2950(config-if)#exit //退出CS2950(config)#exit //退出CS2950#write //保存设置五,交换机设置IP地址CS2950>enable //进入特权模式CS2950#config terminal //进入全局配置模式CS2950(config)#interface vlan 2 //进入vlan2CS2950(config-if)#ip address 10.10.2.1 255.255.255.0 //为vlan2设置IP地址CS2950(config-if)#ip default-gateway 10.10.0.1 //设置网关CS2950(config)#exit //退出CS2950#copy running-config startup-config //保存设置六,进入交换机指定端口CS2950>enable //进入特权模式CS2950#config terminal //进入全局配置模式CS2950(config)#interface f0/3 //进入交换机第一个口CS2950(config-if)#switchport access vlan 2 //当前端口加入vlan 2CS2950(config-if)#switchport mode trunk //设置为干线(使接口成为永久的中继模式)CS2950(config-if)#switchport trunk allowed vlan 1,2 //设置中继(trunk口)允许的vlanCS2950(config-if)#switchport trunk allowed vlan all //允许所有vlanCS2950(config-if)#switchport trunk allowed vlan remove 1-2 //从中继(trunk口)中删除vlanCS2950(config-if)#switchport trunk encap dot1q //设置vlan 中继七,交换机显示命令:CS2950#write //保存配置信息CS2950#show version //查看版本信息CS2950#show mac-address-table //查看交换机的MAC地址表CS2950#show vtp //查看vtp配置信息CS2950#show running-config //查看当前配置信息CS2950#show vlan //查看vlan配置信息CS2950#show vlan brief //验证vlanCS2950#show interface //查看端口信息CS2950#show int f0/0 //查看指定端口信息CS2950#reload //重启交换机。
思科2950交换机配置说明
0 watchdog, 0 multicast, 0 pause input
0 input packets with dribble condition detected
1 packets output, 64 bytes, 0 underruns
2,从配置模式下创建VLAN,如图:
我们可以看到,从配置模式创建VLAN时只要直接输入vlan命令加VLAN号就可以创建VLAN
上图为成功创建VLAN后的下一个界面,用“?”号同样可以查询到在此VLAN配置模式下可以使用的所有命令。
2.2.3
不同交换机相同VLAN间如需要互访,需要将交换机相连端口设置为中继模式,并且各接口封装模式要相同(在2950上只支持802.1q封装,端口配置为中继后自动开启802.1q协议),否则中继将不起作用。
在配置模式下可以给交换机命名、配置VLAN、STP、VTP、VLAN中继、访问控制列表、以太通道(端口绑定)、SNMP、AAA认证等高级特性,从而达到满足不同用户不同需求的目的。
举例如下:
1,给交换机命名
使用命令“hostname“加欲命名的名字,就能够修改交换机的名字。
如图:
输入“hostname2950_test”命令回车后,交换机的名字立刻由原来的“cisco2950”变为“2950_test”。
1 default active
2 VLAN2 active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5
3 VLAN3 active Fa0/6, Fa0/7, Fa0/8, Fa0/9
Fa0/10
2950例子
1、配置交换机主机名、管理ip、默认网关Switch>enSwitch#config tSwitch(config)#hostname 2950B2950B(config)#int vlan 12950B(config-if)#ip address 172.16.10.3 255.255.255.02950B(config-if)#no shut2950B(config-if)#exit2950B(config)#ip default-gateway 172.16.10.12、配置中继口(即trunk口)2950B(config)#int f0/12950B(config-if)#switchport mode trunk2950B(config-if)#exit2950B(config)#int f0/42950B(config-if)#switchport mode trunk2950B(config-if)#exit2950B(config)#int f0/52950B(config-if)#switchport mode trunk2950B(config-if)#exit2950B(config)#3、配置vtp,把2950B交换机设置成客户机模式,2950B从2950C接收vlan信息2950B(config)#vtp mode client2950B(config)#vtp domain cisco2950B(config)#exit4、创建Vlan2950B#vlan database2950B(vlan)#vlan 2 name sales2950B(vlan)#vlan 3 name marketing2950B(vlan)#apply2950B(vlan)#exit5、将交换机端口分配到vlan中2950B#config t2950B(config)#int f0/22950B(config-if)#switchport access vlan 22950B(config-if)#exit2950B(config)#int f0/32950B(config-if)#switchport access vlan 32950B(config-if)#exit2950B(config)#exit2950B#2950B#copy run start交换机2950C配置1、配置交换机主机名、管理ip、默认网关Switch>enSwitch#config tSwitch(config)#hostname 2950C2950C(config)#int vlan 12950C(config-if)#ip address 172.16.10.2 255.255.255.02950C(config-if)#no shut2950C(config-if)#exit2950B(config)#ip default-gateway 172.16.10.12、配置中继口(即trunk口)2950C(config)#int f0/42950C(config-if)#switchport mode trunk2950C(config-if)#exit2950C(config)#int f0/52950C(config-if)#switchport mode trunk2950C(config-if)#exit2950C(config)#3、配置vtp,把2950C交换机设置成服务器模式,2950B从2950C接收vlan信息2950C(config)#vtp mode server2950C(config)#vtp domain cisco4、创建Vlan2950C(config)#exit2950C#vlan database2950C(vlan)#vlan 2 name sales2950C(vlan)#vlan 3 name marketing2950C(vlan)#apply2950C(vlan)#exit5、将交换机端口分配到vlan中2950C#config t2950C(config)#int f0/22950C(config-if)#switchport access vlan 22950C(config-if)#exit2950C(config)#int f0/32950C(config-if)#switchport access vlan 32950C(config-if)#exit2950C(config)#exit2950C#2950C#copy run start三、vlan间路由器2600配置过程1、配置路由器主机名、清除f0/0端口ip地址、启动f0/0端口Router>enRouter#config tRouter(config)#hostname trunkrouterTrunkrouter(config)#int f0/0Trunkrouter(config-if)#no ip addressTrunkrouter(config-if)#no shut2、创建子接口,并定义封装类型,给子接口分配ip地址,Trunkrouter(config-if)#int f0/0.1Trunkrouter(config-subif)#encapsulation dot1q 1Trunkrouter(config-subif)#ip address 172.16.10.1 255.255.255.0Trunkrouter(config-subif)#exitTrunkrouter(config)#int f0/0.2Trunkrouter(config-subif)#encapsulation dot1q 1Trunkrouter(config-subif)#ip address 172.16.20.1 255.255.255.0Trunkrouter(config-subif)#exitTrunkrouter(config)#int f0/0.3Trunkrouter(config-subif)#encapsulation dot1q 1Trunkrouter(config-subif)#ip address 172.16.30.1 255.255.255.0Trunkrouter(config-subif)#exitTrunkrouter(config)#exit3、保存配置Trunkrouter#copy run startPC配置在PC上ping其他主机,均通。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
思科交换机cisco2950的Boot过程对交换机配置前,先把console线连上。
cisco 2950的console 线,一端是RJ45口(接cisco),一端是串口(接pc)。
连接好后。
运行超级终端(对win7来说,Hyper terminal 已经不免费了;对xp而言,超级终端依然是可用的。
可以到hyper terminal的官方网站上下载一个Trial的试用版(30天内可用)。
)然后如下可以看到运行boot,交换机会加载其操作系统。
然后一切都正常。
switch: ?-- Present list of available commandsboot -- Load and boot an executable imagecat -- Concatenate (type) file(s)copy -- Copy a filedelete -- Delete file(s)dir -- List files in directoriesflash_init -- Initialize flash filesystem(s)format -- Format a filesystemfsck -- Check filesystem consistencyhelp -- Present list of available commandsload_helper -- Load and initialize a helper imagememory -- Present memory heap utilization informationmkdir -- Create dir(s)more -- Concatenate (display) file(s)rename -- Rename a filereset -- Reset the systemrmdir -- Delete empty dir(s)set -- Set or display environment variablesset_param -- Set system parameters in flashtrap -- Cause a software breakpoint to occurtype -- Concatenate (type) file(s)-- MORE --unset -- Unset one or more environment variablesversion -- Display boot loader versionswitch:switch:switch: bootLoading "d"...d: permission deniedError loading "d"Interrupt within 5 seconds to abort boot process.Loading "flash:/c2950-i6q4l2-mz.121-13.EA1.bin"...########################################################################### ################################################################################ ################################################################################ ################################################################################ ######File "flash:/c2950-i6q4l2-mz.121-13.EA1.bin" uncompressed and installed, entry point: 0x80010000executing...Restricted Rights LegendUse, duplication, or disclosure by the Government issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS sec. 252.227-7013.cisco Systems, Inc.170 West Tasman DriveSan Jose, California 95134-1706Cisco Internetwork Operating System SoftwareIOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1, RELEASE SOFTWARE(fc1)Copyright (c) 1986-2003 by cisco Systems, Inc.Compiled Tue 04-Mar-03 02:14 by yenanhImage text-base: 0x80010000, data-base: 0x805A8000Initializing flashfs...flashfs[1]: 40 files, 4 directoriesflashfs[1]: 0 orphaned files, 0 orphaned directoriesflashfs[1]: Total bytes: 7741440flashfs[1]: Bytes used: 4908032flashfs[1]: Bytes available: 2833408flashfs[1]: flashfs fsck took 7 seconds.flashfs[1]: Initialization complete.Done initializing flashfs.POST: System Board Test : PassedPOST: Ethernet Controller Test : PassedASIC Initialization PassedPOST: FRONT-END LOOPBACK TEST : Passedcisco WS-C2950-24 (RC32300) processor (revision K0) with 20839K bytes of memory.Processor board ID FOC0739Z1H0Last reset from system-resetRunning Standard Image24 FastEthernet/IEEE 802.3 interface(s)32K bytes of flash-simulated non-volatile configuration memory.Base ethernet MAC Address: 00:0D:ED:47:86:40Motherboard assembly number: 73-5781-12Power supply part number: 34-0965-01Motherboard serial number: FOC073916APPower supply serial number: DAB0738CR5RModel revision number: K0Motherboard revision number: A0Model number: WS-C2950-24System serial number: FOC0739Z1H0Press RETURN to get started!00:00:14: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan00:00:19: %SYS-5-CONFIG_I: Configured from memory by console00:00:19: %SYS-5-RESTART: System restarted --Cisco Internetwork Operating System SoftwareIOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1, RELEASE SOFTWARE(fc1)Copyright (c) 1986-2003 by cisco Systems, Inc.Compiled Tue 04-Mar-03 02:14 by yenanh00:00:20: %LINK-5-CHANGED: Interface Vlan2, changed state to administratively down00:00:20: %LINK-5-CHANGED: Interface Vlan3, changed state to administratively down00:00:20: %LINK-5-CHANGED: Interface Vlan44, changed state to administratively down00:00:20: %LINK-5-CHANGED: Interface Vlan999, changed state to administrativelydown00:00:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to down00:00:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan3, changed state to down00:00:21: %LINEPROTO-5-UPDOWN: Line protocol onInterface Vlan44, changed stateto down00:00:21: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan999, changed stateto down。