一、Cisco设备的三种最常用模式:
1、 >
用户模式?????????????????????????? // 输入enable命令进入到特权模式
2、#
特权模式????????????????????????? // 输入configure terminal命令进入到全局配置模式
3、(config)#
全局配置模式
二、Cisco设备的常用基本命令。
show flash????????????????????? // 查看flash内存使用情况
show version????????????????? //查看ISO的版本
show mac-address-table????? //查看Mac地址表
hostname? 新主机名???????????? // 设置设备主机名
(config)#enable password 密码????????????????????? // 全局配置模式下设置进入特权模式的密码
(config)#line console 0?????????????????????????????????? //设置console登录设备的密码
(config-line)#password 密码
(config-line)#login
(config-line)#exit
(config)#
类似的,设置Telnet登录设备的密码
(config)#line telnet 0 4 ??????????????????????????? //设置telnet登录设备的密码
(config-line)#password 密码
(config-line)#login
(config-line)#exit
(config)#
(config)#service pasword-encryption???????????????? //以密文的形式存储各种密码
(config)#interface vlan1
(config-if)#ip address 192.168.0.254 255.255.255.0????? 配置设备管理地址
(config-if)#exit
(config)#ip default-gateway 192.168.0.1 255.255.255.0??? 配置默认网关
show running-config????????????????????????????????????????????????? 查看当前配置
show startup-config???????????????????????????????????????????????????? 查看保存在flash中的配置
copy running-config startup-config??????????????????????? 保存当前配置
show vlan brief???????????????????????????????????????????????????????????? 查看VLAN简明信息