要求:
R5为ISP,只能进行IP地址配置;其所有地址均为公有IP地址
R1 pap认证
认证方
The device is running!
<Huawei>
<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy ISP
[ISP]int s 3/0/0
[ISP-Serial3/0/0]ip ad 15.0.0.2 8
[ISP-Serial3/0/0]int s 3/0/1
[ISP-Serial3/0/1]ip ad 25.0.0.2 8
[ISP-Serial3/0/1]int s 4/0/0
[ISP-Serial4/0/0]ip ad 35.0.0.2 8
[ISP-Serial4/0/0]int g 0/0/0
[ISP-GigabitEthernet0/0/0]ip ad 45.0.0.2 8
Nov 2 2023 18:40:33-08:00 ISP %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[ISP-GigabitEthernet0/0/0]
Nov 2 2023 18:42:13-08:00 ISP %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PP
P IPCP on the interface Serial3/0/0 has entered the UP state.
[ISP-GigabitEthernet0/0/0]
Nov 2 2023 18:42:13-08:00 ISP %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PP
P IPCP on the interface Serial3/0/0 has entered the DOWN state.
[ISP-GigabitEthernet0/0/0]int s 3/0/0
[ISP-Serial3/0/0]li
[ISP-Serial3/0/0]link-protocol ppp
[ISP-Serial3/0/0]ppp au
[ISP-Serial3/0/0]ppp authentication-mode pap
[ISP-Serial3/0/0]re
[ISP-Serial3/0/0]remote ad
[ISP-Serial3/0/0]remote address 15.0.0.1
[ISP-Serial3/0/0]
Nov 2 2023 18:42:43-08:00 ISP %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PP
P IPCP on the interface Serial3/0/0 has entered the UP state.
[ISP-Serial3/0/0]
Nov 2 2023 18:46:45-08:00 ISP %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state.
[ISP-Serial3/0/0]
Nov 2 2023 18:46:45-08:00 ISP %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the DOWN state.
被认证方
The device is running!
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy AR1
[AR1]aaa
[AR1-aaa]lo
[AR1-aaa]local-user ar1 pa
[AR1-aaa]local-user ar1 password c
[AR1-aaa]local-user ar1 password cipher 123
Info: Add a new user.
[AR1-aaa]lo
[AR1-aaa]local-user c
[AR1-aaa]local-user ar
[AR1-aaa]local-user ar1 s
[AR1-aaa]local-user ar1 service-type ppp
[AR1-aaa]int s 4/0/0
[AR1-Serial4/0/0]li
[AR1-Serial4/0/0]link-protocol ppp
[AR1-Serial4/0/0]ppp au
[AR1-Serial4/0/0]ppp authentication-mode pap
[AR1-Serial4/0/0]ppp authentication-mode pap
[AR1-Serial4/0/0]ppp pap lo
[AR1-Serial4/0/0]ppp pap local-user ar1 pa
[AR1-Serial4/0/0]ppp pap local-user ar1 password c
[AR1-Serial4/0/0]ppp pap local-user ar1 password cipher 123
[AR1-Serial4/0/0]ip ad ppp
[AR1-Serial4/0/0]ip ad ppp-negotiate
[AR1-Serial4/0/0]
Nov 2 2023 18:42:43-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[AR1-Serial4/0/0]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 4
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
Serial4/0/0 15.0.0.1/32 up up
Serial4/0/1 unassigned down down
[AR1-Serial4/0/0]
R2 chap认证
认证方
The device is running!
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy AR2
[AR2]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR2>
<AR2>sy
Enter system view, return user view with Ctrl+Z.
[AR2]aaa
[AR2-aaa]lo
[AR2-aaa]local-user ar2 pa
[AR2-aaa]local-user ar2 password v
[AR2-aaa]local-user ar2 password c
[AR2-aaa]local-user ar2 password cipher 123
Info: Add a new user.
[AR2-aaa]lo
[AR2-aaa]local-user ar
[AR2-aaa]local-user ar2 s
[AR2-aaa]local-user ar2 service-type ppp
[AR2-aaa]int s 4/0/0
[AR2-Serial4/0/0]li
[AR2-Serial4/0/0]link-protocol ppp
[AR2-Serial4/0/0]ppp au
[AR2-Serial4/0/0]ppp authentication-mode c
[AR2-Serial4/0/0]ppp authentication-mode chap
[AR2-Serial4/0/0]ppp c
[AR2-Serial4/0/0]ppp chap
^
Error:Incomplete command found at '^' position.
[AR2-Serial4/0/0]ppp chap us
[AR2-Serial4/0/0]ppp chap user ar2
[AR2-Serial4/0/0]ppp c
[AR2-Serial4/0/0]ppp chap pa
[AR2-Serial4/0/0]ppp chap password c
[AR2-Serial4/0/0]ppp chap password cipher 123
[AR2-Serial4/0/0]ip ad ppp
[AR2-Serial4/0/0]ip ad ppp-negotiate
[AR2-Serial4/0/0]
Nov 2 2023 18:47:20-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state.
[AR2-Serial4/0/0]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 4
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
Serial4/0/0 25.0.0.1/32 up up
Serial4/0/1 unassigned down down
[AR2-Serial4/0/0]
被认证方
[ISP-Serial3/0/0]int s 3/0/1
[ISP-Serial3/0/1]l
[ISP-Serial3/0/1]li
[ISP-Serial3/0/1]link-protocol ppp
[ISP-Serial3/0/1]ppp au
[ISP-Serial3/0/1]ppp authentication-mode c
[ISP-Serial3/0/1]ppp authentication-mode chap
[ISP-Serial3/0/1]
Nov 2 2023 18:47:15-08:00 ISP %%01IFNET/4/LINK_STATE(l)[6]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state.
[ISP-Serial3/0/1]r
Nov 2 2023 18:47:15-08:00 ISP %%01IFNET/4/LINK_STATE(l)[7]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the DOWN state.
[ISP-Serial3/0/1]re
[ISP-Serial3/0/1]remote ad
[ISP-Serial3/0/1]remote address 25.0.0.1
[ISP-Serial3/0/1]
Nov 2 2023 18:47:21-08:00 ISP %%01IFNET/4/LINK_STATE(l)[8]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state.
[ISP-Serial3/0/1]ppp c
[ISP-Serial3/0/1]ppp chap us
[ISP-Serial3/0/1]ppp chap user ar2
[ISP-Serial3/0/1]ppp c
[ISP-Serial3/0/1]ppp chap pa
[ISP-Serial3/0/1]ppp chap password c
[ISP-Serial3/0/1]ppp chap password cipher 123
[ISP-Serial3/0/1]
Nov 2 2023 18:48:51-08:00 ISP %%01IFNET/4/LINK_STATE(l)[9]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state.
R3 hdlc封装
[ISP-Serial3/0/1]int s 4/0/0
[ISP-Serial4/0/0]li
[ISP-Serial4/0/0]link-protocol hd
[ISP-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Nov 2 2023 18:49:06-08:00 ISP %%01IFNET/4/CHANGE_ENCAP(l)[10]:The user performe
d the configuration that will change the encapsulation protocol of the link and
then selected Y.
[ISP-Serial4/0/0]
Nov 2 2023 18:49:06-08:00 ISP %%01IFPDT/4/IF_STATE(l)[11]:Interface Serial4/0/0
has turned into DOWN state.
[ISP-Serial4/0/0]
Nov 2 2023 18:49:07-08:00 ISP %%01IFPDT/4/IF_STATE(l)[12]:Interface Serial4/0/0
has turned into UP state.
[ISP-Serial4/0/0]
Nov 2 2023 18:49:07-08:00 ISP %%01IFNET/4/LINK_STATE(l)[13]:The line protocol I
P on the interface Serial4/0/0 has entered the UP state.
[ISP-Serial4/0/0]
The device is running!
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy AR3
[AR3]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR3>sy
Enter system view, return user view with Ctrl+Z.
[AR3]int s 4/0/0
[AR3-Serial4/0/0]li
[AR3-Serial4/0/0]link-protocol hd
[AR3-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Nov 2 2023 18:48:51-08:00 AR3 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and t
hen selected Y.
[AR3-Serial4/0/0]
Nov 2 2023 18:48:51-08:00 AR3 %%01PPP/4/PHYSICALDOWN(l)[1]:On the interface Ser
ial4/0/0, PPP link was closed because the status of the physical layer was Down.
[AR3-Serial4/0/0]
Nov 2 2023 18:48:51-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state.
[AR3-Serial4/0/0]
Nov 2 2023 18:48:51-08:00 AR3 %%01IFPDT/4/IF_STATE(l)[3]:Interface Serial4/0/0
has turned into DOWN state.
[AR3-Serial4/0/0]
Nov 2 2023 18:48:51-08:00 AR3 %%01IFPDT/4/IF_STATE(l)[4]:Interface Serial4/0/0
has turned into UP state.
[AR3-Serial4/0/0]
Nov 2 2023 18:48:51-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
on the interface Serial4/0/0 has entered the UP state.
[AR3-Serial4/0/0]
R1/R2/R3构建一个MGRE环境,R1为中心站点;R1、R4间为点到点的GRE
在配置gre/mgre之前首先需要保证公网连通性,因此需要在私网边界路由器配置缺省路由指向公网路由器
[AR1]ip route-static 0.0.0.0 0 15.0.0.2
[AR2]ip route-static 0.0.0.0 0 25.0.0.2
[AR3]ip route-static 0.0.0.0 0 35.0.0.2
[AR4]ip route-static 0.0.0.0 0 45.0.0.2
R1mgre
[AR1]int t 0/0/1
[AR1-Tunnel0/0/1]ip ad 192.168.5.1 24
[AR1-Tunnel0/0/1]tu
[AR1-Tunnel0/0/1]tunnel-protocol gre p
[AR1-Tunnel0/0/1]tunnel-protocol gre p2mp
[AR1-Tunnel0/0/1]sou
[AR1-Tunnel0/0/1]source 15.0.0.1
Nov 2 2023 19:03:07-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[AR1-Tunnel0/0/1]
[AR1-Tunnel0/0/1]nh
[AR1-Tunnel0/0/1]nhrp en
[AR1-Tunnel0/0/1]nhrp entry mu
[AR1-Tunnel0/0/1]nhrp entry multicast dy
[AR1-Tunnel0/0/1]nhrp entry multicast dynamic
[AR1-Tunnel0/0/1]nh
[AR1-Tunnel0/0/1]nhrp ne
[AR1-Tunnel0/0/1]nhrp network-id 1
[AR1-Tunnel0/0/1]q
[AR1]dis nh p a
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.5.2 32 25.0.0.1 192.168.5.2 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/1
Created time : 00:03:45
Expire time : 01:56:15
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.5.3 32 35.0.0.1 192.168.5.3 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/1
Created time : 00:01:44
Expire time : 01:58:16
Number of nhrp peers: 2
R2mgre
[AR2]int t 0/0/1
[AR2-Tunnel0/0/1]ip ad 192.168.5.2 24
[AR2-Tunnel0/0/1]tu
[AR2-Tunnel0/0/1]tunnel-protocol g
[AR2-Tunnel0/0/1]tunnel-protocol gre p
[AR2-Tunnel0/0/1]tunnel-protocol gre p2mp
[AR2-Tunnel0/0/1]sou
[AR2-Tunnel0/0/1]source s 4/0/0
Nov 2 2023 19:04:04-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[AR2-Tunnel0/0/1]nh
[AR2-Tunnel0/0/1]nhrp ne
[AR2-Tunnel0/0/1]nhrp network-id 1
[AR2-Tunnel0/0/1]nhr
[AR2-Tunnel0/0/1]nhrp en
[AR2-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1
[AR2-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1 re
[AR2-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1 register
[AR2-Tunnel0/0/1]q
[AR2]sia nh
[AR2]dis nh p a
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.5.1 32 15.0.0.1 192.168.5.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/1
Created time : 00:01:17
Expire time : --
Number of nhrp peers: 1
R3mgre
[AR3]int t 0/0/1
[AR3-Tunnel0/0/1]ip ad 192.168.5.3 24
[AR3-Tunnel0/0/1]tu
[AR3-Tunnel0/0/1]tunnel-protocol gre p
[AR3-Tunnel0/0/1]tunnel-protocol gre p2mp
[AR3-Tunnel0/0/1]sou
[AR3-Tunnel0/0/1]source s 4/0/0
[AR3-Tunnel0/0/1]nh
[AR3-Tunnel0/0/1]nhrp ne
[AR3-Tunnel0/0/1]nhrp network-id 1
[AR3-Tunnel0/0/1]nh
[AR3-Tunnel0/0/1]nhrp en
[AR3-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1
[AR3-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1 re
[AR3-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1 re
[AR3-Tunnel0/0/1]nhrp entry 192.168.5.1 15.0.0.1 register
Info: Peer entry exists already.
[AR3-Tunnel0/0/1]dis nh
[AR3-Tunnel0/0/1]q
[AR3]dis nh
[AR3]dis nhrp pe
[AR3]dis nhrp peer a
[AR3]dis nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.5.1 32 15.0.0.1 192.168.5.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/1
Created time : 00:00:40
Expire time : --
Number of nhrp peers: 1
[AR3]int s 4/0/0
[AR3-Serial4/0/0]ip ad 35.0.0.1 8
Nov 2 2023 19:07:40-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/1 has entered the UP state.
[AR3-Serial4/0/0]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 4
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
Serial4/0/0 35.0.0.1/8 up up
Serial4/0/1 unassigned down down
Tunnel0/0/1 192.168.5.3/24 up up
[AR3-Serial4/0/0]int t 0/0/1
[AR3-Tunnel0/0/1]dis th
[V200R003C00]
#
interface Tunnel0/0/1
ip address 192.168.5.3 255.255.255.0
tunnel-protocol gre p2mp
source Serial4/0/0
nhrp network-id 1
nhrp entry 192.168.5.1 15.0.0.1 register
#
return
R1gre
<AR1>sy
Enter system view, return user view with Ctrl+Z.
[AR1]ip rou
[AR1]ip route-s
[AR1]ip route-static 0.0.0.0 0 15.0.0.2
[AR1]int g 0/0/0
[AR1-GigabitEthernet0/0/0]ip ad 192.168.1.1 24
Nov 2 2023 18:54:35-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR1-GigabitEthernet0/0/0]int t 0/0/0
[AR1-Tunnel0/0/0]ip ad 192.168.6.1 24
[AR1-Tunnel0/0/0]tu
[AR1-Tunnel0/0/0]tunnel-protocol gre
[AR1-Tunnel0/0/0]sou
[AR1-Tunnel0/0/0]source 15.0.0.1
[AR1-Tunnel0/0/0]de
[AR1-Tunnel0/0/0]description
[AR1-Tunnel0/0/0]destination 45.0.0.1
Nov 2 2023 18:55:30-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[AR1-Tunnel0/0/0]
[AR1-Tunnel0/0/0]q
[AR1]ip rou
[AR1]ip route-s
[AR1]ip route-static 192.168.4.1 24 192.168.6.2 //此网络为基于rip的网络,所以该条路由可不写
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.4.0/24 was generated.
[AR1]ping -a 192.168.1.1 192.168.4.1
PING 192.168.4.1: 56 data bytes, press CTRL_C to break
Request time out
Reply from 192.168.4.1: bytes=56 Sequence=2 ttl=255 time=60 ms
Reply from 192.168.4.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.4.1: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 192.168.4.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 20/35/60 ms
[AR1]
R4gre
The device is running!
<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]sy AR4
[AR4]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<AR4>
<AR4>sy
Enter system view, return user view with Ctrl+Z.
[AR4]ip rou
[AR4]ip route-s
[AR4]ip route-static 0.0.0.0 0 45.0.0.2
[AR4]int g 0/0/0
[AR4-GigabitEthernet0/0/0]ip ad 192.168.4.1 24
[AR4-GigabitEthernet0/0/0]
Nov 2 2023 18:56:40-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR4-GigabitEthernet0/0/0]int g 0/0/1
[AR4-GigabitEthernet0/0/1]ip ad 45.0.0.1 8
Nov 2 2023 18:56:51-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR4-GigabitEthernet0/0/1]int t 0/0/0
[AR4-Tunnel0/0/0]ip ad 192.168.6.2 24
[AR4-Tunnel0/0/0]tu
[AR4-Tunnel0/0/0]tunnel-protocol gre
[AR4-Tunnel0/0/0]sou
[AR4-Tunnel0/0/0]source 45.0.0.1
[AR4-Tunnel0/0/0]de
[AR4-Tunnel0/0/0]description
[AR4-Tunnel0/0/0]destination 15.0.0.1
Nov 2 2023 18:57:25-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[AR4-Tunnel0/0/0]
[AR4-Tunnel0/0/0]q
[AR4]ip rou
[AR4]ip route-s
[AR4]ip route-static 192.168.1.1 24 192.168.6.1 //此网络为基于rip的网络,所以该路由可不写
Info: The destination address and mask of the configured static route mismatched
, and the static route 192.168.1.0/24 was generated.
[AR4]ping -a 192.168.4.1 192.168.1.1
PING 192.168.1.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 192.168.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.1.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 192.168.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/26/30 ms
[AR4]
4.整个私有网络基于RIP全网可达
[AR1]rip 1
[AR1-rip-1]ve
[AR1-rip-1]verify-source
[AR1-rip-1]version 2
[AR1-rip-1]un
[AR1-rip-1]undo sum
[AR1-rip-1]undo summary
[AR1-rip-1]net
[AR1-rip-1]network 192.168.1.0
[AR1-rip-1]net
[AR1-rip-1]network 192.168.5.0
[AR1-rip-1]net
[AR1-rip-1]network 192.168.6.0
[AR1-rip-1]int s 4/0/0
[AR1-Serial4/0/0]acl 2000
[AR1-acl-basic-2000]ru
[AR1-acl-basic-2000]rule pe
[AR1-acl-basic-2000]rule permit sou
[AR1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[AR1-Tunnel0/0/0]undo rip sp
[AR1-Tunnel0/0/0]undo rip split-horizon
[AR1-Tunnel0/0/0]int s 4/0/0
[AR1-Serial4/0/0]na
[AR1-Serial4/0/0]nat ou
[AR1-Serial4/0/0]nat outbound 2000
[AR1-Serial4/0/0]
[AR2]rip 1
[AR2-rip-1]ve
[AR2-rip-1]verify-source
[AR2-rip-1]version 2
[AR2-rip-1]un sum
[AR2-rip-1]un summary
[AR2-rip-1]ne
[AR2-rip-1]network 192.168.2.0
[AR2-rip-1]net
[AR2-rip-1]network 192.168.5.0
[AR2-rip-1]q
[AR2]acl 2000
[AR2-acl-basic-2000]ru
[AR2-acl-basic-2000]rule pe
[AR2-acl-basic-2000]rule permit s
[AR2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[AR2-acl-basic-2000]int s 4/0/0
[AR2-Serial4/0/0]na
[AR2-Serial4/0/0]nat ou
[AR2-Serial4/0/0]nat outbound 2000
[AR2-Serial4/0/0]
[AR3]rip 1
[AR3-rip-1]ve
[AR3-rip-1]verify-source
[AR3-rip-1]version 2
[AR3-rip-1]un sum
[AR3-rip-1]un summary
[AR3-rip-1]ne
[AR3-rip-1]network 192.168.3.0
[AR3-rip-1]ne
[AR3-rip-1]network 192.168.5.0
[AR3-rip-1]q
[AR3]acl 2000
[AR3-acl-basic-2000]ru
[AR3-acl-basic-2000]rule pe
[AR3-acl-basic-2000]rule permit s
[AR3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[AR3-acl-basic-2000]int s 4/0/0
[AR3-Serial4/0/0]na
[AR3-Serial4/0/0]nat ou
[AR3-Serial4/0/0]nat outbound 2000
[AR3-Serial4/0/0]
[AR4]rip 1
[AR4-rip-1]ve
[AR4-rip-1]verify-source
[AR4-rip-1]version 2
[AR4-rip-1]un sum
[AR4-rip-1]un summary
[AR4-rip-1]ne
[AR4-rip-1]network 192.168.4.0
[AR4-rip-1]ne
[AR4-rip-1]network 192.168.6.0
[AR4-rip-1]q
[AR4]acl 2000
[AR4-acl-basic-2000]ru
[AR4-acl-basic-2000]rule p
[AR4-acl-basic-2000]rule permit s
[AR4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[AR4-acl-basic-2000]int g 0/0/1
[AR4-GigabitEthernet0/0/1]na
[AR4-GigabitEthernet0/0/1]nat ou
[AR4-GigabitEthernet0/0/1]nat outbound 2000
[AR4-GigabitEthernet0/0/1]
[AR1-Serial4/0/0]ping -a 192.168.1.1 192.168.4.1
PING 192.168.4.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.4.1: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.4.1: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 192.168.4.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/28/30 ms
[AR1-Serial4/0/0]ping -a 192.168.1.1 192.168.2.1
PING 192.168.2.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=255 time=20 ms
--- 192.168.2.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/24/30 ms
[AR1-Serial4/0/0]ping -a 192.168.1.1 192.168.3.1
PING 192.168.3.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.3.1: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 192.168.3.1: bytes=56 Sequence=2 ttl=255 time=40 ms
Reply from 192.168.3.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.3.1: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.3.1: bytes=56 Sequence=5 ttl=255 time=40 ms
--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/34/40 ms
5.所有PC设置私有IP为源IP,可以访问R5环回
之前编写rip时已经在边界路由器出接口上配置了nat,所以此要求没有额外配置项
[ISP]int l0
[ISP-LoopBack0]ip ad 1.1.1.1 8
[ISP-LoopBack0]dis ip in b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 3
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 45.0.0.2/8 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 1.1.1.1/8 up up(s)
NULL0 unassigned up up(s)
Serial3/0/0 15.0.0.2/8 up up
Serial3/0/1 25.0.0.2/8 up up
Serial4/0/0 35.0.0.2/8 up up
Serial4/0/1 unassigned down down
PC1:
Welcome to use pc 2Simulator!
PC>ping 1.1.1.1
Ping 1.1.1.1: 32 data bytes, Press Ctrl_C to break
From 1.1.1.1: bytes=32 seq=1 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=2 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=3 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=4 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=5 ttl=254 time=15 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/18/31 ms
PC>
PC2:
Welcome to use pc 2Simulator!
PC>ping 1.1.1.1
Ping 1.1.1.1: 32 data bytes, Press Ctrl_C to break
From 1.1.1.1: bytes=32 seq=1 ttl=254 time=15 ms
From 1.1.1.1: bytes=32 seq=2 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=3 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=4 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=5 ttl=254 time=15 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/18/31 ms
PC>
PC3:
Welcome to use PC Simulator!
PC>ping 1.1.1.1
Ping 1.1.1.1: 32 data bytes, Press Ctrl_C to break
From 1.1.1.1: bytes=32 seq=1 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=2 ttl=254 time=15 ms
From 1.1.1.1: bytes=32 seq=3 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=4 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=5 ttl=254 time=31 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 15/21/31 ms
PC>
PC4:
Welcome to use PC Simulator!
PC>ping 1.1.1.1
Ping 1.1.1.1: 32 data bytes, Press Ctrl_C to break
From 1.1.1.1: bytes=32 seq=1 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=2 ttl=254 time=16 ms
From 1.1.1.1: bytes=32 seq=3 ttl=254 time=31 ms
From 1.1.1.1: bytes=32 seq=4 ttl=254 time<1 ms
From 1.1.1.1: bytes=32 seq=5 ttl=254 time=16 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 0/18/31 ms
PC>