设为首页收藏本站language 语言切换
查看: 1561|回复: 1
收起左侧

[已解决] CCNA考试辅导:CISCO 2950设置

[复制链接]
发表于 2011-2-24 19:30:58 | 显示全部楼层 |阅读模式
CISCO 2950系列智能以太网交换机是一个固定配置、可堆叠的独立设备系列,提供了线速快速以太网和千兆位以太网连接。同时作为思科最为廉价的交换产品系列,有着很高的普及率,在此有必要特别的强调一下,详情请看本文《CCNA考试辅导:CISCO 2950设置》:
2950 如下:
2950#erasestartup-config
当1900 启动后,先运行POST,此时每个端口的发光二级管(LEDs)是绿色的,POST 完成后,LEDs 开始闪烁然后熄灭;假如POST发现某个端口出问题了的话,系统LED 和那个出问题的端口的LED 开始变黄.假如你的console 线缆接好了的话,POST 开始显示菜单,如下:1user(s)nowactiveonManagementConsole.
UserInterfaceMenu
[M]Menus
[K]CommandLine
[I]IPConfiguration
EnterSelection:K
CLIsessionwiththeswitchisopen
ToendtheCLIsession,enter[Exit].
>
而2950的启动有点像router,先进入setup模式.但是默认你可以不对其进行配置,启动如下:
---SystemConfigurationDialog---
Wouldyouliketoentertheinitialconfigurationdialog?[yes/no]:no
PressRETURNtogetstarted!00:04:53:%LINK-5-CHANGED:InterfaceVlan1,changedstatetoadministrativelydown00:04:54:%LINEPROTO-5-UPDOWNineprotocolonInterfaceVlan1,changedstatetodown
Switch>
配置密码:
1.登陆密码(用户模式):防止未授权用户登陆
2.启用密码(特权模式):防止未授权用户修改配置
SettingtheUserModeandEnableModePasswords1900下,输入K 进入CLI,输入enable 进入特权模式,再输入configt 进入全局配置模式,
如下:
>en
#configt
(config)#

当进入全局配置模式后,使用enablepassword 命令配置登陆密码个启用密码,如下config)#enablepassword?
levelSetexeclevelpassword
(config)#enablepasswordlevel?
<1-15>LevelNumber
level1为登陆密码,level15 为启用密码,密码长度范围是4 到8字符之间

2950 下的配置和配置router有点类似,如下:
Switch>en
Switch#conft
Switch(config)#line?
<0-16>FirstLinenumber
consolePrimaryterminalline
vtyVirtualterminal
Switch(config)#linevty?
<0-15>FirstLinenumber
Switch(conf(转载自闪讯IT考试网http://pc.kaoshibaike.com,请保留此标记。)ig)#linevty015
Switch(config-line)#login
Switch(config-line)#passwordnoko
Switch(config-line)#linecon0
Switch(config-line)#login
Switch(config-line)#passwordnoco
Switch(config-line)#exit
Switch(config)#exit
Switch#
设置主机名
给1900配置主机名,使用hostname 命令,如下:
(config)#hostnameSZ_Switch
SZ_Switch(config)#
给2950配置主机名,使用hostname 命令,如下:
Switch(config)#hostnameSZ_Switch
SZ_Switch(config)#
设置IP信息
你可以不配置IP信息,直接把线缆插进端口,一样可以工作.配置IP 地址信息有2点原因:1、通过telnet 或其他软件方式来管理switch如下:
2.配置VLANs 和其他等网络功能
默认下,没有IP 地址和默认网关信息配置,在1900下,使用showip命令查看默认IP 配置,如下:
1900#ship
IPAddress:0.0.0.0
SubnetMask:0.0.0.0
DefaultGateway:0.0.0.0
ManagementVLAN:1
Domainname:
Nameserver1:0.0.0.0
Nameserver2:0.0.0.0
HTTPserver:Enable
HTTPport:80
RIP:Enable

在1900下使用ipaddress 和ipdefault-gateway 命令来配置IP(转载自闪讯IT考试网http://pc.kaoshibaike.com,请保留此标记。) 地址信息和默认网关信息,如下:
1900(config)#ipaddress172.16.10.16255.255.255.0
1900(config)#ipdefault-gateway172.16.10.1
1900(config)#
2950下的配置是在VLAN1 接口下配置,VLAN1 是管理VLAN,默认所有接口均是VLAN1的成员,配置如下:
2950(config)#intvlan1
2950(config-if)#ipaddress172.16.10.17255.255.255.0
2950(config-if)#noshut
2950(config-if)#exit
2950(config)#ipdefault-gateway172.16.10.1
2950(config)#
注意2950的IP 地址配置是在VLAN1接口下,另外要注意打开接口
配置接口描述
配置描述信息,在接口配置模式下使用description 命令,1900 下的描述信息不能使用空格键,如下:
1900(config)#inte0/1
1900(config-if)#descriptionCisco_VLAN
1900(config-if)#intf0/26
1900(config-if)#descriptiontrunk_to_building_4
1900(config-if)#
2950 下的描述就可以使用空格键,如下:
2950(config)#intfa0/1
2950(config-if)#descriptionSalesPrinter
2950(config-if)#^Z
可以使用showinterface 和showrunning-config命令来查看这些描述信息
以上就是考试百科为大家提供的《CCNA考试辅导:CISCO 2950设置》的全部内容,更多关于CCNA辅导知识请您继续关注考试百科。
您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-7 09:54 , Processed in 0.057052 second(s), 13 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表