4_HCIP第四天作业

1、R6为ISP,所连接的所有物理接口为公有网段,任意指定ip即可
2、R1-2-3构建一个星型结构的MGRE结构,其中R1为中心点,假设R1的公有ip为固定地址
3、R1-4-5构建另一个全连网状的MGRE网络,其中R1/5均为中心区域;
4、使用oSPF实现整个私有网络的互通,同时所有Pc可以正常访问R6的环回

 网段划分及各路由器的静态路由到达部分网段

私网IP地址配置:
星型结构的MGRE结构:
		R1的g0/0/2(.1)和PC1(.2)192.168.1.0 24
		R2的g0/0/2(.1)和PC2(.2)192.168.2.0 24
		R3的g0/0/2(.1)和PC3(.2)192.168.3.0 24
	
	Tunnel0/0/0隧道:
		R1(中心)的Tunnel0/0/0:	10.1.1.1 24
		R2的Tunnel0/0/0:	10.1.1.2 24
		R3的Tunnel0/0/0:	10.1.1.3 24
全连网状的MGRE网络:
		R1的g0/0/2(.1)和PC1(.2)192.168.1.0 24
		R4的g0/0/2(.1)和PC4(.2)192.168.4.0 24
		R5的g0/0/2(.1)和PC5(.2)192.168.5.0 24
	Tunnel0/0/1隧道:
		R1(中心)的Tunnel0/0/1:	10.1.2.1 24
		R4的Tunnel0/0/0:	10.1.2.2 24
		R5(中心)的Tunnel0/0/0:	10.1.2.3 24

公网IP地址配置:
R1(.1)---R6(.2)		16.1.1.0 24
R2(.1)---R6(.2)		26.1.1.0 24
R3(.1)---R6(.2)		36.1.1.0 24
R4(.1)---R6(.2)		46.1.1.0 24
R5(.1)---R6(.2)		56.1.1.0 24
R1(.1)的G0/0/1---R6(.2)的G4/0/0	61.1.1.0 24
R6环回l0表示访问公网	6.6.6.6 24

R1配置命令及OSPF邻居表和接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int lo0
[R1-LoopBack0]ip add 1.1.1.1 24
[R1-LoopBack0]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 16.1.1.1 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 61.1.1.1 24
[R1-GigabitEthernet0/0/1]int g0/0/2
[R1-GigabitEthernet0/0/2]ip add 192.168.1.1 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R1-GigabitEthernet0/0/2]q
[R1]ip route-static 0.0.0.0 0 16.1.1.2
[R1]ip route-static 0.0.0.0 0 61.1.1.2
[R1]acl 2000
[R1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R1-acl-basic-2000]int g0/0/0
[R1-GigabitEthernet0/0/0]nat outbound 2000
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.1.1 24	
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R1-Tunnel0/0/0]nhrp entry multicast dynamic 
[R1-Tunnel0/0/0]nhrp network-id 100
[R1-Tunnel0/0/0]source 16.1.1.1
[R1-Tunnel0/0/0]int Tunnel 0/0/1
[R1-Tunnel0/0/1]ip add 10.1.2.1 24
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp 
[R1-Tunnel0/0/1]source 61.1.1.1
[R1-Tunnel0/0/1]nhrp entry multicast dynamic 
[R1-Tunnel0/0/1]nhrp network-id 100
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.1.2.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 	
[R1-ospf-1-area-0.0.0.0]int T0/0/0
[R1-Tunnel0/0/0]ospf network-type broadcast 	
[R1-Tunnel0/0/0]int T0/0/1
[R1-Tunnel0/0/1]ospf network-type broadcast
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R1-Tunnel0/0/1]q
[R1]q
<R1>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 	
<R1>display ospf peer brief 

	 OSPF Process 1 with Router ID 1.1.1.1
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      2.2.2.2          Full        
 0.0.0.0          Tunnel0/0/0                      3.3.3.3          Full        
 0.0.0.0          Tunnel0/0/1                      4.4.4.4          Full        
 0.0.0.0          Tunnel0/0/1                      5.5.5.5          Full        
 ----------------------------------------------------------------------------
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R1>display ospf brief

	 OSPF Process 1 with Router ID 1.1.1.1
		 OSPF Protocol Information

 RouterID: 1.1.1.1          Border Router: 
 Multi-VPN-Instance is not enabled
 Global DS-TE Mode: Non-Standard IETF Mode
 Graceful-restart capability: disabled
 Helper support capability  : not configured
 Applications Supported: MPLS Traffic-Engineering 
 Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Route Preference: 10 
 ASE Route Preference: 150 
 SPF Computation Count: 36    
 RFC 1583 Compatible
 Retransmission limitation is disabled
 Area Count: 1   Nssa Area Count: 0 
 ExChange/Loading Neighbors: 0
 Process total up interface count: 3
 Process valid up interface count: 3
 
 Area: 0.0.0.0          (MPLS TE not enabled)
 Authtype: None   Area flag: Normal
 SPF scheduled Count: 36    
 ExChange/Loading Neighbors: 0
 Router ID conflict state: Normal
 Area interface up count: 3

 Interface: 192.168.1.1 (GigabitEthernet0/0/2)
 Cost: 1       State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 192.168.1.1
 Backup Designated Router: 0.0.0.0
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 

 Interface: 10.1.1.1 (Tunnel0/0/0)
 Cost: 1562    State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 10.1.1.1
 Backup Designated Router: 0.0.0.0
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 

 Interface: 10.1.2.1 (Tunnel0/0/1)
 Cost: 1562    State: BDR       Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 10.1.2.3
 Backup Designated Router: 10.1.2.1
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R1>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        up    up          0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
Tunnel0/0/0                 up    up          --     --          0          0
Tunnel0/0/1                 up    up          --     --          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R1>display current-configuration 
[V200R003C00]
#
 sysname R1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 16.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/1
 ip address 61.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/2
 ip address 192.168.1.1 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 1.1.1.1 255.255.255.0 
