分享

第五讲:do命令 接口描述等其他常用命令

 Teacher_Lin 2020-02-28

七、描述:一般是对接口进行描述

Todd(config-if)#int s1/1

Todd(config-if)#description  link to R2-s1/0  //description是关键词,后面的是要描述的内容

Todd(config-if)#int s1/2

Todd(config-if)#description link to R4-s1/1

Todd#show running-config

interface Serial1/1

 description link to R2-s1/0

 no ip address

 shutdown

 serial restart-delay 0

!

interface Serial1/2

 description link to R4-s1/1

 no ip address

 shutdown

 serial restart-delay 0

八、do 跳转命令的使用

Todd(config)#do show ip inter brief //“do”是跳转命令,可以在任何情况下,查看要查找的信息。注意:在该命令下,不能使用提示信息。

Todd(config)#int f0/0

Todd(config-if)#do show inter f0/0

FastEthernet0/0 is administratively down, line protocol is down (disabled)

九、串行接口的命令-DCE的配置

DCE:数据通讯设备

DTE:数据终端设备

注意:在一根串行线路上,一端必为DCE,一端必为DTE,只需在DCE段配置时钟速率,其变化规律是以1200的倍数增长的。

Router>en //进入特权模式

Router#show ip int brief //查看端口的状态

Interface        IP-Address  OK?  Method Status             Protocol

FastEthernet0/0  unassigned  YES  unset administratively down  down

FastEthernet0/1  unassigned  YES  unset administratively down  down

Serial1/0        unaendssigned  YES  unset administratively down  down

Serial1/1        unassigned  YES  unset administratively down  down

Serial1/2        unassigned  YES  unset administratively down  down

Serial1/3        unassigned  YES  unset administratively down  down

Router#show controllers s1/0 //查看端口工作模

Interface Serial1/0

Hardware is PowerQUICC MPC860

DTE V.35 clocks stopped.  //显示端口的状态为DTE(数据终端设备)

Router#show controllers  s1/0

Interface Serial1/0

Hardware is PowerQUICC MPC860

DCE V.35, no clock  //显示端口的状态为DCE(数据通讯设备)

Router(config)#int s1/0

Router(config-if)#clock rate 9600 //配置端口的时钟速率

十、查看设备的进行运行情况

hx-sc-1#show processes  //查看设备的进程。

CPU utilization for five seconds: 0%/0%; one minute: 0%; five minutes: 0%

 PID QTy       PC Runtime (ms)    Invoked        uSecs         Stacks TTY Process

   1 Cwe 606509B8           0          1       0 5608/6000   0 Chunk Manager

   2 Csp 60678444            0       1326       0 2620/3000   0 Load Meter

   3 M*         0         1804        184    9804 9820/12000  0 Exec

十一、查看设备接口的状态信息

hx-sc-1#show protocols //查看接口的状态及其使用的IP地址

Global values:

  Internet Protocol routing is enabled

FastEthernet0/0 is up, line protocol is up

  Internet address is 1.1.1.1/24 

Serial1/0 is administratively down, line protocol is down

Serial1/1 is up, line protocol is up

hx-sc-1#show ip interface brief //同上,区别:该命令没有显示子网信息

Interface                  IP-Address      OK? Method Status                Protocol

FastEthernet0/0            1.1.1.1         YES manual up                    up

Serial1/0                  unassigned      YES unset  administratively down down

十二、通道符号的使用

hx-sc-1#show run | begin interface //“|”是通道的含义,可以利用命令直接跳转到想要查看的部分。

interface FastEthernet0/0

 ip address 1.1.1.1 255.255.255.0

 duplex half

!

其参数包含:

hx-sc-1#show run | ?

  begin    Begin with the line that matches //开始的含义

  exclude  Exclude lines that match //不包含的含义

  include  Include lines that match //包含的含义

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多