eNSP综合实验(PPP认证、VPN配置、RIP协议、NAT)

题目如上

第一步:配置IP地址

ip分配如下图所示

开始配置IP(PC省略)

R1:

[R1]undo	
[R1]undo in	
[R1]undo info-centere	
[R1]undo info-center e	
[R1]undo info-center enable 
Info: Information center is disabled.
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip ad	
[R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24
[R1-GigabitEthernet0/0/0]q
[R1]int s4/0/0
[R1-Serial4/0/0]ip ad	
[R1-Serial4/0/0]ip address 15.1.1.1 24
[R1-Serial4/0/0]q

R2:

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip ad	
[R2-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R2-GigabitEthernet0/0/0]q
[R2]undo in	
[R2]undo info-center e	
[R2]undo info-center enable 
Info: Information center is disabled.
[R2]int s4/0/0
[R2-Serial4/0/0]ip ad	
[R2-Serial4/0/0]ip address 25.1.1.2 24
[R2-Serial4/0/0]q

R3:

[R3]undo in	
[R3]undo info-center e	
[R3]undo info-center enable 
Info: Information center is disabled.
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip ad	
[R3-GigabitEthernet0/0/0]ip address 192.168.3.254 24
[R3-GigabitEthernet0/0/0]q
[R3]int s 4/0/0
[R3-Serial4/0/0]ip d	
[R3-Serial4/0/0]ip ad	
[R3-Serial4/0/0]ip address 35.1.1.3 24
[R3-Serial4/0/0]q

R4:

[R4]undo in	
[R4]undo info-center e	
[R4]undo info-center enable 
Info: Information center is disabled.
[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip ad	
[R4-GigabitEthernet0/0/0]ip address 45.1.1.4 24
[R4-GigabitEthernet0/0/0]q
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]ip ad	
[R4-GigabitEthernet0/0/1]ip address 192.168.4.254 24
[R4-GigabitEthernet0/0/1]q
[R4]

ISP:

[ISP]int s4/0/1
[ISP-Serial4/0/1]ip ad	
[ISP-Serial4/0/1]ip address 15.1.1.254 24
[ISP-Serial4/0/1]
Mar 29 2024 16:45:23-08:00 ISP %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PP
P IPCP on the interface Serial4/0/1 has entered the UP state. 
[ISP-Serial4/0/1]q
[ISP]und	
[ISP]undo in	
[ISP]undo info-center e	
[ISP]undo info-center enable 
Info: Information center is disabled.
[ISP]int s 2/0/1
[ISP-Serial2/0/1]ip ad	
[ISP-Serial2/0/1]ip address 25.1.1.254 24
[ISP-Serial2/0/1]q
[ISP]int s 3/0/1
[ISP-Serial3/0/1]ip ad	
[ISP-Serial3/0/1]ip address 35.1.1.254 24
[ISP-Serial3/0/1]q
[ISP]int g0/0/0
[ISP-GigabitEthernet0/0/0]ip ad	
[ISP-GigabitEthernet0/0/0]ip address 45.1.1.254 24
[ISP-GigabitEthernet0/0/0]q
[ISP]

第二步: 使全部公网通(使用缺省)

R1:

[R1]ip rou	
[R1]ip route
[R1]ip route-static 0.0.0.0 0 15.1.1.254
[R1]

R2:

[R2]ip rou	
[R2]ip route
[R2]ip route-static 0.0.0.0 0 25.1.1.254 
[R2]

R3:

[R3]ip rou	
[R3]ip route
[R3]ip route-static 0.0.0.0 0 35.1.1.254
[R3]

R4:

[R4]ip rou	
[R4]ip route
[R4]ip route-static 0.0.0.0 0 45.1.1.254
[R4]

第三步:做R1与R5之间的PAP认证,R5为主认证方

R5:

[ISP]aaa
[ISP-aaa]lo	
[ISP-aaa]local-user wangdaye pas	
[ISP-aaa]local-user wangdaye password c	
[ISP-aaa]local-user wangdaye password cipher wdy12345
Info: Add a new user.
[ISP-aaa]lo	
[ISP-aaa]local-user wangdaye s	
[ISP-aaa]local-user wangdaye service-type ppp
[ISP-aaa]q
[ISP]int s 4/0/1
[ISP-Serial4/0/1]ppp a	
[ISP-Serial4/0/1]ppp authentication-mode pap
[ISP-Serial4/0/1]q
[ISP]

R1:

[R1]int s4/0/0
[R1-Serial4/0/0]ppp pap local-user wangdaye password cipher wdy12345

验证是否成功

[R1-Serial3/0/0]shutdown 
Mar 29 2024 18:10:20-08:00 R1 %%01PPP/4/PHYSICALDOWN(l)[2]:On the interface Seri
al3/0/0, PPP link was closed because the status of the physical layer was Down. 

[R1-Serial3/0/0]
[R1-Serial3/0/0]
Mar 29 2024 18:10:20-08:00 R1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[R1-Serial3/0/0]
Mar 29 2024 18:10:20-08:00 R1 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the DOWN state. 
[R1-Serial3/0/0]
Mar 29 2024 18:10:20-08:00 R1 %%01IFPDT/4/IF_STATE(l)[5]:Interface Serial3/0/0 h
as turned into DOWN state.
[R1-Serial3/0/0]
Mar 29 2024 18:10:20-08:00 R1 %%01RM/4/IPV4_DEFT_RT_CHG(l)[6]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=15.1.1.254, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric
=0) 
[R1-Serial3/0/0]undo sh	
[R1-Serial3/0/0]undo shutdown 
[R1-Serial3/0/0]
Mar 29 2024 18:10:27-08:00 R1 %%01IFPDT/4/IF_STATE(l)[7]:Interface Serial3/0/0 h
as turned into UP state.
[R1-Serial3/0/0]
Mar 29 2024 18:10:28-08:00 R1 %%01IFNET/4/LINK_STATE(l)[8]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
[R1-Serial3/0/0]
Mar 29 2024 18:10:28-08:00 R1 %%01IFNET/4/LINK_STATE(l)[9]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[R1-Serial3/0/0]

 

