天天看點

9.思科交換路由基本指令操作

工作模式:

>:使用者模式

#:特權模式

(config)#:全局模式

(config-if)#:接口模式

指令大緻劃分:

v 使用者模式下大多都是對裝置IOS系統進行操作配置的一些指令。

v 特權模式下大多都是Show檢視類指令。

v 全局模式下大多都是配置類指令。

v 接口模式下大多都是對于接口的配置指令。

CSICO基礎常用指令

指令

描述

> enable

進入特權模式

# conf t

進入全局模式

(config)# interface f0/0(接口名)

進入接口模式

(config-if)# exit

退出到上級模式

(config-if)# end

退回到特權模式

# reload

重新開機裝置

# wr

儲存配置到NVRAM中

# erase nvram

清空NVRAM中的所有配置

# delete nvram:startup-config

# show ver

檢視IOS系統版本

# show ip interface brief

檢視裝置接口資訊

# show interface f0/0(接口名)

檢視接口的工作模式,速率

# show mac-address-table

檢視MAC位址表

# show ip route

檢視路由表

# show running-config

檢視RAM中的臨時配置

# show startup-config

檢視NVRAM中的永久配置

# copy startup-config running-config

拷貝NVRAM中的配置到RAM中

(config)# hostname R1(主機名)

配置一個新的主機名

(config)# line con 0

進入Console管理口

(config-line)# exec-timeout 0 0

配置Console接口永不逾時

(config-line)# password 123(密碼)

配置Console接口密碼

(config-line)# logging synchronous

配置防打斷

(config-line)# no ip domain-lookup

配置禁止DNS查找

(config-if)# ip add 192.168.1.1 255.255.255.0

給該接口配置一個IP位址

(config-if)# no shutdown

打開該接口

(config-if)# shutdown

關閉該接口

(config-if)# duplex full(全雙工)或half(半雙工)或auto(10/100自适應)

配置接口的雙工模式

(config-if)# speed 10或100或1000或auto

配置接口速率

本文轉自   觸動的風   51CTO部落格,原文連結:http://blog.51cto.com/10978134/1904033

繼續閱讀