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

news2025/2/2 22:53:25

题目如上

第一步:配置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]

 验证是否通

 实验完成

 

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

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Mysql连接报错:1130-host ... is not allowed to connect to this MySql server如何处理

我用navicat连接我的阿里云服务器的mysql服务器的时候,出现了1130的报错。&#xff08;mysql Server version: 5.7.42-0ubuntu0.18.04.1 (Ubuntu)&#xff09; 我来记录一下这个原因&#xff0c;以及修改过程&#xff01; 1.首先进入mysql -u root -p&#xff0c; mysql客户端…

从 Azure 部署生成本地 .NET 密钥

作者&#xff1a;Frank Boucher 排版&#xff1a;Alan Wang 通常&#xff0c;示例项目以一些“魔术字符串”开始&#xff0c;这些变量包含与部署或外部资源相关的 URL 和关键信息&#xff0c;我们必须更改这些信息才能使用示例。例如在 .NET 中&#xff0c;它可能如下所示&…

SAMRTFORMS 转换PDF 发送邮件

最终成果&#xff1a; *&---------------------------------------------------------------------**& Report ZLC_FIND_EXIT*&---------------------------------------------------------------------**&根据T-CODE / 程序名查询出口、BADI增强*&-------…

建立一个简单的网页音乐盒模型效果#css#h5

“音乐盒”可以看做一个大盒子&#xff0c;用<div>标签进行定义。大盒子的上面为文本内容&#xff0c;可以在<div>标签中嵌套<h2>和<p>标签来实现&#xff1b;大盒子下面为图像&#xff0c;通过在<div>标签中嵌套<img/>标签来实现。 样式…

基于SDXL——ComfyUI下使用Layerdiffusion一键生成透明底图像

ComfyUI下使用Layerdiffusion一键生成透明底图像 一. 安装workspace工作流插件二. 安装、部署、运行Layerdiffusion1. 下载和安装layerdiffusion节点2. 下载LayerDiffusion 处理模型3. 导入工作流4. 开始运行LayerDiffusion4.1 直接生成透明底图像4.2 生成背景&生成前景4.3…

Ubuntu上安装Python3.11-源码编译

1、下载依赖 sudo apt install -y wget build-essential libreadline-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev 2、上传文件 &#xff0c;解压并进入 tar -xf Python-3.11.0.tar.xz 3、编译 cd Pyt…

WordPress分页函数function

1、可以通过下面的代码在编辑器上添加一个分页符按钮。 2、将下面的代码添加到当前主题functions.php即可。 3、代码如下&#xff1a; function mce_page_break($mce_buttons) { $pos array_search(wp_more, $mce_buttons, true); if ($pos ! false) { $buttons …

【C语言】结构体详解 (二) 内存函数、结构体传参

目录 1、 结构体的内存对齐 1.1、对齐规则 1.2、练习1、练习2&#xff08;演示对齐规则1、2、3、4&#xff09; 2、为什么存在内存对齐 2.1、平台原因&#xff08;移植原因&#xff09; 2.2、性能原因 2.3、那么如何即满足对齐&#xff0c;又要节省空间呢&#xff1f; …

PTA L2-038 病毒溯源

病毒容易发生变异。某种病毒可以通过突变产生若干变异的毒株&#xff0c;而这些变异的病毒又可能被诱发突变产生第二代变异&#xff0c;如此继续不断变化。 现给定一些病毒之间的变异关系&#xff0c;要求你找出其中最长的一条变异链。 在此假设给出的变异都是由突变引起的&a…

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

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

AI计算平台设计方案:901-基于3U VPX的图像数据AI计算平台

一、产品概述 设备基于3U VPX的导冷结构&#xff0c;集成FPGA接口预处理卡&#xff0c;GPU板卡、飞腾ARM处理卡&#xff0c;实现光纤、差分电口或者Camera link的图像接入&#xff0c;FPGA信号预处理&#xff0c;GPU AI计算&#xff0c;飞腾ARM的采集管理存储。 二、系统…

Flutter 使用 AndroidStudio 给(Android 安卓)进行签名方法

一、使用 AndroidStudio 创建签名 使用 AndroidStudio 打开 Flutter项目中的 android 文件夹首次打开 AndroidStudio 会加载一会。菜单栏 &#xff1a; Build -> Generate Signed Bundle APK... 选中 APK -> Next点击Create new....下面按照需求填写即可- 文件夹选择 项…

openPLC_Editor C语言编程 在mp157 arm板上调用io等使用记录

1.编程界面比较简单&#xff0c;具备PLC开发编程的四种编程方式。梯形图语言LD &#xff0c;指令表语言IL&#xff0c;结构化文本语言ST&#xff0c;功能模块图语言FBD。 2.官方使用手册。学习资料实在是太少&#xff0c;目前都是自己比较费劲的研究。 3.2 Creating Your First…

vmWare虚拟机下载安装详细教程,手把手一步一步教学

一.下载 先去官网下载vm 官网地址:https://www.vmware.com/ 官网下载速度太慢了 国内应用商店或者别的下载地址:vmware下载_vmware下载免费中文版客户端[虚拟机]-下载之家 然后再去下载一个镜像 地址是:Index of /centos/7/isos/x86_64/ 我个人下载的是这个 ,看各位的需求…

Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasonin

摘要 大型语言模型(llm)在复杂任务中表现出令人印象深刻的推理能力。然而&#xff0c;他们在推理过程中缺乏最新的知识和经验幻觉&#xff0c;这可能导致不正确的推理过程&#xff0c;降低他们的表现和可信度。知识图谱(Knowledge graphs, KGs)以结构化的形式捕获了大量的事实…

linux centos7.9 weblogic14c java1.8.401 安装部署流程

一、获取安装包&#xff1a; Java1.8.401&#xff1a;Java Downloads | Oracle weblogic 14c&#xff1a;https://download.oracle.com/otn/nt/middleware/14c/14110/fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip 选generic版本 二、将安装包传到Linux服务器上 方法不限&#xf…

Antd Vue3 使用 Anchor 锚点组件记录

项目场景 客户要求做一个表单页面&#xff0c;表单数据分为三步&#xff0c;每一步骤是一个单独的 Vue 组件&#xff0c;表单上方需要使用锚点组件实现锚点定位到每一步的功能。 代码总览 <template><div class"guided-form-content-wrapper"><!-- …

阿里云实时计算Flink的产品化思考与实践【下】

摘要&#xff1a;本文整理自阿里云高级产品专家黄鹏程和阿里云技术专家陈婧敏在 FFA 2023 平台建设专场中的分享。内容主要为以下五部分&#xff1a; 阿里云实时计算 Flink 产品化思考 产品化实践 SQL 产品化思考及实践 展望 接上篇&#xff1a;阿里云实时计算Flink的产品…

主流好用的 Markdown 编辑器介绍

在当今程序员的日常工作中&#xff0c;Markdown 已经成为了一种常用的文本标记语言&#xff0c;它简洁、易读、易写&#xff0c;被广泛应用于写作、文档编写、博客撰写等场景。为了更高效地编辑和管理 Markdown 格式的文档&#xff0c;选择一款功能强大、易用的 Markdown 编辑器…

Flask Python:请求上下文和应用上下文

请求上下文和应用上下文详解 一、背景二、什么是上下文2.1、请求上下文2.2、应用上下文2.3、两种上下文的底层逻辑 三、写在最后 一、背景 在如何实现异步发送邮件的时候&#xff0c;遇到过这样一个报错 RuntimeError: Working outside of request context.This typically me…