第四步:做R2与R5之间的chap认证,R5为主认证方 

R5:

[ISP(R5)]aaa
[ISP(R5)-aaa]lo	
[ISP(R5)-aaa]local-user zhangdaye pa	
[ISP(R5)-aaa]local-user zhangdaye password c	
[ISP(R5)-aaa]local-user zhangdaye password cipher zdy12345
Info: Add a new user.
[ISP(R5)-aaa]lo	
[ISP(R5)-aaa]local-user zhangdaye s	
[ISP(R5)-aaa]local-user zhangdaye service-type ppp
[ISP(R5)-aaa]q
[ISP(R5)]int s 2/0/1
[ISP(R5)-Serial2/0/1]ppp a	
[ISP(R5)-Serial2/0/1]ppp authentication-mode ch	
[ISP(R5)-Serial2/0/1]ppp authentication-mode chap 
[ISP(R5)-Serial2/0/1]q

R2:

[R2]int s 3/0/0
[R2-Serial3/0/0]ppp cha	
[R2-Serial3/0/0]ppp chap l	
[R2-Serial3/0/0]ppp chap u	
[R2-Serial3/0/0]ppp chap user zhangdaye
[R2-Serial3/0/0]ppp chap pas	
[R2-Serial3/0/0]ppp chap password c	
[R2-Serial3/0/0]ppp chap password cipher zdy12345

验证是否成功:

[R2-Serial3/0/0]shutdown 
Mar 29 2024 18:14:19-08:00 R2 %%01PPP/4/PHYSICALDOWN(l)[2]:On the interface Seri
al3/0/0, PPP link was closed because the status of the physical layer was Down. 

[R2-Serial3/0/0]
[R2-Serial3/0/0]
Mar 29 2024 18:14:19-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[R2-Serial3/0/0]
Mar 29 2024 18:14:19-08:00 R2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the DOWN state. 
[R2-Serial3/0/0]
Mar 29 2024 18:14:19-08:00 R2 %%01IFPDT/4/IF_STATE(l)[5]:Interface Serial3/0/0 h
as turned into DOWN state.
[R2-Serial3/0/0]
Mar 29 2024 18:14:19-08:00 R2 %%01RM/4/IPV4_DEFT_RT_CHG(l)[6]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=25.1.1.254, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric
=0) 
[R2-Serial3/0/0]undo sh	
[R2-Serial3/0/0]undo shutdown 
[R2-Serial3/0/0]
Mar 29 2024 18:14:24-08:00 R2 %%01IFPDT/4/IF_STATE(l)[7]:Interface Serial3/0/0 h
as turned into UP state.
[R2-Serial3/0/0]
Mar 29 2024 18:14:24-08:00 R2 %%01IFNET/4/LINK_STATE(l)[8]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
[R2-Serial3/0/0]
Mar 29 2024 18:14:24-08:00 R2 %%01IFNET/4/LINK_STATE(l)[9]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[R2-Serial3/0/0]

