1. 程式人生 > >思科設備基礎配置命令

思科設備基礎配置命令

思科

思科設備模式配置
Switch>(用戶模式)
Switch>enable (進入特權模式)
Switch#configure terminal(進入全局模式)
Switch(config)#interface f0/1(進入接口模式)

Exit (退到上一級)
End (退到特權模式)

配置控制臺會話時間永不超時
Switch(config)#line console 0
Switch(config-line)#exec-timeout 0 0

配置輸出日誌同步
Switch(config)#line console 0
Switch(config-line)#logging synchronous

禁用DNS查詢

Switch(config)#no ip domain-lookup

更改名字
Switch(config)#Hostmane S1(S1為自定義用戶名)

查詢當前交換機所運行的配置
Switch#show running-config

查詢版本
Switch#show version

特權加密
Switch(config)#enable password 123 (明文密碼)
Switch(config)#enable secret 456 (密文密碼)

配置Console加密
Switch(config)#line console 0
Switch(config-line)#password 1234

Switch(config-line)#login

保存
Switch#copy running-config startup-config

思科設備基礎配置命令