单选题
360.为了查看路由器上串口 S0/0/1 是 DTE 接口还是 DCE 接口,应该使用下面哪个命令?
A
display interface s0/0/1
B
display current-config
C
display saved-config
D
display controller serial
答案解析
正确答案:A
解析:
好的,我们来详细解析一下这道题。
### 题目背景
在路由器中,串行接口(Serial Interface)可以配置为两种类型:DTE(Data Terminal Equipment,数据终端设备)和DCE(Data Communications Equipment,数据通信设备)。DTE通常用于连接终端设备,如计算机,而DCE通常用于连接通信设备,如调制解调器或交换机。
### 问题核心
题目要求我们查看路由器上的串口 S0/0/1 是 DTE 接口还是 DCE 接口。我们需要选择一个合适的命令来获取这些信息。
### 选项分析
**A. display interface s0/0/1**
- **解析**:`display interface s0/0/1` 命令用于显示指定接口的详细信息,包括接口的状态、配置参数等。在这个命令的输出中,我们可以看到接口的类型(DTE 或 DCE)。
- **示例**:
```plaintext
[Router] display interface s0/0/1
Serial0/0/1 current state : UP
Line protocol current state : UP
Description: Serial0/0/1 Interface
The Maximum Transmit Unit is 1500 bytes
Internet Address is 192.168.1.1/24
IP Sending Frames' Format is PPP, Hardware address is 0000.0000.0000
Last physical up time : 2023-10-01 12:00:00
Last physical down time : 2023-10-01 11:59:00
Encapsulation: PPP
DCE V.35 DTE V.35
```
在这个输出中,我们可以看到 `DCE V.35` 或 `DTE V.35`,从而确定接口的类型。
**B. display current-config**
- **解析**:`display current-config` 命令用于显示当前运行的配置。虽然这个命令可以显示所有接口的配置,但它的输出非常详细,查找特定接口的类型会比较麻烦。
- **示例**:
```plaintext
[Router] display current-config
...
interface Serial0/0/1
ip address 192.168.1.1 255.255.255.0
clock rate 64000
...
```
在这个输出中,虽然可以看到 `clock rate` 配置(DCE 接口特有的配置),但不如直接查看接口状态来得直观。
**C. display saved-config**
- **解析**:`display saved-config` 命令用于显示保存的配置文件。与 `display current-config` 类似,它也会显示所有接口的配置,但同样不便于快速查找特定接口的类型。
- **示例**:
```plaintext
[Router] display saved-config
...
interface Serial0/0/1
ip address 192.168.1.1 255.255.255.0
clock rate 64000
...
```
**D. display controller serial**
- **解析**:`display controller serial` 命令用于显示串行控制器的详细信息,包括硬件状态和配置。虽然可以提供一些有用的信息,但通常不包含接口类型的直接信息。
- **示例**:
```plaintext
[Router] display controller serial 0/0/1
Controller Serial0/0/1:
Hardware is HD64570
Interface is DTE
...
```
这个命令也可以显示接口类型,但不如 `display interface` 直接和常用。
### 为什么选 A
`display interface s0/0/1` 命令直接显示了指定接口的详细信息,包括接口的类型(DTE 或 DCE),因此是最合适的选择。其他命令虽然也能提供相关信息,但不如 `display interface` 直观和方便。
相关知识点:
查串口是DTE或DCE用此命令
相关题目
单选题
441.缺省路由可以来源于()。
单选题
440.以下关于IPv6任播地址说法正确的有?
单选题
439.如下图所示的网络,从安全角度考虑,路由器A拒绝从G0/0/1接口收到的OSPF报文、GRE报文、ICMP报文、以下哪些命令可以实现这个需求?
单选题
438.如图所示,华为交换机上关于VLAN的配置,说法正确的是()。
单选题
437.路由器接口输出信息如下, 则此接口可以接收哪些组播地址的数据?
单选题
436.IPSec VPN 支持以下哪些封装模式?
单选题
435.PPPoE 会话建立过程可分为哪两个阶段?
单选题
434.[Huawei GigabitEthernet0/0/1]port link-type access[Huawei-GigabitEthernet0/0/1]port default vlan 10[Huawei- GigabitEthernet0/0/2] port link-type trunk[Huawei-GigabitEthernet0/0/2] port trunk allow-pass vlan 10 根据如上所示的命令, 则下列描述中正 确的是 ( )
单选题
433.在华为 AR G3 系列路由器上, AAA 支持哪些认证模式?
单选题
432.在华为设备上部署 ACL 时, 下面描述正确的是 ( ) 。