第五步:做R3与R5之间的HDLC封装

 R3:

[R3]int s 3/0/0
[R3-Serial3/0/0]lin	
[R3-Serial3/0/0]link-protocol hd	
[R3-Serial3/0/0]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Mar 29 2024 18:15:54-08:00 R3 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed 
the configuration that will change the encapsulation protocol of the link and th
en selected Y. 
[R3-Serial3/0/0]
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01PPP/4/PHYSICALDOWN(l)[1]:On the interface Seri
al3/0/0, PPP link was closed because the status of the physical layer was Down. 
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the DOWN state. 
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01IFPDT/4/IF_STATE(l)[4]:Interface Serial3/0/0 h
as turned into DOWN state.
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01RM/4/IPV4_DEFT_RT_CHG(l)[5]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=35.1.1.254, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric
=0) 
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01IFPDT/4/IF_STATE(l)[6]:Interface Serial3/0/0 h
as turned into UP state.
[R3-Serial3/0/0]
Mar 29 2024 18:15:54-08:00 R3 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol IP 
on the interface Serial3/0/0 has entered the UP state. 
[R3-Serial3/0/0]

R5:

[ISP(R5)]int s 3/0/1
[ISP(R5)-Serial3/0/1]lin	
[ISP(R5)-Serial3/0/1]link-protocol hd	
[ISP(R5)-Serial3/0/1]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Mar 29 2024 18:16:14-08:00 ISP(R5) %%01IFNET/4/CHANGE_ENCAP(l)[16]:The user perf
ormed the configuration that will change the encapsulation protocol of the link 
and then selected Y. 
[ISP(R5)-Serial3/0/1]
[ISP(R5)-Serial3/0/1]
Mar 29 2024 18:16:14-08:00 ISP(R5) %%01IFPDT/4/IF_STATE(l)[17]:Interface Serial3
/0/1 has turned into DOWN state.
[ISP(R5)-Serial3/0/1]
Mar 29 2024 18:16:15-08:00 ISP(R5) %%01IFPDT/4/IF_STATE(l)[18]:Interface Serial3
/0/1 has turned into UP state.
[ISP(R5)-Serial3/0/1]
Mar 29 2024 18:16:15-08:00 ISP(R5) %%01IFNET/4/LINK_STATE(l)[19]:The line protoc
ol IP on the interface Serial3/0/1 has entered the UP state. 
[ISP(R5)-Serial3/0/1]

 验证是否成功:

[ISP(R5)-Serial3/0/1]dis th
[V200R003C00]
#
interface Serial3/0/1
 link-protocol hdlc
 ip address 35.1.1.254 255.255.255.0 
#
return
[ISP(R5)-Serial3/0/1]
[R3-Serial3/0/0]dis th
[V200R003C00]
#
interface Serial3/0/0
 link-protocol hdlc
 ip address 35.1.1.3 255.255.255.0 
#
return
[R3-Serial3/0/0]

第六步:R1到R4的GRE

R1: 

[R1]int t	
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]ip ad	
[R1-Tunnel0/0/0]ip address 10.1.1.1 24
[R1-Tunnel0/0/0]t	
[R1-Tunnel0/0/0]tcp
[R1-Tunnel0/0/0]tun	
[R1-Tunnel0/0/0]tunnel-protocol g	
[R1-Tunnel0/0/0]tunnel-protocol gre 
[R1-Tunnel0/0/0]sou	
[R1-Tunnel0/0/0]source 15.1.1.1
[R1-Tunnel0/0/0]des	
[R1-Tunnel0/0/0]description
[R1-Tunnel0/0/0]destination 45.1.1.4
Mar 29 2024 18:25:18-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 

R4:

