实验要求:
实验步骤:
1.配置各个ip地址,环回,PC端的ip地址
R1
[r1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[r1-Serial1/0/0]ip address 15.1.1.1 24
[r1]ip route-static 0.0.0.0 0 15.1.1.5
R2
[r2-GigabitEthernet0/0/0]ip address 192.168.2.254 24
[r2-Serial1/0/1]ip address 25.1.1.2 24
[r2]ip route-static 0.0.0.0 0 25.1.1.5
R3
[r3-GigabitEthernet0/0/0]ip address 192.168.3.254 24
[name r3-Serial1/0/0]ip address 35.1.1.3 24
[name r3]ip route-static 0.0.0.0 0 35.1.1.5
R4
[r4-GigabitEthernet0/0/0]ip ad 192.168.4.254 24
[r4-GigabitEthernet0/0/1]ip ad 45.1.1.4 24
[r4]ip route-static 0.0.0.0 0 45.1.1.5
R5
[r5-Serial1/0/0]ip add 15.1.1.5 24
[r5-Serial1/0/1]ip add 25.1.1.5 24
[r5-Serial2/0/1]ip add 35.1.1.5 24
[r5-GigabitEthernet0/0/0]ip add 45.1.1.5 24
[r5-LoopBack0]ip add 5.5.5.5 24
2.第二项要求完成
[r1-Serial1/0/0]ppp pap local-user tlc password cipher tlc123456
[r5-aaa]local-user tlc password cipher tlc123456 privilege level 15
[r5-Serial1/0/0]ppp authentication-mode pap
[r2-Serial1/0/1]ppp chap user tlc
[r2-Serial1/0/1]ppp chap password cipher tlc123456
[r5-Serial1/0/1]ppp authentication-mode chap
[name r3-Serial1/0/0]link-protocol hdlc
[r5-Serial2/0/1]link-protocol hdlc
检查
构建MGRE
[r1-Tunnel0/0/0]ip add 10.1.2.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 15.1.1.1
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r2-Tunnel0/0/0]ip address 10.1.2.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source Serial 1/0/1
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 register
[name r3-Tunnel0/0/0]ip add 10.1.2.3 24
[name r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[name r3-Tunnel0/0/0]source Serial 1/0/0
[name r3-Tunnel0/0/0]nhrp network-id 100
[name r3-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 register
检查
要求4
[r1-rip-1]undo summary
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r2-rip-1]netw 192.168.2.0
[r2-rip-1]netw 10.0.0.0
[name r3-rip-1]network 192.168.3.0
[name r3-rip-1]network 10.0.0.0
要求5
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1-Serial1/0/0]nat outbound 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2-Serial1/0/1]nat outbound 2000
[name r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[name r3-Serial1/0/0]nat outbound 2000
[r4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[r4-GigabitEthernet0/0/1]nat outbound 2000