顺着天性做事,逆着个性做人.
分类: 系统运维
2010-03-20 23:53:37
配置的几个模式:
文件:
switch.rar
大小:
1666KB
下载:
下载
Privileged EXEC Mode
console> enable
console#
Global Configuration Mode
console# configure
console(config)#
Interface Configuration Modes
console> enable
console# configure
console(config)# interface ethernet 1/e1 //Ethernet
console(config-if)#
console> enable
console# configure
console(config)# interface port-channel 1 //Port channel
console(config-if)#
VLAN
console> enable
console# configure
console(config)# interface vlan 1
console(config-if)#
Line Interface
console> enable
console# configure
console(config)# line console
console(config-line)#
Management Access List Configuration Mode
console> enable
console# configure
console(config)# management access-list security-isp
console(config-macl)#
Using the CLI
Q: What key would you press to show more commands in the list?
A: Pressing
Q: What's different about what is displayed between step 3 and 4?
A: Typing ? shows a list of all commands available under Privileged Exec mode and s? displays only the commands that start with the letter s.
Q: How can you shorten the show running-config command?
A: You can type show run or sh ru.
Q: What is the quickest way to get back to Privileged Exec Mode from any other mode?
A: Type end or press Ctrl + Z.
Q: How can you prevent losing the settings you have configured?
A: Run the command copy run start from Privileged Exec Mode.
Using the CLIUsing the CLI
Easy Setup Wizard
console>en //进入特许模式Easy Setup WizardPowerConnect 6224PowerConnect 6224
console#reload //重启
Boot Menu Version: 21 November 2008
Select an option. If no selection in 10 seconds then
operational code will start.
1 - Start operational code.
2 - Start Boot Menu. //加载启动菜单
Select (1, 2):2
Boot Menu 21 November 2008
Options available
1 - Start operational code
2 - Change baud rate
3 - Retrieve event log using XMODEM
4 - Load new operational code using XMODEM
5 - Display operational code vital product data
6 - Reserved
7 - Update boot code
8 - Delete backup image
9 - Reset the system
10 - Restore configuration to factory defaults (delete config files)
11 - Activate Backup Image
12 - Password Recovery Procedure
[Boot Menu] 10
Are you SURE you want to delete the configuration? (y/n):y
[Boot Menu] 1
进入到快速部署向导:
1, SNMP协议配置(略)
2, 网络管理IP配置:
Please enter the IP address of the Management System (A.B.C.D) or wildcard
(0.0.0.0) to manage from any Management Station. [0.0.0.0]: 10.0.0.25
3, 网络访问用户密码配置(密码必须大于8个字符):
Please enter the user name. [admin]:admin
Please enter the user password:admin123
Please reenter the user password:admin123
4, 默认VLAN1的配置:
DHCP server. [192.168.2.1]: 192.168.2.1
Please enter the IP subnet mask (A.B.C.D or /nn). [255.255.255.0]:
5,前面几步配置结果如下:
SNMP Interface = "openpub"@10.0.0.25
User Account setup = admin
Password = ********
Management IP address = 192.168.2.1 255.255.255.0
Default Gateway = 192.168.2.1
交换机版本查看:
console#show version //查看交换固件版本
Image Descriptions
image1 : default image
image2 :
Images currently available on Flash
--------------------------------------------------------------------
unit image1 image2 current-active next-active
--------------------------------------------------------------------
1 2.2.0.3 2.2.0.3 image2 image2
Update Firmware:
1, //下载完固件后解压,里面有安装文档
下载TFTP软件,配置TFTP Server,启动服务
console# copy tftp://10.10.10.200/PowerConnect_6200_2203.stk image
Mode.......................................... TFTP
Set TFTP Server IP............................ 10.10.10.200
TFTP Path..................................... ./
TFTP Filename................................. PowerConnect_6200_2203.stk
Data Type..................................... Code
Destination Filename.......................... image
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
TFTP code transfer starting
.........................................................
Verifying CRC of file in Flash File System
Unpacking the image file.
File transfer operation completed successfully.
2,
设置波特率115200(boot menu设置)
Transfer-send files-xmodem传输即可。
3, Upgrade via WEB(略)