[R4]int t	
[R4]int Tunnel 0/0/0
[R4-Tunnel0/0/0]ip ad	
[R4-Tunnel0/0/0]ip address 10.1.1.2 24
[R4-Tunnel0/0/0]tun	
[R4-Tunnel0/0/0]tunnel-protocol gr	
[R4-Tunnel0/0/0]tunnel-protocol gre 
[R4-Tunnel0/0/0]	
[R4-Tunnel0/0/0]s	
[R4-Tunnel0/0/0]set
[R4-Tunnel0/0/0]shutdown
[R4-Tunnel0/0/0]source 45.1.1.4
[R4-Tunnel0/0/0]des	
[R4-Tunnel0/0/0]description
[R4-Tunnel0/0/0]destination 15.1.1.1
Mar 29 2024 18:26:40-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R4-Tunnel0/0/0]

检查是否成功:

[R4-Tunnel0/0/0]dis th
[V200R003C00]
#
interface Tunnel0/0/0
 ip address 10.1.1.2 255.255.255.0 
 tunnel-protocol gre
 source 45.1.1.4
 destination 15.1.1.1
#
return
[R4-Tunnel0/0/0]
[R1-Tunnel0/0/0]dis th
[V200R003C00]
#
interface Tunnel0/0/0
 ip address 10.1.1.1 255.255.255.0 
 tunnel-protocol gre
 source 15.1.1.1
 destination 45.1.1.4
#
return
[R1-Tunnel0/0/0]

 第七步:R1、R2、R3的MGRE环境

先配置MGRE:

R1:

[R1]int Tunnel 0/0/1
[R1-Tunnel0/0/1]ip ad	
[R1-Tunnel0/0/1]ip address 10.1.2.1 24
[R1-Tunnel0/0/1]tun	
[R1-Tunnel0/0/1]tunnel-protocol g	
[R1-Tunnel0/0/1]tunnel-protocol gre p	
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp 
[R1-Tunnel0/0/1]s	
[R1-Tunnel0/0/1]seou	
[R1-Tunnel0/0/1]sou	
[R1-Tunnel0/0/1]source 15.1.1.1
Mar 29 2024 18:30:34-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[R1-Tunnel0/0/1]

 R2:

[R2]int t	
[R2]int Tunnel 0/0/1
[R2-Tunnel0/0/1]ip ad	
[R2-Tunnel0/0/1]ip address 10.1.2.2 24
[R2-Tunnel0/0/1]tun	
[R2-Tunnel0/0/1]tunnel-protocol gre	
[R2-Tunnel0/0/1]tunnel-protocol gre p	
[R2-Tunnel0/0/1]tunnel-protocol gre p2mp 
[R2-Tunnel0/0/1]sour	
[R2-Tunnel0/0/1]source 24.1.1.2
[R2-Tunnel0/0/1]sour	
[R2-Tunnel0/0/1]source 25.1.1.2
Mar 29 2024 18:34:31-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[R2-Tunnel0/0/1]
[R2-Tunnel0/0/1]

R3:

[R3]int t	
[R3]int Tunnel 0/0/1
[R3-Tunnel0/0/1]ip 	
[R3-Tunnel0/0/1]ip ad	
[R3-Tunnel0/0/1]ip address 10.1.2.3 24
[R3-Tunnel0/0/1]tun	
[R3-Tunnel0/0/1]tunnel-protocol g	
[R3-Tunnel0/0/1]tunnel-protocol gre p	
[R3-Tunnel0/0/1]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/1]sour	
[R3-Tunnel0/0/1]source 35.1.1.3
Mar 29 2024 18:34:16-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 

 在中心站点配置NHRP

 R1:

[R1]int t	
[R1]int Tunnel 0/0/1
[R1-Tunnel0/0/1]nhr	
[R1-Tunnel0/0/1]nhrp ne	
[R1-Tunnel0/0/1]nhrp network-id 100
[R1-Tunnel0/0/1]

 分支站点:(将分支站点的源地址改为接口)

R2:

[R2-Tunnel0/0/1]sour	
[R2-Tunnel0/0/1]source s3/0/0
[R2-Tunnel0/0/1]nh	
[R2-Tunnel0/0/1]nhrp n	
[R2-Tunnel0/0/1]nhrp network-id 100
[R2-Tunnel0/0/1]n	
[R2-Tunnel0/0/1]nah	
[R2-Tunnel0/0/1]nh	
[R2-Tunnel0/0/1]nhrp e	
[R2-Tunnel0/0/1]nhrp entry 10.1.2.1 15.1.1.1 re	
[R2-Tunnel0/0/1]nhrp entry 10.1.2.1 15.1.1.1 register 
[R2-Tunnel0/0/1]

 R3:

