CCNA实验:PPP实验(CCNA实验)

网友投稿 210 2022-09-22


CCNA实验:PPP实验(CCNA实验)

第二步:在s1/2下封装hdlc查看结果R1#sh run int s1/2 Building configuration...

Current configuration:!interface Serial1/2ip address 10.1.1.1 255.255.255.0no ip directed-broadcastend

R1(config)#int s1/2 (给s1/2封装hdlc协议)R1(config-if)#encapsulation hdlcR1(config-if)#^Z

R1#sh run int s1/2 (查看封装结果)Building configuration...

Current configuration:!interface Serial1/2ip address 10.1.1.1 255.255.255.0no ip directed-broadcast (没有结果,代表cisco默认采用hdlc进行封装)end

R1#第三步:更改R1接口类型为PPPEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s1/2R1(config-if)#enR1(config-if)#encapsulation PPPR1(config-if)#

R1#sh int s1/2Serial1/2 is up, line protocol is down (这里line protocol 是down的)Hardware is M4TInternet address is 10.1.1.1/24MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255Encapsulation PPP, crc 16, loopback not set, keepalive set (10 sec) (协议封装为PPP)LCP ListenClosed: IPCP, CDPCP (NCP中的ipcp cdpcp目前是关闭的)Last input 00:00:02, output 00:00:30, output hang neverLast clearing of "show interface" counters neverInput queue: 0/75/0 (size/max/drops); Total output drops: 0Queueing strategy: weighted fairOutput queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total)Reserved Conversations 0/0 (allocated/max allocated)5 minute input rate 0 bits/sec, 0 packets/sec5 minute output rate 0 bits/sec, 0 packets/sec104 packets input, 6502 bytes, 0 no bufferReceived 97 broadcasts, 0 runts, 0 giants, 0 throttles0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort114 packets output, 6883 bytes, 0 underruns0 output errors, 0 collisions, 6 interface resets0 output buffer failures, 0 output buffers swapped out7 carrier transitions DCD=up DSR=up DTR=up RTS=up CTS=up

R1#第四步:更改R2的接口类型为PPPR2(config)#R2(config)#int s2/1 R2(config-if)#encapsulation PPPR2(config-if)#第五步:回到R1调试PPP第六步:使用debug ppp negotiationR1#debug ppp negotiation PPP protocol negotiation debugging is onR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s1/2R1(config-if)#shR1(config-if)#00:13:34: %LINK-5-CHANGED: Interface Serial1/2, changed state to administratively downR1(config-if)#00:13:34: Se1/2 IPCP: State is Closed00:13:34: Se1/2 CDPCP: State is Closed00:13:34: Se1/2 PPP: Phase is TERMINATING00:13:34: Se1/2 LCP: State is Closed00:13:34: Se1/2 PPP: Phase is DOWN00:13:34: Se1/2 IPCP: Remove route to 10.1.1.2R1(config-if)#00:13:35: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to downR1(config-if)#R1(config-if)#R1(config-if)#R1(config-if)#R1(config-if)#no shR1(config-if)#00:13:53: Se1/2 CDP: LCP not open, discarding packet00:13:53: %LINK-3-UPDOWN: Interface Serial1/2, changed state to up00:13:54: Se1/2 PPP: Treating connection as a dedicated line00:13:54: Se1/2 PPP: Phase is ESTABLISHING, Active Open00:13:54: Se1/2 LCP: O CONFREQ [Closed] id 13 len 1000:13:54: Se1/2 LCP: MagicNumber 0x000CBA09 (0x0506000CBA09)00:13:54: Se1/2 LCP: I CONFREQ [REQsent] id 2 len 1000:13:54: Se1/2 LCP: MagicNumber 0x000CDC9B (0x0506000CDC9B)00:13:54: Se1/2 LCP: O CONFACK [REQsent] id 2 len 1000:13:54: Se1/2 LCP: MagicNumber 0x000CDC9B (0x0506000CDC9B)00:13:54: Se1/2 LCP: I CONFACK [ACKsent] id 13 len 1000:13:54: Se1/2 LCP: MagicNumber 0x000CBA09 (0x0506000CBA09)00:13:54: Se1/2 LCP: State is Open00:13:54: Se1/2 PPP: Phase is UP00:13:54: Se1/2 IPCP: O CONFREQ [Closed] id 2 len 1000:13:54: Se1/2 IPCP: Address 10.1.1.1 (0x03060A010101)00:13:54: Se1/2 CDPCP: O CONFREQ [Closed] id 2 len 400:13:54: Se1/2 IPCP: I CONFREQ [REQsent] id 2 len 1000:13:54: Se1/2 IPCP: Address 10.1.1.2 (0x03060A010102)00:13:54: Se1/2 IPCP: O CONFACK [REQsent] id 2 len 1000:13:54: Se1/2 IPCP: Address 10.1.1.2 (0x03060A010102)00:13:54: Se1/2 CDPCP: I CONFREQ [REQsent] id 2 len 400:13:54: Se1/2 CDPCP: O CONFACK [REQsent] id 2 len 400:13:54: Se1/2 IPCP: I CONFACK [ACKsent] id 2 len 1000:13:54: Se1/2 IPCP: Address 10.1.1.1 (0x03060A010101)00:13:54: Se1/2 IPCP: State is Open00:13:54: Se1/2 CDPCP: I CONFACK [ACKsent] id 2 len 400:13:54: Se1/2 CDPCP: State is Open00:13:54: Se1/2 IPCP: Install route to 10.1.1.2 (可以看到ppp的ncp协议中的ipcp学习到了一条10.1.1.2的路由)00:13:55: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/2, changed state to upR1(config-if)#

第七步:现在查看一下R1的路由表R1#sh ip rouCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static route, o - ODRT - traffic engineered route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback010.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 10.1.1.2/32 is directly connected, Serial1/2 (看到这里确实学到了路由)C 10.1.1.0/24 is directly connected, Serial1/2

R2的路由表:R2#sh ip rouCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static route, o - ODRT - traffic engineered route

Gateway of last resort is not set

2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback010.0.0.0/8 is variably subnetted, 2 subnets, 2 masksC 10.1.1.0/24 is directly connected, Serial2/1 (看到这里确实学到了路由)C 10.1.1.1/32 is directly connected, Serial2/1R2#


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:帧中继交换机配置(帧中继交换机要进行流量控制)
下一篇:springboot动态调整日志级别的操作大全
相关文章

 发表评论

暂时没有评论,来抢沙发吧~