2021-10-09
作者:互联网
1、R5为ISP,只能进行ip地址配置:其所有接口配置为公有ip地切
2、R1与R5间使用PPP的PAP认证,R5为主认证方;R2与R5间使用PPP的chap认证 R5为主认证方;R3与R5间使用HDLC封装
3、R1/2/3构建一个MGRE环境,R1为中心站点;R1/4间为点到点GRE
4、整个私有网络基于RIP全网可达
5、所有路由器其于不同私有地址为源ip时,可以正常访问R5环回
R1的配置:
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.1 24
[Huawei-GigabitEthernet0/0/0]int s4/0/0
[Huawei-Serial4/0/0]link-protocol ppp
[Huawei-Serial4/0/0]ppp pap local-user huawei password cipher huawei123
[Huawei-Serial4/0/0]ip address 15.1.1.1 24
[Huawei-Serial4/0/0]q
[Huawei]int t0/0/0
[Huawei-Tunnel0/0/0]ip ad 10.1.1.1 255.255.255.0
[Huawei-Tunnel0/0/0]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/0]source 15.1.1.1
[Huawei-Tunnel0/0/0]nhrp entry multicast dynamic
[Huawei-Tunnel0/0/0]nhrp network-id 100
[Huawei-Tunnel0/0/0]undo rip split-horizon
[Huawei-Tunnel0/0/0]int t0/0/1
[Huawei-Tunnel0/0/1]tunnel-protocol gre
[Huawei-Tunnel0/0/1]source 15.1.1.1
[Huawei-Tunnel0/0/1]description 45.1.1.1
[Huawei-Tunnel0/0/1]q
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]un summary
[Huawei-rip-1]network 192.168.1.0
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]q
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]int s4/0/0
[Huawei-Serial4/0/0]nat outbound 2000
R2的配置:
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.2.1 24
[Huawei-GigabitEthernet0/0/0]int s4/0/0
[Huawei-Serial4/0/0]link-protocol ppp
[Huawei-Serial4/0/0]ppp chap password cipher huawei123
[Huawei-Serial4/0/0]int t0/0/0
[Huawei-Tunnel0/0/0]ip ad 10.1.1.2 255.255.255.0
[Huawei-Tunnel0/0/0]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/0]source Serial 4/0/0
[Huawei-Tunnel0/0/0]nhrp network-id 100
[Huawei-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]un summary
[Huawei-rip-1]network 192.168.2.0
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]q
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]int s4/0/0
[Huawei-Serial4/0/0]nat outbound 2000
R3的配置:
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.3.1 24
[Huawei-GigabitEthernet0/0/0]int s4/0/0
[Huawei-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
[Huawei-Serial4/0/0]int t0/0/0
[Huawei-Tunnel0/0/0]ip ad 10.1.1.3 255.255.255.0
[Huawei-Tunnel0/0/0]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/0]source s4/0/0
[Huawei-Tunnel0/0/0]nhrp network-id 100
[Huawei-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register
[Huawei-Tunnel0/0/0]q
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]un summary
[Huawei-rip-1]network 192.168.3.0
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]q
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]int s4/0/0
[Huawei-Serial4/0/0]nat outbound 2000
R4的配置:
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.4.1 24
[Huawei-GigabitEthernet0/0/1]int t0/0/1
[Huawei-Tunnel0/0/1]ip ad 10.1.1.1 24
[Huawei-Tunnel0/0/1]tunnel-protocol gre
[Huawei-Tunnel0/0/1]source 45.1.1.1
[Huawei-Tunnel0/0/1]description 15.1.1.1
[Huawei-Tunnel0/0/1]q
[Huawei]rip
[Huawei-rip-1]version 2
[Huawei-rip-1]un summary
[Huawei-rip-1]network 192.168.4.0
[Huawei-rip-1]network 10.0.0.0
[Huawei-rip-1]q
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]int s4/0/0
[Huawei-Serial4/0/0]nat outbound 2000
R5的配置:
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher huawei123
Info: Add a new user.
[Huawei-aaa]local-user huawei service-type ppp
[Huawei-aaa]int s3/0/0
[Huawei-Serial3/0/0]ppp authentication-mode pap
[Huawei-Serial3/0/0]ip ad 15.1.1.2 24
[Huawei-Serial3/0/0]q
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher huawei123
[Huawei-aaa]local-user huawei service-type ppp
[Huawei-aaa]int s3/0/0
[Huawei-Serial3/0/0]ppp authentication-mode chap
[Huawei-Serial3/0/0]int s4/0/0
[Huawei-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
标签:10,Serial4,int,09,rip,Huawei,2000,2021,Tunnel0 来源: https://blog.csdn.net/cf6666666/article/details/120677678