[R3-Tunnel0/0/1]sour	
[R3-Tunnel0/0/1]source s 3/0/0
[R3-Tunnel0/0/1]nh	
[R3-Tunnel0/0/1]nhrp ne	
[R3-Tunnel0/0/1]nhrp network-id 100
[R3-Tunnel0/0/1]ne	
[R3-Tunnel0/0/1]ng	
[R3-Tunnel0/0/1]nh	
[R3-Tunnel0/0/1]nhrp en	
[R3-Tunnel0/0/1]nhrp entry 10.1.2.1 15.1.1.1 r	
[R3-Tunnel0/0/1]nhrp entry 10.1.2.1 15.1.1.1 register 
[R3-Tunnel0/0/1]

 配置RIP协议(关闭水平分割,开启伪广播)

R1:

[R1]rip 1
[R1-rip-1]v	
[R1-rip-1]v 2
[R1-rip-1]net	
[R1-rip-1]undo s	
[R1-rip-1]undo silent-interface
[R1-rip-1]undo summary
[R1-rip-1]net	
[R1-rip-1]network 192.168.1.0
[R1-rip-1]net	
[R1-rip-1]network 10.0.0.0
[R1-rip-1]q
[R1]int t	
[R1]int Tunnel 0/0/1
[R1-Tunnel0/0/1]undo rip s	
[R1-Tunnel0/0/1]undo rip split-horizon
[R1-Tunnel0/0/1]nhr	
[R1-Tunnel0/0/1]nhrp entry multicast d	
[R1-Tunnel0/0/1]nhrp entry multicast dynamic 
[R1-Tunnel0/0/1]

R2:

[R2]int t 0/0/1
[R2-Tunnel0/0/1]undo rip	
[R2-Tunnel0/0/1]undo rip s	
[R2-Tunnel0/0/1]undo rip summary-address
[R2-Tunnel0/0/1]undo rip split-horizon
[R2-Tunnel0/0/1]

 R3:

[R3]int t 0/0/1
[R3-Tunnel0/0/1]un do	
[R3-Tunnel0/0/1]undo rip s	
[R3-Tunnel0/0/1]undo rip split-horizon
[R3-Tunnel0/0/1]undo rip summary-address
[R3-Tunnel0/0/1]undo rip split-horizon
[R3-Tunnel0/0/1]q

第八步:设置NAT使PC可以访问R5环回(使用EZIP)

R1:

[R1]acl 2000
[R1-acl-basic-2000]reu	
[R1-acl-basic-2000]ru	
[R1-acl-basic-2000]rule 
[R1-acl-basic-2000]rule 
[R1-acl-basic-2000]rule p	
[R1-acl-basic-2000]rule permit  s	
[R1-acl-basic-2000]rule permit  source  192.168.1.0 0.0.0.255
[R1-acl-basic-2000]q
[R1]int s 3/0/0
[R1-Serial3/0/0]nat out	
[R1-Serial3/0/0]nat outbound 2000
[R1-Serial3/0/0]q
[R1]

R2:

[R2]acl	
[R2]acl 2000
[R2-acl-basic-2000]ru	
[R2-acl-basic-2000]rule p	
[R2-acl-basic-2000]rule permit s	
[R2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[R2-acl-basic-2000]q
[R2]int s 3/0/0
[R2-Serial3/0/0]nat out	
[R2-Serial3/0/0]nat outbound 2000
[R2-Serial3/0/0]q
[R2]

 R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]acl 2000
