思科2960初始化配置CONSOLE口
1. 建立PC到路由器的物理连接,用RS232 CONSOLE线(随交换机带)连接路由器CONSOLE接口和PC的COM口。
2. 在计算机上使用超级终端:打开“开始-程序-附件-通讯-超级终端—新建超级终端”,首先为新建连接设置名称。
然后,设置连接用端口,一般选择COM1,再设置连接参数,设置参数如下:每秒位数为9600,数据位为8,奇偶校
验为无,停止位为1,数据流控制为Xon/Xoff。 不可搞错了!
3. 等待30秒,回车,出现人机对话界面
Would you like to enter the initial configuration dialog? [yes/no]: 是否按提示步骤操作
% Please answer yes or no.
Would you like to enter the initial configuration dialog? [yes/no]: n 输入n(自己手工设置)
Press RETURN to get started!
Switch>. 首先看到的是用户模式
Switch>.en 输入en(即enable)进入特权模式
Switch#conf t 进入配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname sw2950 给交换机命名
sw2950(config)#enable password Cisco 给交换机配置管理口令(明码的)
sw2950(config)#line vty 0 4 给交换机开启远程管理
sw2950(config-line)#pass Cisco! 设置远程管理口令
sw2950(config-line)#login 允许远程登陆
sw2950(config-line)#exit 退出到上级目录
sw2950(config)#int vlan 1 进入vlan1 接口
sw2950(config-if)#no shut 开启此接口
1y13w: %LINK-3-UPDOWN: Interface Vlan1, changed state to up
1y13w: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
sw2950(config-if)#ip add 192.168.1.2 255.255.255.0 设置此接口地址
sw2950(config-if)#exit 退出到上一层
sw2950(config-if-range)#exit 退出到上一级目录
sw2950(config)#end 退到根目录
sw2950#wr 保存配置 切记!必须保存,否则重新启动后设置丢失!
4d00h: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
[OK] (保存好了,已经生效)
重新启动交换机之后就可以通过浏览器输入IP地址进行访问或设置了,也可通过思科专业软件思科网络助理4.0中文版设置。
本文转自快网 , 原地址:http://www.cnkuai.cn/news/20104/724.htm