2
0
mirror of https://github.com/gnu4cn/ccna60d.git synced 2024-05-21 04:55:00 +08:00

Daily update. 2019-10-12 10:06:00

This commit is contained in:
gnu4cn 2019-10-12 10:06:00 +08:00
parent d18557338c
commit 3ea333800e
3 changed files with 174 additions and 0 deletions

View File

@ -200,4 +200,178 @@ RouterA#debug frame-relay lmi
3. 配置静态/动态地址映射Configure static/dynamic address mapping
4. 解决特定于协议的一些问题Address protocol-specific problems
CCNA考试不要求考生知道如何配置电信级帧中继交换机。只有在对家里或远程实验室中自己的帧中继连接进行配置时才想要知道如何完成帧中继交换机的配置。
![帧中继网络](images/4206.png)
*图 42.6 - 帧中继网络*
对于上面的网络拓扑,将在中间的帧中继交换机上进行下面的配置。请仅将此信息用作参考,因为考试并不要求:
```console
Router#conf t
Router(config)#frame-relay switching
Router(config)#int s0
Router(config-if)#clock rate 64000
Router(config-if)#encapsulation frame-relay
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame-relay route 121 interface s1 112
Router(config-if)#frame-relay route 121 interface s2 111
Router(config-if)#no shut
Router(config-if)#int s1
Router(config-if)#clock rate 64000
Router(config-if)#encapsulation frame-relay
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame-relay route 112 interface s0 121
Router(config-if)#frame-relay route 112 interface s2 111
Router(config-if)#int s2
Router(config-if)#clock rate 64000
Router(config-if)#encapsulation frame-relay
Router(config-if)#frame-relay intf-type dce
Router(config-if)#frame-relay route 111 interface s0 121
Router(config-if)#frame-relay route 111 interface s1 112
Router(config-if)#no shut
Router#show frame-relay route
```
## 帧中继故障排除
如早先指出的那样在电信公司将你的DLCI映射到错误端口或其得到的编号是错误的时候他们常常会搞错映射信息。此时就需要在给电信公司打电话或保修之前证实他们搞错了那么就要用到下面的命令
- `show frame-relay pvc`
- `show frame-relay lmi`
- `show frame-relay map`
- `debug frame-relay pvc`
- `debug frame-relay lmi`
### 帧中继的各种错误
令人费解的是,考试中有的时候会问一些有关帧中继链路上所报出错误的问题,因此需要知道:
- `BECN` -- 在帧传输相反方向中的帧经历了拥塞
- `FECN` -- 在帧传输方向上经历了拥塞
## 点对点协议的运作
由于下面这些因素点对点协议Point-to-Poinit ProtocolPPP被认为是一种互联网友好的协议
- 其支持数据压缩
- 内建了认证(`PAP`及`CHAP`
- 网络层的地址协商Network Layer address negotiation
- 错误侦测能力
在包括下面这些多种连接类型上都可以使用点对点协议:
- `DSL`
- `ISDN`
- 各种同步与异步链路
- `HSSI`
点对点协议可拆分为以下的二层子层Layer 2 sublayers:
- `NCP` -- 建立网络层协议(为网络层服务, establishes Network Layer protocols(serves the Network Layer)
- `LCP` -- 链路建立、链路认证以及对链路质量进行测试服务物理层estalishes, authenticates, and tests link quality
- `HDLC` -- 对链路上的数据报进行封装
掌握上面这些知识将在CCNA考试中大有裨益
## 点对点协议的配置
如同下图 42.7及下面的输出那样,点对点协议是非常容易配置的。稍后还将演示如何为点对点协议加上认证。
![一个点对点协议连接](images/4207.png)
*图 42.7 -- 一个点对点协议的连接*
```console
R1#conf t
R1(config)#interface s0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#no shut
R2#conf t
R2(config)#interface s0
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#encapsulation ppp
R2(config-if)#no shut
```
## 点对点协议的认证
点对点协议有着内建的口令认证协议PAP, Password Authentication Protocol或询问握手认证协议CHAP, Challenge Handshake Authentication Protocol形式的认证。口令认证协议将口令以明文形式在链路上发送这有着安全风险而询问握手认证协议则是发送使用了MD5加密的散列值。下面是询问握手认证协议的配置
![带有询问握手认证协议的点对点协议](images/4208.png)
*图 42.8 -- 带有询问握手认证协议的点对点协议*
```console
R1#conf t
R1(config)#username R2 password Cisco
R1(config)#interface s0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap
R1(config-if)#no shut
R2#conf t
R2(config)#username R1 password Cisco
R2(config)#interface s0
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
R2(config-if)#no shut
```
若要配置口令认证协议,可将上面配置中的`[chap]`关键字,替换为`[pap]`关键字。还可将点对点协议配置为尝试使用询问握手认证协议在使用询问握手认证协议失败时再尝试口令认证协议。这就是所谓的点对点协议回退特性PPP fallback下面就是配置此特性的命令
```console
R2(config-if)#ppp authentication chap ppp
```
## PPP的故障排除
执行一下`show interface serial 0/0`命令或以其他相应的接口编号以将IP地址、接口状态及封装类型等参数显示出来如下面的输出所示
```console
RouterA#show interface Serial0/0
Serial0 is up, line protocol is up
Hardware is HD64570
Internet address is 192.168.1.1/30
MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, loopback not set
Keepalive set (10 sec)
```
在使用了询问握手认证协议时,就要检查用户名是否与所呼叫的路由器是否匹配,同时记住这里的主机名是区分大小写的。使用`debug ppp authentication`与`debug ppp negotiation`两个命令来对点对点协议会话的建立进行故障排除。
## 第42天问题
1. Frame Relay is based on which older protocol?
2. What are the three types of LMIs available?
3. An LMI is sent every `_______` seconds, and every `_______` message is a full status update.
4. The DLCI number is only locally significant, so you could have a different one for the other end of your Frame Relay connection. True or false?
5. Explain the difference between BECNs and FECNs.
6. PPP does not include data compression or error detection. True or false?
7. Name the PPP sublayers.
8. Write out the command to configure CHAP with PPP.
9. Which command will show you the encapsulation type on your Serial interface?
10. `_______` sends the passwords over the link in clear text, which poses a security risk, whereas `_______` sends a hashed value using MD5 security.
## 第42天答案
1. The X.25 protocol.
2. CISCO, ANSI, and Q933a.
3. 10, sixth.
4. True.
5. Backward Explicit Congestion Notification (BECN): Frames in the direction opposite of the frame transmission experienced congestion; Forward Explicit Congestion Notification(FECN): Congestion was experienced in the direction of the frame transmission.
6. False.
7. NCP, LCP, and HDLC.
8. `ppp authentication chap`.
9. The show `interface serial [number]` command.
10. PAP, CHAP.

BIN
images/4207.png Normal file

Binary file not shown.

After

(image error) Size: 127 KiB

BIN
images/4208.png Normal file

Binary file not shown.

After

(image error) Size: 171 KiB