#
interface Tunnel0/0/0
 ip address 10.1.1.1 255.255.255.0 
 tunnel-protocol gre p2mp
 source 16.1.1.1
 ospf network-type broadcast
 nhrp entry multicast dynamic
 nhrp network-id 100
#
interface Tunnel0/0/1
 ip address 10.1.2.1 255.255.255.0 
 tunnel-protocol gre p2mp
 source 61.1.1.1
 ospf network-type broadcast
 nhrp entry multicast dynamic
 nhrp network-id 100
#
ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
  network 10.1.1.1 0.0.0.0 
  network 10.1.2.1 0.0.0.0 
  network 192.168.1.1 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 16.1.1.2
ip route-static 0.0.0.0 0.0.0.0 61.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R1>

R2配置命令及OSPF邻居表和接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]int lo0
[R2-LoopBack0]ip add 2.2.2.2 24
[R2-LoopBack0]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 192.168.2.1 24
[R2-GigabitEthernet0/0/2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 26.1.1.1 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R2-GigabitEthernet0/0/0]q
[R2]ip route-static 0.0.0.0 0 26.1.1.2
[R2]acl 2000
[R2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[R2-acl-basic-2000]int g0/0/0
[R2-GigabitEthernet0/0/0]nat outbound 2000
[R2-GigabitEthernet0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 	
[R2]int Tunnel 0/0/0
[R2-Tunnel0/0/0]ip address 10.1.1.2 24	
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp 	
[R2-Tunnel0/0/0]source GigabitEthernet 0/0/0
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 16.1.1.1 register 
[R2-Tunnel0/0/0]nhrp network-id 100
[R2-Tunnel0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 192.168.2.1 0.0.0.0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R2-ospf-1-area-0.0.0.0]int T0/0/0
[R2-Tunnel0/0/0]ospf network-type broadcast 
[R2-Tunnel0/0/0]ospf dr-priority 0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R2-Tunnel0/0/0]q
[R2]q
<R2>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R2>display ospf peer brief 

	 OSPF Process 1 with Router ID 2.2.2.2
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      1.1.1.1          Full        
 ----------------------------------------------------------------------------
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R2>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        down  down        0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
Tunnel0/0/0                 up    up          --     --          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R2>display current-configuration 
[V200R003C00]
#
 sysname R2
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.2.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 26.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
 ip address 192.168.2.1 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 2.2.2.2 255.255.255.0 
#
interface Tunnel0/0/0
 ip address 10.1.1.2 255.255.255.0 
 tunnel-protocol gre p2mp
 source GigabitEthernet0/0/0
 ospf network-type broadcast
 ospf dr-priority 0
 nhrp network-id 100
 nhrp entry 10.1.1.1 16.1.1.1 register
#
ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 10.1.1.2 0.0.0.0 
  network 192.168.2.1 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 26.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R2> 

R3配置命令及OSPF邻居表和接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R3
[R3]int lo0
[R3-LoopBack0]ip add 3.3.3.3 24
[R3-LoopBack0]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 192.168.3.1 24
[R3-GigabitEthernet0/0/2]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 36.1.1.1 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R3-GigabitEthernet0/0/0]q
[R3]ip route-static 0.0.0.0 0 36.1.1.2
[R3]acl 2000
[R3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[R3-acl-basic-2000]int g0/0/0
[R3-GigabitEthernet0/0/0]nat outbound 2000
[R3-GigabitEthernet0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 10.1.1.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]source GigabitEthernet 0/0/0
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 16.1.1.1 register 
[R3-Tunnel0/0/0]nhrp network-id 100
====================================================================================================================================
====================================================================================================================================  
====================================================================================================================================
[R3-Tunnel0/0/0]q 
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0	
[R3-ospf-1-area-0.0.0.0]network 10.1.1.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.1 0.0.0.0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R3-ospf-1-area-0.0.0.0]int T0/0/0
[R3-Tunnel0/0/0]ospf network-type broadcast 
[R3-Tunnel0/0/0]ospf dr-priority 0
[R3-Tunnel0/0/0]q
[R3]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R3>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R3>display ospf peer brief 

	 OSPF Process 1 with Router ID 3.3.3.3
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      1.1.1.1          Full        
 ----------------------------------------------------------------------------
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R3>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        down  down        0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
Tunnel0/0/0                 up    up          --     --          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R3>display current-configuration 
[V200R003C00]
#
 sysname R3
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.3.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 36.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
 ip address 192.168.3.1 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 3.3.3.3 255.255.255.0 
