最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

“命令行,簡(jiǎn)單易學(xué),好用到爆炸!”——初階網(wǎng)工必備神器!

2023-07-07 15:58 作者:競(jìng)予科技  | 我要投稿

今天匯總了下思科系的初階命令行,簡(jiǎn)單、實(shí)用、使用率極高是它們的特點(diǎn)。



01 路由器系列


1. 用戶模式和特權(quán)模式

Router>enable

Router>exit (logout 、quit)

Router#disable

Rouiter#exit (logout 、 quit)


2. 接口模式

Router(config)#interface + 接口名稱 ----

Router(config-if)#


3. 子接口模式

Router(config)#interface + 接口名稱,子接口號(hào)碼

----Router(config-subif)#


4. 鏈路模式

Router(config)#line console 0 ----Router(config-line)#

Router(config)#line vty 0 4 ----Router(config-line)#


5. 命令緩存

Router>show history

Router>terminal history size + 數(shù)字


6. Router 的 Setup 模式

Router#setup


7. Router 的其他命令

Router#show version

Router#show running-config

Router#show startup-config


8. Router的RAM和NVRAM

Router#copy running-config startup-config

Router#copy startup-config running-config

Router#write erase


9. Router的Banner命令

Router(config)#banner motd # ??#


10. Router 的特權(quán)模式密碼

Router(config)#enable password + 密碼

Router(config)#enable secret + 密碼

Router的console 密碼:

Router(config)#line console 0

Router(config-line)#login

Router(config-line)#password + 密碼

Router 的 vty 密碼:

Router(config)#line vty 0 4

Router(config-line)#login

Router(config-line)#password + 密碼


11. 接口標(biāo)識(shí)

Router(config-if)#description + 描述信息


12. 配置 console 的其他參數(shù)

Router(config-line)#exec-timeout + 分鐘 +秒

Router(config-line)#logging synchronous


13. 配置串口參數(shù)


Router#show controller serial+ 編號(hào)

Router(config-if)#clock rate 64000

Router(config-if)#bandwidth 64


14. 關(guān)閉接口

Router(config-if)#(no) shutdown


15. CDP的配置

Router#show cdp neighbors

Router#show cdp neighbors detail

Router#show cdp entry *

Router#show cdp interface

Router#show cdp traffic

Router#(no) cdp run

Router(config)#(cdp) enable


16. Telnet 的配置

# Router#telnet +ip 地址

Router#exit

Router#show sessions

Router#show user

Router# x

Router#resume + 編號(hào) ( 或者按兩次 Enter)

Router#disconnect + 編號(hào)

Router#clear + 編號(hào)

Ping和Traceroute :

Router#ping +ip 地址

Router#Traceroute+ip 地址


17. 配置 Config-register

Router(config)#config-register+ 寄存器地址


18. 配置啟動(dòng)順序

Router(config)#boot system flash + 名稱

Router(config)#boot system tftp + 文件名 +ip 地址

Router(config)#boot system rom


19. 備份和恢復(fù) IOS

Router#show flash

Router#copy flash tftp

Router#copy tftp flash


20. 路由器的IP配置

Router(config-if)#ip address+ip 地址 +子網(wǎng)掩碼

Router#terminal ip netmask-format (bit-count | decimal | hexadecimal)

Router(config)#ip host + 主機(jī)名 +ip 地址 [ip 地址 ]

Router(config)#ip domain-name + 域名

Router(config)#ip name-server +DNSserver 的 IP 地址

Router(config)#(no) IP domain-lookup

Router(config)#show hosts


21. 配置靜態(tài)路由

Router(config)#ip route 目的網(wǎng)絡(luò) +掩碼 [ 下一跳 address | 本地接口 ]

[distance] [permanent]

Router#show ip route


22. 配置缺省路由

Router(config)#ip route 0.0.0.0 0.0.0.0 [ 下一跳 address | 本地接口 ]

[distance] [permanent]

Router(config)#ip classless

Router(config)#no ip classless


23. 配置VLAN間路由


Router(config-if)#interface fa0/0.1

Router(config-subif)#encapsulation isl +vlan 編號(hào)


24. 配置RIP

Router(config)#router rip

Router(config-router)#network + 自然網(wǎng)絡(luò)號(hào)

Router#show ip protocols

Router#show ip route

Router#(no ) debug ip rip

