2950交换机配置

合集下载

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

最新思科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•所有在同一组的端口必须是相同类别的。

2950交换机trunk-vlan配置实例

2950交换机trunk-vlan配置实例

VLAN的划分与互通实验准备工作:按照下图所示,连接实验环境。

如果没有设备,可下载Boson NetSim局域网交换与路由模拟器。

拓扑图:配置过程:说明:本实验完全在Boson Netsim模拟器上完成,下面红色下划线文字均为配置过程输入的命令。

一、交换机2950B配置1、配置交换机主机名、管理ip、默认网关Switch>enSwitch#config tSwitch(config)#hostname 2950B2950B(config)#int vlan 12950B(config-if)#ip address 172.16.10.3 255.255.255.0 //设置管理IP地址2950B(config-if)#no shut2950B(config-if)#exit2950B(config)#ip default-gateway 172.16.10.1 //设置默认网关IP地址2、配置中继口(即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#vlan database2950B(vlan)#vtp client2950B(vlan)#vtp domain cisco4、创建Vlan2950B(vlan)#vlan 2 name sales // 将vlan 2设置名称为sales2950B(vlan)#vlan 3 name marketing // 将vlan 2设置名称为marketing 2950B(vlan)#apply2950B(vlan)#exit5、将交换机端口分配到vlan中2950B#config t2950B(config)#int f0/22950B(conf-if)#switchport mode access // 设置二层交换端口2950B(config-if)#switchport access vlan 22950B(config-if)#exit2950B(config)#int f0/32950B(conf-if)#switchport mode access // 设置二层交换端口2950B(config-if)#switchport access vlan 32950B(config-if)#exit2950B(config)#exit2950B#6、保存配置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#vlan database2950C(vlan)#vtp server2950C(vlan)#vtp domain cisco4、创建Vlan2950C(vlan)#vlan 2 name sales2950C(vlan)#vlan 3 name marketing2950C(vlan)#apply2950C(vlan)#exit5、将交换机端口分配到vlan中2950C#config t2950C(config)#int f0/22950C(conf-if)#switchport mode access // 设置二层交换端口2950C(config-if)#switchport access vlan 22950C(config-if)#exit2950C(config)#int f0/32950C(conf-if)#switchport mode access // 设置二层交换端口2950C(config-if)#switchport access vlan 32950C(config-if)#exit2950C(config)#exit2950C#6、保存配置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、将路由器的快速以太网端口fa0/0划分为三个子接口fa0/0.1、fa0/0.2和fa0/0.3,对每个子接口配置,并采用802.1q的数据封装。

cisco2950交换机常用命令

cisco2950交换机常用命令

domain Set the name of the VTP administrative domain.
client Set the device to client mode.
server Set the device to server mode.
2950#clear mac-address-table restricted static (清除限制性MAC址表)
四、 VTP的配置
2950#vlan database (进入VLAN配置模式)
2950(vlan)#vtp ? (查看VTP的子命令)
2950#vlan database (进入VLAN配置模式)
2950(vlan)#vlan 2 (创建VLAN 2)
VLAN 2 added:
Name:VLAN0002 (系统默认名)
2950(vlan)#vtp domain wqs (设置域名)
2950(vlan)#vtp pruning (启动修剪模式)
2950#show vtp status (查看VTP设置信息)
五、配置VLAN TRUNK端口
2950(config)#int f0/11 (进入F端口)
2950(config)#ip name-server 192.168.1.1 (设置域名服务器)
2950(config)#ip domain-name (设置域名)
二、端口配置
2950(config)#int f0/1 (进入接口)
2950(config-if)#spanning-tree vlan 2 port-priority 10 (将VLAN2的端口权值设spanning-tree vlan 2 cost 30 (设置VLAN2生成树路径值为30)

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的密码恢复拔下交换机电源线。

2950交换机简要配置手册(中文)

2950交换机简要配置手册(中文)