#
interface Tunnel0/0/0
 ip address 10.1.1.3 255.255.255.0 
 tunnel-protocol gre p2mp
 source GigabitEthernet0/0/0
 ospf network-type broadcast
 ospf dr-priority 0
 nhrp network-id 100
 nhrp entry 10.1.1.1 16.1.1.1 register
#
ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 10.1.1.3 0.0.0.0 
  network 192.168.3.1 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 36.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R3>  

R4配置命令及OSPF邻居表和接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R4
[R4]int lo0
[R4-LoopBack0]ip add 4.4.4.4 24
[R4-LoopBack0]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 192.168.4.1 24
[R4-GigabitEthernet0/0/2]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 46.1.1.1 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R4-GigabitEthernet0/0/0]q	
[R4]ip route-static 0.0.0.0 0 46.1.1.2
[R4]acl 2000	
[R4-acl-basic-2000]rule permit source 192.168.4.0 0.0.0.255
[R4-acl-basic-2000]int g0/0/0
[R4-GigabitEthernet0/0/0]nat outbound 2000
[R4-GigabitEthernet0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R4]int Tunnel 0/0/0
[R4-Tunnel0/0/0]ip add 10.1.2.2 24	
[R4-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R4-Tunnel0/0/0]source 46.1.1.1
[R4-Tunnel0/0/0]nhrp entry 10.1.2.3 56.1.1.1 register
[R4-Tunnel0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 10.1.2.2 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 192.168.4.1 0.0.0.0
[R4-ospf-1-area-0.0.0.0]q
[R4-ospf-1]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R4]int T0/0/0
[R4-Tunnel0/0/0]ospf network-type broadcast 
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== ) 
[R4-Tunnel0/0/0]q
[R4]q
<R4>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R4>display ospf brief

	 OSPF Process 1 with Router ID 4.4.4.4
		 OSPF Protocol Information

 RouterID: 4.4.4.4          Border Router: 
 Multi-VPN-Instance is not enabled
 Global DS-TE Mode: Non-Standard IETF Mode
 Graceful-restart capability: disabled
 Helper support capability  : not configured
 Applications Supported: MPLS Traffic-Engineering 
 Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Route Preference: 10 
 ASE Route Preference: 150 
 SPF Computation Count: 10    
 RFC 1583 Compatible
 Retransmission limitation is disabled
 Area Count: 1   Nssa Area Count: 0 
 ExChange/Loading Neighbors: 0
 Process total up interface count: 2
 Process valid up interface count: 2
 
 Area: 0.0.0.0          (MPLS TE not enabled)
 Authtype: None   Area flag: Normal
 SPF scheduled Count: 10    
 ExChange/Loading Neighbors: 0
 Router ID conflict state: Normal
 Area interface up count: 2

 Interface: 192.168.4.1 (GigabitEthernet0/0/2)
 Cost: 1       State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 192.168.4.1
 Backup Designated Router: 0.0.0.0
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 

 Interface: 10.1.2.2 (Tunnel0/0/0)
 Cost: 1562    State: DROther    Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 10.1.2.3
 Backup Designated Router: 10.1.2.1
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 	
<R4>display ospf peer brief 

	 OSPF Process 1 with Router ID 4.4.4.4
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          Tunnel0/0/0                      1.1.1.1          Full        
 0.0.0.0          Tunnel0/0/0                      5.5.5.5          Full        
 ----------------------------------------------------------------------------
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R4>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        down  down        0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
Tunnel0/0/0                 up    up          --     --          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 	
<R4>display current-configuration 
[V200R003C00]
#
 sysname R4
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.4.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 46.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
 ip address 192.168.4.1 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 4.4.4.4 255.255.255.0 
#
interface Tunnel0/0/0
 ip address 10.1.2.2 255.255.255.0 
 tunnel-protocol gre p2mp
 source 46.1.1.1
 ospf network-type broadcast
 nhrp entry 10.1.2.1 61.1.1.1 register
 nhrp entry 10.1.2.3 56.1.1.1 register
#
ospf 1 router-id 4.4.4.4 
 area 0.0.0.0 
  network 10.1.2.2 0.0.0.0 
  network 192.168.4.1 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 46.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R4> 

R5配置命令及OSPF邻居表和接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R5
[R5]in lo0
[R5-LoopBack0]ip add 5.5.5.5 24
[R5-LoopBack0]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 192.168.5.1 24
[R5-GigabitEthernet0/0/2]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 56.1.1.1 24
[R5-GigabitEthernet0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R5]ip route-static 0.0.0.0 0 56.1.1.2
[R5]acl 2000 
[R5-acl-basic-2000]rule permit source 192.168.5.0 0.0.0.255
[R5-acl-basic-2000]int g0/0/0
[R5-GigabitEthernet0/0/0]nat outbound 2000
[R5-GigabitEthernet0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ip add 10.1.2.3 24
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R5-Tunnel0/0/0]source 56.1.1.1 
[R5-Tunnel0/0/0]nhrp entry 10.1.2.1 61.1.1.1 register 
[R5-Tunnel0/0/0]nhrp entry multicast dynamic  
[R5-Tunnel0/0/0]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 192.168.5.1 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 10.1.2.3 0.0.0.0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R5-ospf-1-area-0.0.0.0]int T0/0/0
[R5-Tunnel0/0/0]ospf network-type broadcast 
[R5-Tunnel0/0/0]q
[R5]q
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R5>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
====================================================================================================================================  
<R5>display ospf brief

   OSPF Process 1 with Router ID 5.5.5.5
     OSPF Protocol Information

 RouterID: 5.5.5.5          Border Router: 
 Multi-VPN-Instance is not enabled
 Global DS-TE Mode: Non-Standard IETF Mode
 Graceful-restart capability: disabled
 Helper support capability  : not configured
 Applications Supported: MPLS Traffic-Engineering 
 Spf-schedule-interval: max 10000ms, start 500ms, hold 1000ms
 Default ASE parameters: Metric: 1 Tag: 1 Type: 2
 Route Preference: 10 
 ASE Route Preference: 150 
 SPF Computation Count: 34    
 RFC 1583 Compatible
 Retransmission limitation is disabled
 Area Count: 1   Nssa Area Count: 0 
 ExChange/Loading Neighbors: 0
 Process total up interface count: 2
 Process valid up interface count: 2
 
 Area: 0.0.0.0          (MPLS TE not enabled)
 Authtype: None   Area flag: Normal
 SPF scheduled Count: 34    
 ExChange/Loading Neighbors: 0
 Router ID conflict state: Normal
 Area interface up count: 2

 Interface: 192.168.5.1 (GigabitEthernet0/0/2)
 Cost: 1       State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 192.168.5.1
 Backup Designated Router: 0.0.0.0
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 

 Interface: 10.1.2.3 (Tunnel0/0/0)
 Cost: 1562    State: DR        Type: Broadcast    MTU: 1500  
 Priority: 1
 Designated Router: 10.1.2.3
 Backup Designated Router: 10.1.2.1
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R5>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        down  down        0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
Tunnel0/0/0                 up    up          --     --          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R5>display current-configuration 
[V200R003C00]
#
 sysname R5
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.5.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 56.1.1.1 255.255.255.0 
 nat outbound 2000
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
 ip address 192.168.5.1 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 5.5.5.5 255.255.255.0 
#
interface Tunnel0/0/0
 ip address 10.1.2.3 255.255.255.0 
 tunnel-protocol gre p2mp
 source 56.1.1.1
 ospf network-type broadcast
 nhrp entry multicast dynamic
 nhrp entry 10.1.2.1 61.1.1.1 register
#
ospf 1 router-id 5.5.5.5 
 area 0.0.0.0 
  network 10.1.2.3 0.0.0.0 
  network 192.168.5.1 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 56.1.1.2
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R5>

R6配置命令及接口摘要:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R6
[R6]int lo0
[R6-LoopBack0]ip add 6.6.6.6 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R6-LoopBack0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 16.1.1.2 24
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip add 26.1.1.2 24
[R6-GigabitEthernet0/0/1]int g0/0/2
[R6-GigabitEthernet0/0/2]ip add 36.1.1.2 24
[R6-GigabitEthernet0/0/2]int g/0/02
[R6-GigabitEthernet2/0/0]int g2/0/0
[R6-GigabitEthernet2/0/0]ip add 56.1.1.2 24
[R6-GigabitEthernet2/0/0]int g3/0/0
[R6-GigabitEthernet3/0/0]ip add 46.1.1.2 24
[R6-GigabitEthernet3/0/0]int g4/0/0
[R6-GigabitEthernet4/0/0]ip add 61.1.1.2 24
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
[R6-GigabitEthernet4/0/0]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 8
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 8
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              16.1.1.2/24          up         up        
GigabitEthernet0/0/1              26.1.1.2/24          up         up        
GigabitEthernet0/0/2              36.1.1.2/24          up         up        
GigabitEthernet2/0/0              56.1.1.2/24          up         up        
GigabitEthernet3/0/0              46.1.1.2/24          up         up        
GigabitEthernet4/0/0              61.1.1.2/24          up         up        
LoopBack0                         6.6.6.6/24           up         up(s)     
NULL0                             unassigned           up         up(s)
====================================================================================================================================
====================================================================================================================================  
====================================================================================================================================     
[R6-GigabitEthernet4/0/0]q
[R6]q  
<R6>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R6>display interface brief 
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
(d): Dampening Suppressed
InUti/OutUti: input utility/output utility
Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
GigabitEthernet0/0/0        up    up          0%     0%          0          0
GigabitEthernet0/0/1        up    up          0%     0%          0          0
GigabitEthernet0/0/2        up    up          0%     0%          0          0
GigabitEthernet2/0/0        up    up          0%     0%          0          0
GigabitEthernet3/0/0        up    up          0%     0%          0          0
GigabitEthernet4/0/0        up    up          0%     0%          0          0
LoopBack0                   up    up(s)       0%     0%          0          0
NULL0                       up    up(s)       0%     0%          0          0
====================================================================================================================================
====================================================================================================================================  
==================================================================================================================================== 
<R6>display current-configuration 
[V200R003C00]
#
 sysname R6
#
 board add 0/2 1GEC 
 board add 0/3 1GEC 
 board add 0/4 1GEC 
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
 ip address 16.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 26.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/2
 ip address 36.1.1.2 255.255.255.0 
#
interface GigabitEthernet2/0/0
 ip address 56.1.1.2 255.255.255.0 
#
interface GigabitEthernet3/0/0
 ip address 46.1.1.2 255.255.255.0 
#
interface GigabitEthernet4/0/0
 ip address 61.1.1.2 255.255.255.0 
#
interface NULL0
#
interface LoopBack0
 ip address 6.6.6.6 255.255.255.0 
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return
<R6> 

联通测试:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

渔者£

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值