Router(config-router)#maximum-paths <1-6>


25. 配置 IGRP

Router(config)#router igrp + 自治系統(tǒng)編號(hào)

Router(config-router)#network + 自然網(wǎng)絡(luò)號(hào)

Router#(no ) debug ip igrp transactions

Router#(no) debug ip igrp events

Router(config-router)#traffic-share [share | min]

Router(config-router)#variance + 容差

Router(config-router)#maximum-paths <1-6>


26. 配置標(biāo)準(zhǔn) ACL

Router(config)#access-list + 編號(hào) [permint | deny] 源地址 翻轉(zhuǎn)掩碼

Router(config-if)#ip access-group + 編號(hào) [in | out]

Router#show access-list [ 編號(hào) ]

Router#show ip interface + 接口名稱


27. 配置擴(kuò)展 ACL

Router(config)#access-list 編 號(hào) [permit | deny] protocol source

source-mask [operator port ] destination destination-mask [operator port ]

Router(config-if)#ip access-group 編號(hào) [in |out]


28. 配置 named ACL

Router(config)# ip access-list [standard | extended] name

Router(config [std-|ext-nacl])# (no) [permit |deny] +


29. 測(cè)試條件

Router(config-if)#ip access-group [in | out]


30. 配置 ACL控制 VTY的訪問

Router(config)#line vty 0 4

Router(config-line)#access-class access-list-number [in | out]


31. 配置 Novell 路由

Router(config)#ipx routing

Router(config-if)# ipx network 網(wǎng)絡(luò)號(hào) encapsulation + 封裝類型


32. 配置 Novell 封裝

Router(config-subif)# ipx network 網(wǎng)絡(luò)號(hào) encapsulation + 封裝類型

Router(config-if)# ipx network 網(wǎng) 絡(luò) 號(hào) encapsulation + 封裝類型

secondary


33. 配置 Novell 的標(biāo)準(zhǔn) ACL

Router(config)#access-list 編號(hào) [perming | deny ] 源網(wǎng)絡(luò)號(hào) [ 節(jié)點(diǎn)地址 ]

[ 節(jié)點(diǎn)掩碼 ] 目的網(wǎng)絡(luò)號(hào) [ 節(jié)點(diǎn)地址 ] [ 節(jié)點(diǎn)掩碼 ]

Router(config-if)#ipx access-group 編號(hào) [in | out]

配置 Novell 的擴(kuò)展 ACL:

Router(config)#access-list 編號(hào) [permit | deny ] protocol 源網(wǎng)絡(luò)號(hào)

[ 節(jié)點(diǎn)號(hào) ] [ 掩碼 ] 源 socket 目的網(wǎng)絡(luò)號(hào) [ 節(jié)點(diǎn)號(hào) ] [ 掩碼 ]


34. 查看 IPX 的命令

Router#show ipx interface

Router# show ipx route

Router#show ipx servers

Router#show ipx traffic

Router#debug ipx routing activity

Router#debug ipx sap

Router#ping ipx +IPX 地址


35. PPP的配置

封裝 ppp:

Router(config-if)#encapsulation ppp


配置主機(jī)明、用戶名和密碼:

Router(config)#hostname + 主機(jī)名

Router(conifg)#username + 用戶名 password + 密碼


選擇一種驗(yàn)證方式:

Router(config-if)#ppp authentication [chap | chap pap | pap chap | pap]


ISDN的配置:

Router(config)#isdn switch-type + 交換機(jī)類型

Router(config)#interface bri0 + 接口編號(hào)

Router(config-if)#isdn spid1 spid 號(hào)碼 [ 本地目錄號(hào)碼 ]

Router(config-if)#isdn spid2 spid 號(hào)碼 [ 本地目錄號(hào)碼 ]



DDR的配置:

(1)配置靜態(tài)路由:

(2)定義敏感數(shù)據(jù):

(3)不使用 ACL:

Router(config)#dialer-list 編號(hào) protocol + 某個(gè)協(xié)議 [permit | deny ]


(4)使用 ACL:

Router(config)#dialer-list 編號(hào) protocol + 某個(gè)協(xié)議 list +ACL 編號(hào)


配置撥號(hào)信息:

Router(config-if)#ip address +IP 地址 +子網(wǎng)掩碼

Router(config-if)#dialer-list 編號(hào)

