在rip环境下的MGRE实验

  • R1与R5之间使用PPP协议的PAP认证,R5为主认证方。
  • R2与R5之间使用PPP协议的CHAP认证,R5为主认证方。
  • R3与R5之间使用HDLC协议封装。
  • R1、R2、R3之间构建MGRE环境,R1为中心站点。
  • R1、R4之间构建点到点的GRE环境。

IP地址规划

  • R1:
    • GigabitEthernet0/0/0: 192.168.1.254/24
    • Serial4/0/0: 15.0.0.1/8
    • Tunnel0/0/1 (MGRE): 192.168.6.1/24
    • Tunnel0/0/0 (GRE): 192.168.5.1/24
  • R2:
    • GigabitEthernet0/0/0: 192.168.2.254/24
    • Serial4/0/0: 25.0.0.1/8
    • Tunnel0/0/1 (MGRE): 192.168.6.2/24
  • R3:
    • GigabitEthernet0/0/0: 192.168.3.254/24
    • Serial4/0/0: 35.0.0.1/8
    • Tunnel0/0/1 (MGRE): 192.168.6.3/24
  • R4:
    • GigabitEthernet0/0/0: 192.168.4.254/24
    • GigabitEthernet0/0/1: 45.0.0.1/8
    • Tunnel0/0/0 (GRE): 192.168.5.4/24
  • R5:
    • Serial3/0/0: 15.0.0.2/24
    • Serial3/0/1: 25.0.0.2/24
    • Serial4/0/0: 35.0.0.2/24
    • GigabitEthernet0/0/0: 45.0.0.2/24
    • LoopBack0: 5.5.5.5/24

R1与R5之间使用PPP协议的PAP认证,R5为主认证方

< ISP > sys 
 Enter system view , return user view with Ctrl + Z .[ ISP ] aaa [ ISP - aaa ] lo 
[ ISP - aaa ] local - user 
 Error : Incomplete command found atposition .[ ISP - aaa ]
[ ISP - aaa ] lo 
[ ISP - aaa ] local - user rl pa 
[ ISP - aaajlocal - user rl password cip 
[ ISP - aaa ] local - user rl password cipher 123456
 Info : Add a new user .
[ ISP - aaa ] lo 
[ ISP - aaa ] local - user rl ser 
[ ISP - aaa ] local - user rl service - type ppp 
[ ISP - aaa ] q 
[ ISP ] int =
[ ISP ] int 
[ ISP ]interfaces3/0/0
[ ISP -Serial3/0/0] lin 
[ ISP -Serial3/0/0] link - protocol ppp 
[ ISP -Serial3/0/0] ppp _ au 
[ ISp -Serial3/0/0] ppp _ authentication - mode pap 
[ ISP -Serial3/0/0]

R2与R5之间使用PPP协议的CHAP认证,R5为主认证方

AR5
AR1
[ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0][ ISP -Serial3/0/0]
[ ISP -Serial3/0/0] q 
[ ISP ]
[ ISP ]
[ ISP ]
[ ISP ]
[ ISP ] aaa 
[ ISP - aaa ] lo 
[ ISP - aaa ] local - user r2 pa 
[ ISP - aaa ] local - user r2 password ci 
[ ISP - aaa ] local - user r2 password cipher 123456
 Info : Add a new user .
[ ISP - aaa ] lo 
[ ISP - aaa ] local - user r2 ser 
[ ISP - aaa ] local - user r2 service - type ppp 
[ ISP - aaa ] q 
[ ISP ] in 
[ ISP ] info - center 
[ ISP ] interface s3/0/1
[ ISP -Serial3/0/1] ppp _ a 
[ ISP -Serial3/0/1] ppp authentication - mode ch 
[ ISP -Serial3/0/1] ppp authentication - mode chap [ ISP -Serial3/0/1]

R3与R5之间使用HDLC协议封装

AR3
 The device is running !
<r3> sys 
 Enter system view , return user view with Ctrl + Z .
[r3] int 
[r3]interfaces4/0/0
[r3-Serial4/0/0]1in
[r3-Serial4/0/0] link - protocolhd 
[r3-Serial4/0/0] link - protocol hdlc 
[r3-Serial4/0/0]
Jul7202419:06:48-08:00r3%*01IFPDT/4/IF STATE (1)[1]: Interface Serial4/0/0h as turned into DOWN state .[r3-Serial4/0/0]
 Jul 7202419:06:49-08:00r3*号01IFPDT/4/IF STATE (1)[2]: Interface Serial4/0/0 h as turned into UP state .
[r3-Serial4/0/0]
 Jul 7202419:06:49-08:00r3%*01IFNET/4/LINK STATE (1)[3]: The line protocol IP on the interface Serial4/0/0 has entered the UP state .[r3-Serial4/0/0]

R1、R2、R3之间构建MGRE环境,R1为中心站点

配置缺省:

[ rl ] ip route - static 0.0.0.0015.0.0.2[r1]
[ rl ]

[r2] ip route -static0.0.0.0025.0.0.2[r2]

[r3] ip route 
[r3] ip route - static 0.0.0.0035.0.0.2
[r3]

[R4] ip route - static 0.0.0.0045.0.0.2[R4]
[R4]

配置IP:

[ rl ]
[ rl ]
[ rl ] in 
[ rl ] info - center 
[ rl ]interfacet0/0/0
[ rl -Tunne10/0/0] ipad 
[ rl -Tunne10/0/0] ip address 192.168.5.124[r2] int 
[r2] interface 
[r2]interfacet0/0/0
 r -Tunne10/0/0] ip ad 
[r2-Tunne10/0/0] ip address 192.168.5.2.24
[r2-Tunne10/0/0][r3]
[r3]
[r3] int t0/0/0
[r3-Tunne10/0/0] ip add 
[r3-Tunne10/0/0] ip address 192.168.5.324
[r3-Tunne10/0/0]

R1、R4之间构建点到点的GRE环境

[R4] in 
[R4] info - center 
[R4] interface t0/0/1
[R4-Tunne10/0/1] ip _ ad 
[R4-Tunne10/0/1] ip address 192.168.6.224
[R4-Tunne10/0/1] tu 
[R4-Tunne10/0/1] tunnel - protocol gr 
[R4-Tunne10/0/1] tunnel - protocol gre 
[R4-Tunne10/0/1] sou 
[R4-Tunne10/0/1] source 45.0.0.1
[R4-Tunne10/0/1] dest 
[R4-Tunne10/0/1] destination 15.0.0.1
Jul7202419:26:53-08:00R4*01IFNET/4/LINK_ STATE (1)[0]: The line protocol IP on the interface Tunne10/0/1 has entered the UP state .
[R4-Tunne10/0/1]
[R4-Tunne10/0/1]

rl ] in 
 rl ] info - center 
 rl ] interface t0/0/1
 rl -Tunne10/0/1] ip ad 
 rl -Tunne10/0/1] ip address 192.168.6.124
 rl -Tunnel0/0/1] tu 
 rl -Tunne10/0/1] tunnel - protocol gre 
 rl -Tunne10/0/1] sou 
 rl -Tunne10/0/1] source 15.0.0.1
 rl -Tunne10/0/1] des 
 rl -Tunne10/0/1] description 45.0.0.1
 rl -Tunne10/0/1]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值