[R3-acl-basic-2000]ru	
[R3-acl-basic-2000]rule p	
[R3-acl-basic-2000]rule permit s	
[R3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[R3-acl-basic-2000]q
[R3]int s 3/0/0
[R3-Serial3/0/0]nat out	
[R3-Serial3/0/0]nat outbound 2000
[R3-Serial3/0/0]q
[R3]

R4:

<R4>sy
Enter system view, return user view with Ctrl+Z.
[R4]acl	
[R4]acl 2000
[R4-acl-basic-2000]ru	
[R4-acl-basic-2000]rule p	
[R4-acl-basic-2000]rule permit s	
[R4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[R4-acl-basic-2000]q
[R4]nat out	
[R4]int s 3/0/0
[R4-Serial3/0/0]nat ou	
[R4-Serial3/0/0]nat outbound 200
                             ^
Error: Wrong parameter found at '^' position.
[R4-Serial3/0/0]q
[R4]int s 3/0/0
[R4-Serial3/0/0]nat outbound 2000
[R4-Serial3/0/0]q
[R4]

 验证是否通

 实验完成

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/500613.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

2024年MathorCup数学建模思路A题B题C题D题思路分享

文章目录 1 赛题思路2 比赛日期和时间3 组织机构4 建模常见问题类型4.1 分类问题4.2 优化问题4.3 预测问题4.4 评价问题 5 建模资料 1 赛题思路 (赛题出来以后第一时间在CSDN分享) https://blog.csdn.net/dc_sinor?typeblog 2 比赛日期和时间 报名截止时间&#xff1a;2024…

蓝桥杯-岛屿个数

solution 数1的块数题&#xff0c;加了内岛不计入的小限制&#xff0c;以及输入数据间没有空格&#xff0c;不是矩阵形式的整数输入。 判断是否是子岛屿&#xff1a;如果该岛屿有边缘部分或者可以通过外海走到边缘部分说明不是子岛屿 #include<iostream> #include<…

蓝桥备赛——堆队列

AC code import os import sys import heapq a [] b [] n,k map(int,input().split())for _ in range(n):x,y map(int,input().split())a.append(x)b.append(y) q []# 第一种情况&#xff1a;不打第n个怪兽# 将前n-1个第一次所需能量加入堆 for i in range(n-1):heapq.h…

科普——芯片的市场价格

以前以为进口的芯片会很贵&#xff0c;其实不然&#xff0c;均在很低&#xff0c;粗略找了几个&#xff0c;批发价格在50元上下 厂商型号&#xff1a;STM32F103RCT7 品牌名称&#xff1a;ST(意法半导体) 元件类别&#xff1a;MCU 封装规格&#xff1a;64-LQFP&#xff08;10x1…

View事件分发

MotionEvent 1.简介 MotionEvent 是Android系统中一个非常重要的类&#xff0c;它代表了屏幕上发生的触摸事件。当用户在屏幕上触摸、滑动或者长按时&#xff0c;都会生成一个MotionEvent对象&#xff0c;这个对象包含了触摸动作的各种信息。 2.事件类型 ACTION_DOWN&#x…

沃尔玛百货有限公司 企业网页设计制作 企业html网页成品 跨国公司网页设计开发 web前端开发,html+css网页设计素材,静态html学生网页成品源码

沃尔玛百货有限公司 WalMart 7页面 企业主题 带jquery图片轮播特效 滚动文字 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns"http://www.w3.or…

接口自动化框架搭建(八):pytest+allure+jenkins接入

1&#xff0c;安装allure插件 2&#xff0c;创建jenkins项目 怎么确定路径&#xff0c;可以查看工作空间&#xff0c;jenkins默认根目录就是工作空间 配置执行用例的命令&#xff0c;可以现在pycharm上试一下&#xff0c;然后在jenkins中配置&#xff1a; 把启动java服务的代…

数据结构:基于数组实现栈

1 前言 栈是一种先进后出的线性表。向一个栈插入新元素可以叫做进栈、入栈、压栈&#xff0c;新元素必须放到栈顶元素上面&#xff0c;使之成为新的栈顶&#xff1b;从一个栈删除元素可以叫做出栈、退栈&#xff0c;它将栈顶元素删除&#xff0c;使和原来栈顶元素相邻的元素称…

Vue指令之v-for

跟其他语言中的for一样&#xff0c;是用来渲染多个类似实例的。 语法为v-for"(item, index) in 可迭代对象"&#xff0c;一般就用于遍历数组。这里的语法跟Python中的for循环enumerate也有点相似之处&#xff0c;但要注意item在前&#xff0c;index在后&#xff0c;…

【MATLAB源码-第21期】基于matlab的BCH码编码译码仿真,调制使用QPSK,对比编码与未编码的误码率曲线。

操作环境&#xff1a; MATLAB 2022a 1、算法描述 QPSK调制解调&#xff1a;QPSK&#xff08;Quadrature Phase Shift Keying&#xff09;调制解调**是一种数字调制技术&#xff0c;通常用于数字通信系统。 调制&#xff1a; 1. 首先&#xff0c;将数字信号分成两路&#xff…

【浅尝C++】使用模板实现泛型编程第二弹=>非类型模板参数/模板特化/模板分离编译详解

&#x1f3e0;专栏介绍&#xff1a;浅尝C专栏是用于记录C语法基础、STL及内存剖析等。 &#x1f3af;每日格言&#xff1a;每日努力一点点&#xff0c;技术变化看得见。 文章目录 非类型模板参数模板的特化概念函数模板特化类模板特化全特化偏特化 模板分离编译分离编译概念模板…

uniapp开发微信小程序设置分包,简单易学

文章目录 前言一、在 manifest.json文件中的源码试图中配置二、配置pages.json 前言 我们使用uniapp开发微信小程序的时候&#xff0c;当我们的包体积过大的时候&#xff0c;无法真机模拟。 因为小程序单个包只支持2MB&#xff08;现已支持预览4MB&#xff09;&#xff0c;所以…

PyTorch深度学习

一、深度学习的概念 如上所示&#xff0c;人工智能包含了机器学习和深度学习&#xff0c;其中深度学习是机器学习的一种特殊的学习方法&#xff0c;人工智能的核心是深度学习 1、深度学习 深度学习需要用到大量的神经网络构建和运算模块&#xff0c;故出现了很多的深度学习框…

通讯录改进———动态版本

在上一篇博客中讲完了动态内存分配&#xff0c;这时候我们就可以改进之前写的通讯录了&#xff0c;可以将其升级为动态内存的版本&#xff0c;既不用担心联系人满了&#xff0c;也不用担心内存浪费太大。 要将其改为动态版本主要是两件事&#xff0c;首先初始化的时候我们要动…

PS从入门到精通视频各类教程整理全集,包含素材、作业等复发(2)

PS从入门到精通视频各类教程整理全集&#xff0c;包含素材、作业等 最新PS以及插件合集&#xff0c;可在我以往文章中找到 由于阿里云盘有分享次受限制和文件大小限制&#xff0c;今天先分享到这里&#xff0c;后续持续更新 初级教程素材 等文件 https://www.alipan.com/s/fC…

jsp用户登录界面

主界面 <% page contentType"text/html;charsetUTF-8" language"java" %> <html> <head><meta charset"UTF-8"><title>登录界面</title> </head> <body bgcolor"#faebd7"> <form…

RabbitMQ 延时消息实现

1. 实现方式 1. 设置队列过期时间&#xff1a;延迟队列消息过期 死信队列&#xff0c;所有消息过期时间一致 2. 设置消息的过期时间&#xff1a;此种方式下有缺陷&#xff0c;MQ只会判断队列第一条消息是否过期&#xff0c;会导致消息的阻塞需要额外安装 rabbitmq_delayed_me…

下载及安装PHP,composer,phpstudy,thinkPHP6.0框架

文章目录 前言 thinkPHP是一款开源的PHP框架&#xff0c;它是基于MVC&#xff08;Model-View-Controller&#xff09;设计模式构建的。thinkPHP提供了丰富的功能和组件&#xff0c;使得开发人员可以快速、高效地构建和维护Web应用程序。 以下是thinkPHP框架的一些特点和功能&…

C语言最大公约数(辗转相除法)

输入两个整数&#xff0c;求他们的最大公约数&#xff1a; 如果我们不用辗转相除法的话&#xff0c;两个整数的最大公约数&#xff0c;我们就可以定义一个整数为两个整数中最小的那个数&#xff0c;然后两个整数一起除我们新定义的整数&#xff0c;如果都除尽了&#xff0c;这…

Vidmore Video Fix for Mac 视频修复工具

Vidmore Video Fix for Mac是一款功能强大且易于使用的视频修复工具&#xff0c;专为Mac用户设计。它凭借先进的视频修复技术&#xff0c;能够帮助用户解决各种视频问题&#xff0c;如视频文件损坏、无法播放、格式不支持等。 软件下载&#xff1a;Vidmore Video Fix for Mac v…