R5配置
[Huawei]int s3/0/0
[Huawei-Serial3/0/0]ip add 15.1.1.2 24
[Huawei-Serial3/0/0]int s3/0/1
[Huawei-Serial3/0/1]ip add 25.1.1.1 24
[Huawei-Serial3/0/1]int s4/0/0
[Huawei-Serial4/0/0]ip add 35.1.1.2 24
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 45.1.1.2 24
[Huawei-Serial4/0/0]link-pro
[Huawei-Serial4/0/0]link-protocol hdlc
[Huawei-Serial4/0/0]int lo0
[Huawei-LoopBack0]ip add 5.5.5.5 24
[Huawei]aaa
[Huawei-aaa]local-user shasha privilege level 15 password cipher 123
[Huawei-aaa]local-user shasha service-type ppp
[Huawei-aaa]local-user fang level 15 password cipher 123
[Huawei-aaa]local-user fang service-type ppp
[Huawei-aaa]int s3/0/0
[Huawei-Serial3/0/0]ppp authentication-mode pap
[Huawei-Serial3/0/0]shutdown
[Huawei-Serial3/0/0]undo shutdown
[Huawei-Serial3/0/0]ping 15.1.1.1
PING 15.1.1.1: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out
— 15.1.1.1 ping statistics —
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
[Huawei-Serial3/0/1]ppp authentication-mode chap
[Huawei-Serial3/0/1]shutdown
[Huawei-Serial3/0/1]undo shutdown
R1配置
[Huawei]sysname r1
[r1]int s4/0/0
[r1-Serial4/0/0]ip add 15.1.1.1 24
[r1-Serial4/0/0]int g0/0/0
[r1-GigabitEthernet0/0/0]192.168.1.1 24
[r1]int s4/0/0
[r1-Serial4/0/0]ppp pap local-user shasha password cipher 123
[r1-Serial4/0/0]ping 15.1.1.2
PING 15.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 15.1.1.2: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 15.1.1.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 15.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 15.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 15.1.1.2: bytes=56 Sequence=5 ttl=255 time=40 ms
— 15.1.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/32/50 ms
[r1]ping 25.1.1.1
PING 25.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 25.1.1.1: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 25.1.1.1: bytes=56 Sequence=2 ttl=254 time=40 ms
Reply from 25.1.1.1: bytes=56 Sequence=3 ttl=254 time=40 ms
Reply from 25.1.1.1: bytes=56 Sequence=4 ttl=254 time=50 ms
Reply from 25.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 ms
— 25.1.1.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/44/50 ms
[r1]ping 35.1.1.1
PING 35.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 35.1.1.1: bytes=56 Sequence=1 ttl=254 time=40 ms
Reply from 35.1.1.1: bytes=56 Sequence=2 ttl=254 time=40 ms
Reply from 35.1.1.1: bytes=56 Sequence=3 ttl=254 time=40 ms
Reply from 35.1.1.1: bytes=56 Sequence=4 ttl=254 time=40 ms
Reply from 35.1.1.1: bytes=56 Sequence=5 ttl=254 time=30 ms
— 35.1.1.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/38/40 ms
[r1]ping 45.1.1.1
PING 45.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 45.1.1.1: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 45.1.1.1: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 45.1.1.1: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 45.1.1.1: bytes=56 Sequence=4 ttl=254 time=20 ms
Reply from 45.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 ms
— 45.1.1.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/34/50 ms
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]source 14.1.1.1
[r1-Tunnel0/0/0]destination 45.1.1.1
[r1]interface tunnel 0/0/1
[r1-Tunnel0/0/1]ip add 10.1.2.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source 15.1.1.1
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp network-id 100
[r1]rip
[r1-rip-1]version 2
[r1-rip-1]undo summary
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r1-rip-1]int tunnel 0/0/1
[r1-Tunnel0/0/1]undo rip split-horizon
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1]int s4/0/0
[r1-Serial4/0/0]nat outbound 2000