目录
3.2 R2-R3之间为ppp封装,pap认证,R2为主认证方:
3.3 R2-R4之间为ppp封装,chap认证,R2为主认证方:
3..4 R1、R2、R3构建MGRE环境,仅R1IP地址固定:
1.题型及要求
2、实验思路
1、根据拓扑图配置好IP地址部分
2.R1-R2、R2-R3、R2-R4之间做好封装
3.所有的边界路由器发一条缺省指向isp,实现公网的全网可达。
4.构建MGRE环境:
中心站点配置:创建隧道接口,配置好隧道接口ip地址,定义该隧道为多点gre隧道,该隧道加封装的报头源ip地址,通过NHRP协议来获取加封装的目标ip地址,让本端成为NHRP服务端,设置一个NHRP的工作编号。
分支站点配置:创建隧道接口,配置好隧道接口ip地址,源IP地址填写接口编号,因为源ip地址可能会变,加封装的目标ip地址,需要到NHRP中心站点获取,设置一个NHRP的工作编号。
5…内网使用RIP获取路由,通过关闭水平分割来实现路由的全网正常收敛。
3、实验步骤
3.1 R1-R2之间为HDLC封装:
R1上的配置:
[R1]int s4/0/0
[R1-Serial4/0/0]ip add 12.1.1.1 24
[R1-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
R2上的配置
[ISP]int s4/0/0
[ISP-Serial4/0/0]ip add 12.1.1.2 24
[ISP-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
3.2 R2-R3之间为ppp封装,pap认证,R2为主认证方:
R2上配置:
[ISP]aaa
[ISP-aaa]local-user xiao password cipher 123456
[ISP-aaa]local-user xiao service-type ppp
[ISP]int s4/0/1
[ISP-Serial4/0/1]ppp authentication-mode pap
R3上配置:
[R3]int s4/0/0
[R3-Serial4/0/0]ppp pap local-user xiao password cipher 123456
3.3 R2-R4之间为ppp封装,chap认证,R2为主认证方:
R2上配置:
[ISP]aaa
[ISP-aaa]local-user gang password cipher 123456
[ISP-aaa]local-user gang service-type ppp
[ISP]int s3/0/0
[ISP-Serial3/0/0]ppp authentication-mode chap
R3上配置:
[R4]int s4/0/0
[R4-Serial4/0/0]ppp chap user gang
[R4-Serial4/0/0]ppp chap password cipher 123456
3..4 R1、R2、R3构建MGRE环境,仅R1IP地址固定:
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip add 192.168.4.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 12.1.1.1
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp network-id 100
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip add 192.168.4.2 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source s4/0/0
[R3-Tunnel0/0/0]nhrp entry 192.168.4.1 12.1.1.1 register
[R3-Tunnel0/0/0]nhrp network-id 100
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]ip add 192.168.4.3 24
[R4-Tunnel0/0/0]tunnel-protocol gre p2mp
[R4-Tunnel0/0/0]source s4/0/0
[R4-Tunnel0/0/0]nhrp entry 192.168.4.1 12.1.1.1 register
[R4-Tunnel0/0/0]nhrp network-id 100
3.5 内网使用RIP获取路由:
[R1]rip
[R1-rip-1]version 2
[R1-rip-1]network 192.168.1.0
[R1-rip-1]network 192.168.4.0
[R1-Tunnel0/0/0]undo rip split-horizon
[R3]rip
[R3-rip-1]version 2
[R3-rip-1]network 192.168.4.0
[R3-rip-1]network 192.168.2.0
[R4]rip
[R4-rip-1]version 2
[R4-rip-1]network 192.168.4.0
[R4-rip-1]network 192.168.3.0