當前位置:才華齋>IT認證>思科認證>

cisco基本配置命令

思科認證 閱讀(6.02K)

cisco交換機有哪些基本配置命令?為幫助大家深入學習cisco交換機基本配置命令,yjbys為大家分享最新cisco交換機基本命令如下:

cisco基本配置命令

1、 進入SETUP模式Router#setup

2、 時間設定 router#clock set hh:mm:ss date moth year

3、 router>show history Router>terminal history size lines

4、 router#show version

5、 router#show running-config

6、 router#show starup-config

7、 router(config)#hostname name 主機命名

8、 router(config)#banner motd # message # 開機時的固定顯示資訊

9、 router(config)#enable password password 特權模式明文密碼

10、 router(config)#no enable password

11、 router(config)#enable secret password 特權模式加密密碼

12、 router(config)#no enable secret

13、 router(config)#service password-encryption特權模式把明文密碼加密密碼,但沒     enable secret安全可以反解

14、 router(config)#line console控制檯密碼

15、 router(config-line)#login

16、 router(config-line)#password password

17、 router(config-line)#exec-timeout mm ss 禁止控制檯會話自動退出

18、 router(config-line)#logging synchronous重顯被打亂的控制檯輸入 router(config)#no ip domain-lookup 禁止域名解析

19、 router(config)#line vty 0 4虛擬終端密碼

20、 router(config-line)#login

21、 router(config-line)#password password

22、 router(config)#interface type number(slot/port)埠設定

23、 router(config-if)#ip address ip summast

24、 router(config-if)#clock rate 64000(時鐘頻率單位為bps,只在DCE端設定)

25、 router(config-if)#bandwith 64(頻寬設定,單位為KB)

26、 router(config-if)#no shutdown(shutdown)

27、 router(config-if )#media-type type(10base) 為乙太網埠選擇適當的介質型別

28、 router(config-if )#ctrl+z儲存退出到特權模式

29、 router#

30、 router>使用者模式enable進入 router#特權模式config terminal進入 router(config)#全域性配置模式

31、Interface

Router(config-if)#埠設定 Subinterface Router(config-subif)# 子埠設定

Controller

Router(config-controller)# 控制口設定

Line     Router(config-line)# 虛擬口設定

Router

Router(config-router)# 路由設定

IPX router Router(config-ipx-router)#IPX路由設定

32、 router#show interface

33、 router#show interface Ethernet 0

34、 router#show interface serial 0

35、 router#show running-config

36、 router#show starup-config

37、 router#show flash

38、 router#show controller

39、 router#show controller interface type

40、 router#show running-config

router#copy running-config starup-config

router#copy running-config tftp

router#copy starup-config tftp

router#copy flash tftp

router#copy tftp star-config

router#copy tftp flash

埠狀態

Serial1 is up, line protocol is up正常工作

Serial1 is up, line protocol is down連線問題

Serial1 is down, line protocol is down埠問題

Serial1 is administratively down, line protocol is down人為關閉