交换机的命令行
switch> 用户模式
switch>enable 进入特权模式
switch# 特权模式
switch#config terminal 进入全局配置模式
switch(config)# 全局配置模式
switch(config)# interface fastethernet 0/1 进入接口模式
switch(config-if)# 接口模式
交换机基本配置
Switch#hostname 配置主机名
Switch#show version 显示系统IOS名称以及版本信息
Switch#show running-config 查看交换机当前配置信息
Switch#show startup-config 显示已保存的配置信息
Switch#copy running-config startup-config 保存当前配置信息
Switch#erase nvram: 删除已保存的配置信息
switch(config)#no ip domain-lookup 禁用DNS查询
Switch#show version 查询产品的SN
配置IP地址
路由器配置IP地址
Router(config)#interface fastethernet 0/1 进入接口
Router(config-if)#ip address ip-address subnet-mask 配置IP地址
Router(config-if)#no shutdown 开启接口
交换机配置IP地址
Switch(config)#interface vlan 1 进入VLAN
Switch(config-if)#ip address ip-address subnet-mask 配置IP地址
Switch(config-if)#no shutdown 开启接口
默认网关的配置命令
Switch(config)# ip default-gateway ip-address
Cisco系统中的ARP命令
Switch#show arp 查看ARP缓存表
Switch#clear arp-cache 清除ARP缓存
Switch(config)#arp ip-address mac-address arpa [interface-type interface-number] ARP绑定
静态路由与浮动静态路由的配置
Router(config)# ip route network mask {address | interface} [distance]
默认路由的配置
Router(config)# ip route 0.0.0.0 0.0.0.0 address
配置Console口密码
Switch(config)#line console 0
Switch(config-line)#password cisco
Switch(config-line)#login
配置特权模式密码
Switch(config)# enable password password 配置明文特权模式密码
Switch(config)# enable secret password 配置密文特权模式密码
Switch(config)# service password-encryption 加密明文密码
路由器密码恢复
按Ctrl+Breack中断IOS加载,进入ROM Monitor模式
修改配置寄存器的值,启动时绕过startup-config文件:
rommon1>confreg 0x2142
rommon2>reset
用startup-config覆盖running-config:
Router#copy startup-config running-config
修改密码:
Router(config)#enable password password
修改配置寄存器的值:
Router(config)#config-register 0x2102
拔掉交换机的插头
按住MODE键,插上电源,直到出现“switch:”提示
初始化Flash
switch:flash_init
将config.text文件名改成config.old
switch:rename flash:config.text flash:config.old
启动交换机
switch:boot 把配置文件的名字改回来
switch# rename flash:config.old flash:config.text 手工加载配置文件
switch# copy flash:config.text system:running-config 进入配置模式修改密码
cisco基础配置手册
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
STP;VTP交换机配置实例
wbzjacky
2019-02-24 13:12:37
交换机级联端口变化 引发无法上网故障
千年小道
2019-02-24 13:06:21
Dlink交换机常用命令
千年小道
2019-02-24 13:06:21
华为3COM交换机防病毒策略
god9394
2019-02-24 13:04:19
交换机与路由器间的端口聚合
god9394
2019-02-24 13:03:51
交换机上防止ARP欺骗***
god9394
2019-02-24 13:03:51
Dlink交换机型号字母代表的意义
千年小道
2019-02-24 12:54:08
dlink des3828 交换机
千年小道
2019-02-24 12:54:07
三层交换机与路由器的比较
wpgs
2019-02-23 14:05:20
交换机的启动及基本配置
talkstone
2019-02-23 13:59:02
Cisco 技术---我们一起学习
lichenjing9
2019-02-23 14:06:52
如何备份cisco路由器配置文件
talkstone
2019-02-23 13:59:02
第一周作业 模拟登录
賈志禹
2019-02-23 14:04:57