第二章作业

R1:

[R1]int Serial 3/0/0
[R1-Serial3/0/0]ip address 192.168.1.1 24
[R1-Serial3/0/0]q
[R1]

R2:

[R2]int Serial 3/0/0 
[R2-Serial3/0/0]ip address 192.168.1.2 24
[R2-Serial3/0/0]
Mar 24 2024 21:26:52-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 

创建MP-GROUP接口:

[R2]interface Mp-group 0/0/0

让接口 加入MP-group组:

[R2]interface Serial 3/0/1
[R2-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:06-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R2-Serial3/0/1]q
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:39:40-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 

查看接口配置:

[R2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 5
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
Mp-group0/0/0                     192.168.2.1/24       down       down      
NULL0                             unassigned           up         up(s)           
Serial4/0/1                       unassigned           down       down      
Serial3/0/0                       192.168.1.2/24       up         up

R3:
创建MP-GROUP接口:

[R3]interface Mp-group 0/0/0
[R3-Mp-group0/0/0]ip address 192.168.2.4 24
[R3-Mp-group0/0/0]
Mar 24 2024 22:01:48-08:00 R3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PPP
 IPCP on the interface Mp-group0/0/0 has entered the UP state. 

让接口 加入MP-group组:

[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:18-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
[R3-Serial3/0/0]
Mar 24 2024 21:48:21-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Mp-group0/0/0 has entered the UP state. 
[R3-Serial3/0/0]q
[R3]interface Serial 3/0/1	
[R3-Serial3/0/1]ppp mp Mp-group 0/0/0
Mar 24 2024 21:48:47-08:00 R3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/1 has entered the DOWN state. 
[R3-Serial3/0/1]
Mar 24 2024 21:48:53-08:00 R3 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 on the interface Serial3/0/1 has entered the UP state. 
[R3-Serial3/0/1]q

查看配置:

[R3-Mp-group0/0/0]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 5
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           down       down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
Mp-group0/0/0                     192.168.2.4/24       up         up        
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[R3-Mp-group0/0/0]

查看是否成功:

[R3-Mp-group0/0/0]ping 192.168.2.1
  PING 192.168.2.1: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=50 ms
    Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 192.168.2.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/26/50 ms

配置R1-R2单向的chap验证:

主验证方:
[R2]aaa
[R2-aaa]local-user zhangdaye password cipher zdy12345
Info: Add a new user.
[R2-aaa]local-user zhangdaye service-type ppp
[R2-aaa]q
[R2]interface Serial 3/0/0
[R2-Serial3/0/0]ppp authentication-mode chap

被验证方:
[R1]interface Serial 3/0/0
[R1-Serial3/0/0]ppp chap user zhangdaye
[R1-Serial3/0/0]ppp chap password cipher zdy12345
[R1-Serial3/0/0]

测试:
[R1]ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=10 ms

  --- 192.168.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/28/40 ms

配置R2和R3的双向chap验证

R2:
主:
[R2-aaa]local-user yuedaye password cipher ydy12345
Info: Add a new user.	
[R2-aaa]local-user yuedaye service-type ppp
[R2-aaa]q
[R2]int Serial 3/0/1
[R2-Serial3/0/1]ppp authentication-mode chap


从:
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]ppp chap user xiadaye
[R2-Serial4/0/0]ppp chap password cipher xdy12345




R3:
从:
[R3]interface Serial 3/0/0
[R3-Serial3/0/0]ppp chap user yuedaye
[R3-Serial3/0/0]ppp chap password cipher ydy12345


主:
[R3-aaa]local-user xiadaye password cipher xdy12345
Info: Add a new user.
[R3-aaa]local-user xiadaye service-type ppp
[R3]int Serial 3/0/1
[R3-Serial3/0/1]ppp authentication-mode chap
[R3-Serial3/0/1]

笔记:

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值