实验要求:
划分ip:
最终如下图:
AR2路由:
[Huawei]int s3/0/0
[Huawei-Serial3/0/0]link-protocol hdlc
[Huawei]int s3/0/1
[Huawei-Serial3/0/1]ppp authentication-mode pap
[Huawei-Serial3/0/1]q
[Huawei]interface s4/0/0
[Huawei-Serial4/0/0]ip address 24.1.1.1 24
[Huawei-Serial4/0/0]q
[Huawei]aaa
[Huawei-aaa]local-user b password cipher 654321
Info: Add a new user.
[Huawei-aaa]local-user b service-type ppp .........
AR1和AR3、AR4设置缺省路由:
( 2.2.2.2 为AR2路由器上的环回)
在AR1上设置隧道口T0/0/0以实现mgre:
并设置nhrp协议,用来获取动态目的地址:
在AR3和AR4路由上设置隧道口T0/0/0:
在AR1、AR3、AR4上设置rip,并关闭AR1上的水平分割(否则AR3无法获取到AR4的地址):
测试: