前部分综合实验

pc ip 配置

路由器ip配置

r1

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname r1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
Mar 30 2024 14:02:12-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]int s 4/0/0
[r1-Serial4/0/0]ip add 15.1.1.1 24
[r1-Serial4/0/0]q
[r1]dis ip int b    
[r1]dis ip int brief 
*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 3
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       15.1.1.1/24          up         up        
Serial4/0/1                       unassigned           down       down      
[r1]

r2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]    
[Huawei]sys    
[Huawei]sysname r2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.2.254 24
Mar 30 2024 14:03:44-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]int s 3/0/0
[r2-Serial3/0/0]ip add 25.1.1.2 24
[r2-Serial3/0/0]q
[r2]dis ip int b    
[r2]dis ip int brief 
*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 5
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.2.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       25.1.1.2/24          up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[r2]

r3

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname r3
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.3.254 24
Mar 30 2024 14:05:04-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]int s 4/0/0
[r3-Serial4/0/0]ip add 35.1.1.3 24
[r3-Serial4/0/0]
[r3-Serial4/0/0]q
[r3]dis ip int b    
[r3]dis ip int brief 
*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 3
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.3.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       35.1.1.3/24          up         up        
Serial4/0/1                       unassigned           down       down      
[r3]

r4

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname r4
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.4.254 24
Mar 30 2024 14:06:41-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]
[r4-GigabitEthernet0/0/1]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add 45.1.1.4 24
Mar 30 2024 14:07:05-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]q
[r4]dis ip int b    
[r4]dis ip int brief 
*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 3
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              45.1.1.4/24          up         up        
GigabitEthernet0/0/1              192.168.4.254/24     up         up        
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
[r4]

r5

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname r5
[r5]int s 4/0/0
[r5-Serial4/0/0]ip add 15.1.1.5 24
[r5-Serial4/0/0]
Mar 30 2024 14:08:19-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r5-Serial4/0/0]int s 4/0/1
[r5-Serial4/0/1]ip add 25.1.1.5 24
[r5-Serial4/0/1]
Mar 30 2024 14:08:49-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 IPCP on the interface Serial4/0/1 has entered the UP state. 
[r5-Serial4/0/1]int s 3/0/0
[r5-Serial3/0/0]ip add 35.1.1.5 24
[r5-Serial3/0/0]
Mar 30 2024 14:09:10-08:00 r5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[r5-Serial3/0/0]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add 45.1.1.5 24
Mar 30 2024 14:09:35-08:00 r5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]int l0
[r5-LoopBack0]ip add 5.5.5.5 24
[r5-LoopBack0]q
[r5]dis ip int b    
[r5]dis ip int brief 
*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.1.1.5/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         5.5.5.5/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       35.1.1.5/24          up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       15.1.1.5/24          up         up        
Serial4/0/1                       25.1.1.5/24          up         up        
[r5]

r1-----r4上的缺省路由

[r1]ip r    
[r1]ip rd-filter
[r1]ip relay
[r1]ip route
[r1]ip route-static 0.0.0.0 0 15.1.1.5

[r2]ip ro    
[r2]ip route
[r2]ip route-static 0.0.0.0 0 25.1.1.5

[r3]ip rou    
[r3]ip route
[r3]ip route-static 0.0.0.0 0 35.1.1.5

[r4]ip rou    
[r4]ip route
[r4]ip route-static 0.0.0.0 0 45.1.1.5

R1和R5间使用PPP的PAP认证,R5为主认证方

r5]aaa
[r5-aaa]lo    
[r5-aaa]local-user yuzhiwei p    
[r5-aaa]local-user yuzhiwei password c    
[r5-aaa]local-user yuzhiwei password cipher yzw12345
Info: Add a new user.
[r5-aaa]l    
[r5-aaa]local-user yuzhiwei s    
[r5-aaa]local-user yuzhiwei service-type ppp
[r5-aaa]q
[r5]int s 4/0/0
[r5-Serial4/0/0]ppp au    
[r5-Serial4/0/0]ppp authentication-mode ?
  chap  Enable CHAP authentication
  pap   Enable PAP authentication
[r5-Serial4/0/0]ppp authentication-mode pap
[r5-Serial4/0/0]

[r1-Serial4/0/0]ppp     
[r1-Serial4/0/0]ppp ?
  authentication-mode  Specify PPP authentication-mode
  chap                 Specify CHAP parameters 
  ipcp                 Specify IPCP parameters
  mp                   Multilink PPP
  pap                  Specify PAP parameters
  timer                Specify timer 
[r1-Serial4/0/0]ppp pap?
  pap  Specify PAP parameters
[r1-Serial4/0/0]ppp pap l    
[r1-Serial4/0/0]ppp pap local-user yuzhiwei p    
[r1-Serial4/0/0]ppp pap local-user yuzhiwei password c    
[r1-Serial4/0/0]ppp pap local-user yuzhiwei password cipher yzw12345
[r1-Serial4/0/0]
[r1-Serial4/0/0]
[r1-Serial4/0/0]shutdown
Mar 30 2024 14:17:59-08:00 r1 %%01PPP/4/PHYSICALDOWN(l)[0]:On the interface Seri
al4/0/0, PPP link was closed because the status of the physical layer was Down. 

[r1-Serial4/0/0]
[r1-Serial4/0/0]
Mar 30 2024 14:17:59-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[r1-Serial4/0/0]
Mar 30 2024 14:17:59-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the DOWN state. 
[r1-Serial4/0/0]
Mar 30 2024 14:17:59-08:00 r1 %%01IFPDT/4/IF_STATE(l)[3]:Interface Serial4/0/0 h
as turned into DOWN state.
[r1-Serial4/0/0]
Mar 30 2024 14:17:59-08:00 r1 %%01RM/4/IPV4_DEFT_RT_CHG(l)[4]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=15.1.1.5, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric=0

[r1-Serial4/0/0]undo shutdown
[r1-Serial4/0/0]
Mar 30 2024 14:18:07-08:00 r1 %%01IFPDT/4/IF_STATE(l)[5]:Interface Serial4/0/0 h
as turned into UP state.
[r1-Serial4/0/0]
Mar 30 2024 14:18:10-08:00 r1 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
[r1-Serial4/0/0]
Mar 30 2024 14:18:10-08:00 r1 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[r1-Serial4/0/0]

R2与R5之间使用ppp的CHAP认证,R5为主认证方

[r5-aaa]lo    
[r5-aaa]local-user zhiwei 
                          ^
Error:Incomplete command found at '^' position.
[r5-aaa]lo    
[r5-aaa]local-user zhiwei    
[r5-aaa]local-user zhiwei p    
[r5-aaa]local-user zhiwei password c    
[r5-aaa]local-user zhiwei password cipher zw12345
Info: Add a new user.
[r5-aaa]lo    
[r5-aaa]local-user zhiwei s    
[r5-aaa]local-user zhiwei service-type ?
  8021x     802.1x user
  bind      Bind authentication user
  ftp       FTP user
  http      Http user
  ppp       PPP user
  ssh       SSH user
  sslvpn    Sslvpn user
  telnet    Telnet  user
  terminal  Terminal user
  web       Web authentication user
  x25-pad   X25-pad user
[r5-aaa]local-user zhiwei service-type ppp
[r5-aaa]q
[r5]int s 3/0/1
[r5-Serial3/0/1]ppp ?
  authentication-mode  Specify PPP authentication-mode
  chap                 Specify CHAP parameters 
  ipcp                 Specify IPCP parameters
  mp                   Multilink PPP
  pap                  Specify PAP parameters
  timer                Specify timer 
[r5-Serial3/0/1]ppp chap?
  chap  Specify CHAP parameters 
[r5-Serial3/0/1]ppp chap ?
  password  Specify user password 
  user      Specify user name 
[r5-Serial3/0/1]ppp au    
[r5-Serial3/0/1]ppp authentication-mode chap
[r5-Serial3/0/1]
[r5-Serial3/0/1]q
[r5]

[r2]
[r2]int s 3/0/0
[r2-Serial3/0/0]ppp c    
[r2-Serial3/0/0]ppp chap u    
[r2-Serial3/0/0]ppp chap user weizhiyu
[r2-Serial3/0/0]ppp c    
[r2-Serial3/0/0]ppp chap p    
[r2-Serial3/0/0]ppp chap password c    
[r2-Serial3/0/0]ppp chap password cipher wzy12345
[r2-Serial3/0/0]shutdown
Mar 30 2024 15:24:46-08:00 r2 %%01PPP/4/PHYSICALDOWN(l)[0]: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 30 2024 15:24:46-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial3/0/0 has entered the DOWN state. 
[r2-Serial3/0/0]
Mar 30 2024 15:24:46-08:00 r2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the DOWN state. 
[r2-Serial3/0/0]
Mar 30 2024 15:24:46-08:00 r2 %%01IFPDT/4/IF_STATE(l)[3]:Interface Serial3/0/0 h
as turned into DOWN state.
[r2-Serial3/0/0]
Mar 30 2024 15:24:46-08:00 r2 %%01RM/4/IPV4_DEFT_RT_CHG(l)[4]:IPV4 default Route
 is changed. (ChangeType=Delete, InstanceId=0, Protocol=Static, ExitIf=Unknown, 
Nexthop=25.1.1.5, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric=0

[r2-Serial3/0/0]undo shutdown
[r2-Serial3/0/0]
Mar 30 2024 15:24:53-08:00 r2 %%01IFPDT/4/IF_STATE(l)[5]:Interface Serial3/0/0 h
as turned into UP state.
[r2-Serial3/0/0]
Mar 30 2024 15:24:56-08:00 r2 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol PPP
 on the interface Serial3/0/0 has entered the UP state. 
[r2-Serial3/0/0]
Mar 30 2024 15:24:56-08:00 r2 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol PPP
 IPCP on the interface Serial3/0/0 has entered the UP state. 
[r2-Serial3/0/0]

R3与R5之间使用HDLC封装;

[r3]int s 4/0/0
[r3-Serial4/0/0]lin    
[r3-Serial4/0/0]link-protocol h    
[r3-Serial4/0/0]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Mar 30 2024 14:27:24-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-Serial4/0/0]
[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01PPP/4/PHYSICALDOWN(l)[1]:On the interface Seri
al4/0/0, PPP link was closed because the status of the physical layer was Down. 

[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the DOWN state. 
[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01IFPDT/4/IF_STATE(l)[4]:Interface Serial4/0/0 h
as turned into DOWN state.
[r3-Serial4/0/0]
Mar 30 2024 14:27:24-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.5, Neighbour=0.0.0.0, Preference=1006632960, Label=NULL, Metric=0

[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01IFPDT/4/IF_STATE(l)[6]:Interface Serial4/0/0 h
as turned into UP state.
[r3-Serial4/0/0]
Mar 30 2024 14:27:24-08:00 r3 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol IP 
on the interface Serial4/0/0 has entered the UP state. 
[r3-Serial4/0/0]

[r5]int s 3/0/0
[r5-Serial3/0/0]lin    
[r5-Serial3/0/0]link-protocol h    
[r5-Serial3/0/0]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Mar 30 2024 14:30:31-08:00 r5 %%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. 
[r5-Serial3/0/0]
[r5-Serial3/0/0]
Mar 30 2024 14:30:31-08:00 r5 %%01IFPDT/4/IF_STATE(l)[1]:Interface Serial3/0/0 h
as turned into DOWN state.
[r5-Serial3/0/0]
Mar 30 2024 14:30:32-08:00 r5 %%01IFPDT/4/IF_STATE(l)[2]:Interface Serial3/0/0 h
as turned into UP state.
[r5-Serial3/0/0]
Mar 30 2024 14:30:32-08:00 r5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface Serial3/0/0 has entered the UP state. 
[r5-Serial3/0/0]

R1、R2、R3构建一个MGRE环境,R1为中心站点,R1、R4间为点到点的GRE

[r1]int t    
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]t    
[r1-Tunnel0/0/0]    
[r1-Tunnel0/0/0]te    
[r1-Tunnel0/0/0]tu    
[r1-Tunnel0/0/0]tunnel-protocol gre?
  gre  Generic Routing Encapsulation
[r1-Tunnel0/0/0]tunnel-protocol gre ?
  p2mp  Point to multi-point GRE mode
  <cr>  Please press ENTER to execute command 
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]?
[r1-Tunnel0/0/0]s    
[r1-Tunnel0/0/0]so    
[r1-Tunnel0/0/0]sour    
[r1-Tunnel0/0/0]source s     
[r1-Tunnel0/0/0]source Serial 4/0/0
Mar 30 2024 14:38:02-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]n    
[r1-Tunnel0/0/0]nat
[r1-Tunnel0/0/0]nhrp n    
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]q
[r1]dis ip int b    
[r1]dis ip int brief 
*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 4
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       15.1.1.1/24          up         up        
Serial4/0/1                       unassigned           down       down      
Tunnel0/0/0                       10.1.2.1/24          up         up        
[r1]

r2]int t    
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add 10.1.2.2 24
[r2-Tunnel0/0/0]tu    
[r2-Tunnel0/0/0]tunnel-protocol gre p    
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r2-Tunnel0/0/0]
[r2-Tunnel0/0/0]q
[r2]dis ip int b    
[r2]dis ip int brief 
*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 5
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 6

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.2.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       25.1.1.2/24          up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
Tunnel0/0/0                       10.1.2.2/24          up         down      
[r2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]int    
[r2]int t    
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]s    
[r2-Tunnel0/0/0]set
[r2-Tunnel0/0/0]shutdown
[r2-Tunnel0/0/0]source s    
[r2-Tunnel0/0/0]source Serial 3/0/0
Mar 30 2024 14:42:08-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r2-Tunnel0/0/0]
[r2-Tunnel0/0/0]nr    
[r2-Tunnel0/0/0]nh    
[r2-Tunnel0/0/0]nhrp n    
[r2-Tunnel0/0/0]nhrp network-id 100

[r2]int     
[r2]interface t    
[r2]interface Tunnel 0/0/0
[r2-Tunnel0/0/0]nh    
[r2-Tunnel0/0/0]nhrp en    
[r2-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 re    
[r2-Tunnel0/0/0]nhrp entry 10.1.2.1 15.1.1.1 register 
[r2-Tunnel0/0/0]q
[r2]dis ip int b    
[r2]dis ip int brief 
[r2]dis ip int brief 
*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 5
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.2.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       25.1.1.2/24          up         up        
Serial3/0/1                       unassigned           down       down      
Serial4/0/0                       unassigned           down       down      
Serial4/0/1                       unassigned           down       down      
Tunnel0/0/0                       10.1.2.2/24          up         up        
[r2]

[r3]int t    
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 10.1.2.3 24
[r3-Tunnel0/0/0]tu    
[r3-Tunnel0/0/0]tunnel-protocol gre     
[r3-Tunnel0/0/0]tunnel-protocol gre p    
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]q
[r3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
<r3>sys
Enter system view, return user view with Ctrl+Z.
[r3]dis ip int 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              192.168.3.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       35.1.1.3/24          up         up        
Serial4/0/1                       unassigned           down       down      
Tunnel0/0/0                       10.1.2.3/24          up         down      
[r3]int t    
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]so    
[r3-Tunnel0/0/0]source s    
[r3-Tunnel0/0/0]source Serial 4/0/0
Mar 30 2024 14:46:53-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]nh    
[r3-Tunnel0/0/0]nhrp n    
[r3-Tunnel0/0/0]nhrp network-id 100

[r3]int tu    
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]nh    
[r3-Tunnel0/0/0]nhrp en    
[r3-Tunnel0/0/0]nhrp entry 10.2.1.1 15.1.1.1 re    
[r3-Tunnel0/0/0]nhrp entry 10.2.1.1 15.1.1.1 register 
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]q
[r3]dis ip int 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 4
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.3.254/24     up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       35.1.1.3/24          up         up        
Serial4/0/1                       unassigned           down       down      
Tunnel0/0/0                       10.1.2.3/24          up         up        
[r3]

[r1]int t    
[r1]int Tunnel 0/0/1
[r1-Tunnel0/0/1]ip add 10.1.1.1 24
[r1-Tunnel0/0/1]tu    
[r1-Tunnel0/0/1]tunnel-protocol gre
[r1-Tunnel0/0/1]so    
[r1-Tunnel0/0/1]source 15.1.1.1
[r1-Tunnel0/0/1]dest    
[r1-Tunnel0/0/1]destination 45.1.1.4
Mar 30 2024 15:35:40-08:00 r1 %%01IFNET/4/LINK_STATE(l)[9]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 

[r4]int t    
[r4]int Tunnel 0/0/1
[r4-Tunnel0/0/1]ip add 10.1.1.2 24
[r4-Tunnel0/0/1]tu    
[r4-Tunnel0/0/1]tunnel-protocol gre
[r4-Tunnel0/0/1]sc    
[r4-Tunnel0/0/1]so    
[r4-Tunnel0/0/1]source 45.1.1.4
[r4-Tunnel0/0/1]dest    
[r4-Tunnel0/0/1]destination 15.1.1.1
Mar 30 2024 15:36:38-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 

整个私有网络基本RIP全网可达

[r1]rip 1
[r1-rip-1]v 2
[r1-rip-1]undo summary
[r1-rip-1]network 10.0.0.0

[r2]rip 1
[r2-rip-1]v 2
[r2-rip-1]undo    
[r2-rip-1]undo summary 
[r2-rip-1]network 192.168.2.0
[r2-rip-1]network 10.0.0.0


[r3]rip 1
[r3-rip-1]v 2
[r3-rip-1]undo summary 
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 10.0.0.0

[r4]rip
[r4-rip-1]v 2
[r4-rip-1]undo summary 
[r4-rip-1]network 192.168.4.0
[r4-rip-1]network 10.0.0.0
 

配置NAT,使得访问内网环回

[r1-acl-basic-2000]rule 5 ?
  deny         Specify matched packet deny
  description  Specify rule description
  permit       Specify matched packet permit
[r1-acl-basic-2000]rule 5 per    
[r1-acl-basic-2000]rule 5 permit s    
[r1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255
[r1-acl-basic-2000]q
[r1]int s    
[r1]int Serial 3/0/0
[r1-Serial3/0/0]n    
[r1-Serial3/0/0]nat out    
[r1-Serial3/0/0]nat outbound 2000
[r1-Serial3/0/0]

[r2]acl 2000
[r2-acl-basic-2000]ru    
[r2-acl-basic-2000]rule 5 p    
[r2-acl-basic-2000]rule 5 permit s    
[r2-acl-basic-2000]rule 5 permit source 192.168.2.0 0.0.0.255
[r2-acl-basic-2000]q
[r2]int s    
[r2]int Serial 3/0/0
[r2-Serial3/0/0]n    
[r2-Serial3/0/0]nat ou    
[r2-Serial3/0/0]nat outbound 2000

[r3]acl 2000
[r3-acl-basic-2000]
[r3-acl-basic-2000]rule 5 p    
[r3-acl-basic-2000]rule 5 permit s    
[r3-acl-basic-2000]rule 5 permit source 192.168.3.0 0.0.0.255
[r3-acl-basic-2000]q
[r3]int s    
[r3]int Serial 3/0/0
[r3-Serial3/0/0]nat    
[r3-Serial3/0/0]nat ou    
[r3-Serial3/0/0]nat outbound 2000


[r4]acl 2000
[r4-acl-basic-2000]ru    
[r4-acl-basic-2000]rule 5 pr    
[r4-acl-basic-2000]rule 5 p    
[r4-acl-basic-2000]rule 5 permit s    
[r4-acl-basic-2000]rule 5 permit source 192.168.4.0 0.0.0.255
[r4-acl-basic-2000]q
[r4]int g 0/0/1
[r4-GigabitEthernet0/0/1]nat    
[r4-GigabitEthernet0/0/1]nat ou    
[r4-GigabitEthernet0/0/1]nat outbound 2000
[r4-GigabitEthernet0/0/1]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值