Router(config-if)#dialer map

protocol 下一跳路由器地址 name 遠(yuǎn)端路友器的主機(jī)名 [speed 56 | 64 ] [broadcast] + 撥號(hào)字符串


可選配置:

動(dòng)態(tài)器用第二條鏈路:

Router(config-if)#dialer load-threshold load [outbound | inbound | either]

配置超時(shí):

Router(config-if)#dialer idle-timeout seconds


配置幀中繼:

(1)配置接口的地址、封裝類型

Router(config-if)#encapsulation frame-relay [cisco | ietf]


(2)配置 LMI 類型:( 可選 )

Router(config-if)#frame-relay lmi-type [ansi | cisco|q933a]


(3)配置邏輯帶寬

Router(config-if)#bandwidth + 帶寬


(4)配置映射

靜態(tài)映射:

Router(config-if)#frame-relay map protocol 地址 dlci 編號(hào) [broadcast] [cisco | ietf]


動(dòng)態(tài)映射:(缺省)

Router(config-if)#frame-relay inverse-arp protocol dici 編號(hào)


幀中繼的監(jiān)控和管理:

Router#show interface

Router#show frame-relay lmi

Router#show frame-relay pvc

Router#show frame-relay map

Router#clear frame-relay-inarp

Router#debug frame-relay lmi


02 交換機(jī)系列


1. 交換機(jī)的配置

Switch#show version

Switch#show running-config

Switch(config)#hostname + 交換機(jī)主機(jī)名

Switch#show ip

Switch#show spantree

Switch#show interface


2. 交換機(jī)的雙工配置

Switch(config-if)#duplex+ 雙工配置


3. 交換機(jī)的 IP 配置

Switch(config)#ip address+ip 地址 +子網(wǎng)掩碼

Switch(config)#ip default-gateway+ip 地址


4. 交換機(jī) MAC地址表的配置

Switch(config)#mac-address-table permanent +MAC 地址 +對(duì)應(yīng)的端口

Switch(config)#mac-address-table restricted static +MAC 地址 +對(duì)應(yīng)的端口 +允許訪問該端口的源端口

Switch(config)#show mac-address-table

Switch(config-if)#port secure max-mac-count + 該端口最大課學(xué)習(xí)的 MAC地址數(shù)

Switch(config)#address-violation (suspend / disable /ignore)

Switch#show mac-address-table security


5. 交換機(jī)配置文件的備份和恢復(fù)

Switch#copy nvram tftp://tftp 的 IP 地址 // 配置文件名

Switch#copy tftp:// tftp 的 IP 地址 // 配置文件名 nvram


6. VLAN的配置


(1)配置 VTP

Switch(config)#vtp [server | client | transparent ] [domain+VTP 域名 ]

[trap (enable | disable) ] [password +密碼 ] [pruning (enable | disable) ]


(2)配置干道鏈路

Switch(config-if)#trunk [on | off | desirable | auto |nonnegotiate]

Switch#show trunk [A | B]


(3)創(chuàng)建和修改 VLAN

Switch(config)#vlan +vlan 編號(hào) [name+VLAN名稱 ]

Swtich#show vlan [VLAN 編號(hào) ]


(4)將某個(gè)端口加入到某個(gè) VLAN

Switch(config-if)# vlan-membership [static(vlan 編號(hào) ) | dynamic]

Switch#show vlan-membership




文章聲明
本文素材整理自網(wǎng)絡(luò),由網(wǎng)絡(luò)工程師俱樂部排版成文,轉(zhuǎn)載請(qǐng)注明出處,侵刪。

“命令行,簡(jiǎn)單易學(xué),好用到爆炸!”——初階網(wǎng)工必備神器!的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
潼关县| 青川县| 西宁市| 南通市| 南江县| 和龙市| 浦县| 新沂市| 叶城县| 沙河市| 红河县| 报价| 朝阳县| 宜良县| 新绛县| 蓬莱市| 什邡市| 宁夏| 图片| 饶河县| 桐梓县| 抚顺市| 安福县| 崇义县| 和静县| 旬阳县| 昆明市| 上杭县| 登封市| 永春县| 陈巴尔虎旗| 雅安市| 宽城| 滦南县| 栾城县| 垦利县| 明溪县| 象州县| 五常市| 贵阳市| 镇沅|