cisco基礎配置手冊

交換機的命令行
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 進入配置模式修改密碼
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章