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 PPPon 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 PPPIPCP 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 Routeis 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 PPPon 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 PPPIPCP 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 PPPon 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 PPPIPCP 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 Routeis 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 PPPon 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 PPPIPCP 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 PPPon 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 PPPIPCP 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 Routeis 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/1link-protocol hdlcip 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/0link-protocol hdlcip 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/0ip address 10.1.1.2 255.255.255.0 tunnel-protocol gresource 45.1.1.4destination 15.1.1.1
#
return
[R4-Tunnel0/0/0]
[R1-Tunnel0/0/0]dis th
[V200R003C00]
#
interface Tunnel0/0/0ip address 10.1.1.1 255.255.255.0 tunnel-protocol gresource 15.1.1.1destination 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]

 验证是否通

 实验完成

 

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

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

什么是framebuffer,怎么应用(二)————如何打印BMP图片、字幕函数、字符串

如何切换到终端模式 在昨天写的文章中&#xff0c;没有写到如何切换到终端模式&#xff0c;在编译完函数之后&#xff0c;我们需要从桌面切换到终端模式&#xff1a; ALTCTRLF3切换到终端模式后&#xff0c;登录账号名与密码&#xff0c;其余操作均有桌面终端一样。 如何切换…

HTML input 实现回车切换到下一个输入框功能

前言 遇到需求&#xff0c;在客户填写单子时&#xff0c;有多个输入框&#xff0c;为了省事&#xff0c;不需要频繁移动光标填写。 实现效果 实现方式一 HTML <input type"text" name"serialNumber1" onkeydown"cursor(this);"/><in…

spring多线程实现+合理设置最大线程数和核心线程数

1.最简单的方法&#xff1a; 需要在 Spring Boot 主类上添加 EnableAsync 注解启用异步功能&#xff1b;需要在异步方法上添加 Async 注解。 示例代码如下&#xff1a; SpringBootApplication EnableAsync public class Application {public static void main(String[] args…

什么是DevOps?如何使用DevOps?

无论您是在维持公司基础设施的正常运行&#xff0c;还是在为客户的IT问题管理提供支持&#xff0c;抑或是在构建、测试或修复软件&#xff0c;还是在保护同事免受安全威胁&#xff0c;您都可能接触过 DevOps。 毕竟&#xff0c;这个术语已经出现了 15 年&#xff0c;其采用率也…

C#_泛型_委托

文章目录 泛型泛型的使用泛型的约束委托委托的实例化多播委托委托的调用内置委托类型委托练习泛型委托Lambda表达式(进阶)上期习题答案本期习题 泛型 泛型&#xff08;Generic&#xff09; 是一种规范&#xff0c;它允许我们使用占位符来定义类和方法&#xff0c;编译器会在编…

基于单片机病房呼叫系统数码管显示房号设计

**单片机设计介绍&#xff0c;基于单片机病房呼叫系统数码管显示房号设计 文章目录 一 概要二、功能设计设计思路 三、 软件设计原理图 五、 程序六、 文章目录 一 概要 基于单片机病房呼叫系统数码管显示房号设计概要主要涵盖了利用单片机技术实现病房呼叫系统&#xff0c;并…

工厂数字化看板是什么?部署工厂数字化看板有什么作用?

随着工业4.0时代的来临&#xff0c;数字化转型已成为制造业发展的必然趋势。在这个背景下&#xff0c;工厂数字化看板作为一种高效的信息展示与管理工具&#xff0c;正逐渐受到越来越多企业的青睐。那么&#xff0c;什么是工厂数字化看板&#xff1f;部署工厂数字化看板又有哪些…

2024软件设计师备考讲义——(3)

程序设计语言 一、程序语言基础 1.基本概念 低级语言&#xff1a;机器语言、汇编语言高级语言&#xff1a; Fortran 科学计算&#xff0c;执行效率高Pascal 为教学开发&#xff0c;表达能力强Prolog 逻辑性程序设计语言C语言 指针操作能力强&#xff0c;可以开发系统级软件&a…

vue实现文字一个字一个字的显示(开箱即用)

图示&#xff1a; 核心代码 Vue.prototype.$showHtml function (str, haveCallback null) {let timeFlag let abcStr for (let i 0; i < str.length; i) {(function (i) {timeFlag setTimeout(function () {abcStr str[i]haveCallback(abcStr)if ((i 1) str.length…

JUC:Monitor 与 Java对象头的内容与锁关系

文章目录 Monitorjava对象头Monitor&#xff08;锁、管程&#xff09; Monitor java对象头 普通对象 Mark Word 主要用来存储对象自身的运行时数据、klass word就是指向该对象的类型。 数组对象 mark word 不同对象状态下结构和含义不同。 Monitor&#xff08;锁、管…

JavaEE 初阶篇-深入了解多线程等待与多线程状态

&#x1f525;博客主页&#xff1a; 【小扳_-CSDN博客】 ❤感谢大家点赞&#x1f44d;收藏⭐评论✍ 文章目录 1.0 线程等待 1.1 线程等待 - join() 方法 1.1.1 main 线程中等待多个线程 1.1.2 main 线程等待 t2 线程且t2 线程等待 t1 线程 1.1.3 其他线程阻塞等待 main 线程 1.…

期货开户要找到适合自己的系统

物有一个生物圈&#xff0c;大鱼吃小鱼&#xff0c;小鱼吃虾。在期货市场这条生物圈里面&#xff0c;大部分人就是期货市场的虾子&#xff0c;是被吃的&#xff0c;所以必须成长起来&#xff0c;往更高一层走&#xff0c;到可以吃虾子的时候&#xff0c;就是挣钱的时候。学习不…