2950交换机简明配置维护手册目录说明 (3)产品特性 (3)配置端口 (4)配置一组端口 (4)配置二层端口 (6)配置端口速率及双工模式 (6)端口描述 (7)监控及维护端口 (8)监控端口和控制器的状态 (8)刷新、重置端口及计数器 (10)关闭和打开端口 (10)配置VLAN (11)理解VLAN (11)可支持的VLAN (12)配置正常范围的VLAN (12)生成、修改以太网VLAN (13)删除VLAN (14)将端口分配给一个VLAN (15)配置VLAN Trunks (16)使用STP实现负载均衡 (19)配置Cluster (23)说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。

产品特性2950是只支持二层的交换机支持VLAN•到250 个VLAN•支持VLAN ID从1到4094(IEEE 802.1Q 标准)•支持ISL及IEEE 802.1Q封装安全•支持IOS标准的密码保护•支持标准及扩展的访问列表来定义安全策略•支持基于VLAN的访问列表监视•交换机LED指示端口状态•SPAN及远端SPAN (RSPAN) 可以监视任何端口或VLAN的流量•内置支持四组的RMON监控功能(历史、统计、告警及事件)配置端口配置一组端口当使用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•所有在同一组的端口必须是相同类别的。

交换机基础及2950的配置

交换机基础及2950的配置
2950交换机基本配置
交换机启动与初始化
加电启动
连接好交换机电源,按下 电源开关,交换机将开始 启动。
初始化过程
交换机启动后会进行自检, 加载并运行操作系统,初 始化硬件和接口。
进入命令行界面
初始化完成后,可以通过 控制台或远程登录方式进 入交换机的命令行界面。
交换机端口配置
端口类型
2950交换机支持多种端口类型, 包括以太网端口、快速以太网端
案例一
交换机无法启动
分析
可能原因包括电源故障、主板损坏等。
解决思路
首先检查电源插头和电源线是否连接良好,然后尝试更换电源模块。 如果问题仍然存在,考虑更换主板。
故障案例分析与解决思路
案例二
部分端口无法通信
分析
可能原因包括端口故障、配置错误等。
解决思路
首先确认端口配置和连接状态,检查端口模块是否损坏。如果配置 有误,及时更正配置命令。
控和配置。
2950交换机性能指标
端口数量和速度
提供24个或48个10/100Mbps 自适应端口,以及可选的千兆
上行链路端口。
背板带宽
高达13.6Gbps,确保数据在交 换机内部的高速传输。
转发速率
线速转发,无阻塞交换。
MAC地址表大小
8K或更大,快速学习并存储网 络中的MAC地址。
2950交换机应用场景
生成树协议工作原理
STP通过阻塞某些端口来消除环路,并选举出一个根桥和多个指定 桥,以确保网络拓扑的稳定。
生成树协议配置命令
在2950交换机上,可以使用spanning-tree命令启用或关闭STP, 并配置相关参数。
05
2950交换机高级配置
交换机安全配置

思科2950交换机配置说明

思科2950交换机配置说明
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
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交换机基本配置

2950交换机基本配置

一、Cisco 2950交换机基本配置switch>switch>enableswitch#switch#vlan database(进入vlan维护模式)switch(vlan)#vlan 2 name vlan2(给vlan 2命名为vlan2)switch(vlan)#vlan 4 name vlan4(给vlan 4命名为vlan4)switch(vlan)#exit(这里要注意一下,要打入exit退出才有效,不能用ctrl+z或end直接退出,因为这么不能使配置生效!)switch#show vlan(查看vlan的配置,默认有vlan1)switch#configure terminal(进入全局配置模式)switch(config)#interface f0/1(进入fastethernet0/1接口配置模式)switch(config-if)#switchport mode access(这步可以省略)switch(config-if)#switchport access vlan 2(把该接口划分到vlan2,记得vlan2之间有空格)switch(config-if)#no shutdown(激活端口)switch(config-if)#exitswitch(config)#interface f0/2switch(config-if)#switchport mode accessswitch(config-if)#switchport access vlan 4switch(config-if)#no shutdownswitch(config-if)#exitswitch(config)#interface f0/3switch(config-if)#switchport mode trunk(设置此口为中继模式)switch(config-if)#no shutdownwitch(config-if)#exit(这里可以直接用ctrl+z或end直接退出到特权模式)原文出自【比特网】,转载请保留原文链接:/61/12139561.shtml三.给PC1,PC2设置好IP地址,然后用ping命名令测试!1、配置IP地址交换机要能够被网管,必须给它标识一个管理IP地址,默认情况下CISCO交换机的VLAN 1为管理VLAN,为该VLAN配上IP 地址,交换机就可以被网管了。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

• 14、no shutdown 15、line console 0 16、line vty 0 4 17、login 18、password 123 19、clock rate number 20、bandwidth number 21、ip add 22、show cdp neighbors 23、show cdp interface 24、exit 25、disconnect 26、ping 27、trace
• >enable #configure terminal (config)#hostname 2950sw3 2950sw3(config)#enable password cisco 2950sw3(config)#interface vlan1 2950sw3(config-if)#ip address 192.168.1.99 255.255.255.0 2950sw3(config-if)#no shutdown 2950sw3(config-if)#exit 2950sw3(config)#ip default-gateway 192.168.1.1 2950sw3#show interface vlan1 2950sw3#show interfaces 2950sw3#show version 2950sw3#show mac-address-table
• Switch#config terminal Switch(config)#interface fastethernet0/3 Switch(config-if)#speed 10 Switch(config-if)#duplex half Switch#config terminal Switch(config)#interface fastethernet0/4 Switch(config-if)#descriptionch(config-if)#end Switch#show interfaces fastethernet0/4 description Switch#show interfaces status Switch#show interfaces fastethernet0/1 switchport Switch#show running-config interface fastethernet0/2 Switch#configure terminal Switch(config)#interface fastethernet0/5 Switch(config-if)#shutdown
• Switch(config-if)# Switch#configure terminal Switch(config)#interface fastethernet0/5 Switch(config-if)#no shutdown Switch(config-if)#
• >enable #? #disable > >enable #configure terminal (config)#hostname 2950sw3 2950sw3(config)#exit 2950sw3# 2950sw3#show running-config 2950sw3#copy running-config startup-config 2950sw3#show startup-config 2950sw3#erase startup-config 2950sw3#reload
二、初始化配置有五种方法: 1、使用超级终端配置(终端串口连接到网 络设备Console口) 2、通过Telnet远程登陆配置(以太网口) 3、Web配置,通过浏览器(以太网口) 4、网络中的TFTP/FTP方式备份配置(以 太网口) 5、通过Modem连接设备远程拨号配置 (AUX口)
• 三、IOS的基本模式分为三种: 1、用户模式(User mode) 设备启动后先进入用户模式 switch> 在用户模式下只能进行有限的操作,如 ping其他网络设备,不能对设备进行配置
2950交换机配置
一、Cisco的网络设备依赖IOS(Internetwork Operating System)进行工作的。 网络设备在启动时,依以下顺序开始: 1、对设备硬件自检(ROM) 2、调用IOS(FLASH) 3、加载系统配置()--Starting config 4、开始工作(RAM)--Runing config
• 2、特权模式(Privileged Mode) switch>enable switch# 可以观察设备的状况,但不能对设备进 行配置
• 3、全局配置模式(Global Mode) switch#config terminal switch(config)# 可以对设备进行整体配置,是公共参数 的配置, 从全局模式再对专用属性配置时 要进入到接口模式、子接口、线路模式等 其他模式中进行一些特殊要求的设置
• 三、辅助功能 1、上下文帮助“?” “?”对不完整的命令,可以提供有关的语句定 义的帮助。 2、不全命令 Tab键提供命令的自动补全 3、历史纪录缓存 利用上下箭头查找以前的输入命令。 Ctrl+Z返回特权模式 Ctrl+C从setup模式退出到命令模式
• 五、交换机基本命令 1、enable • 2、show version 3、show running-config 4、show startup-config 5、show interfaces 6、configure terminal 7、show controllers 8、hostname 9、copy running-config startup-config 10、banner motd #message# 11、description message 12、enable password 123 13、enable secret 123
相关文档
最新文档