Topology is as follows:
Condition:
4 routing AR1220
============================================ ============
the AR-configuration. 1:
<the Huawei> // system view into the system-view
[Huawei] sysname AR-1 // hostname modification
[AR-1] int g0 / 0 / 0 // into the interface G0 / 0/0
[the AR--the GigabitEthernet0. 1/0/0] 24 // IP address 192.168.14.1 IP address and subnet mask
[AR-1-GigabitEthernet0 / 0 /0] int g0 / // 0/1 handover Interface
[AR-1-GigabitEthernet0 / 0 /0] ip address 192.168.14.1 24 // IP address and subnet mask
start OSPF command follows:
[the AR-. 1] OSPF 1.1. 1 Router-ID. 1.1 // name. 1
[the AR--OSPF. 1. 1-] // into the backbone area area 0 0
Network IP addresses 192.168.14.0 0.0.0.255 arranged // [AR-1-ospf-1 -area-0.0.0.0] and the reverse mask
[AR-1-ospf-1 -area-0.0.0.0] q // layer on retreated
[AR-1-ospf-1 ] area 0.0.0.1 // backbone region into a non 0.0.0.1
[AR-1-ospf-1 -area-0.0.0.1] network 192.168.12.0 0.0.0.255 // configure the IP address and the reverse mask
=================== ================================================== =============================
the AR-2 configuration:
<the Huawei> // system view into the system-view
[Huawei] sysname AR -2 // hostname modification
[AR-2] int g0 / 0/0 // into g0 / 0/0 Interface
[AR-2-GigabitEthernet0 / 0 /0] ip address 192.168.23.2 24 // IP address and sub netmask
[AR-2-GigabitEthernet0 / 0 /0] int g0 / 0/1 // handover Interface
[AR-2-GigabitEthernet0 / 0 /1] ip address 192.168.12.2 24 // IP address and subnet mask
ospf start command follows:
[the AR-2] ospf-Router ID. 1 // name 2.2.2.2 2.2.2.2
[the AR-2. 1-ospf-] area 0.0.0.1 // backbone region into a non 0.0.0.1
[AR- 2-ospf-1-area- 0.0.0.1] network 192.168.12.0 0.0.0.255 // configure the IP address and the reverse mask
[AR-2-ospf-1 -area-0.0.0.1] q // layer on retreated
[AR-2-ospf-1 ] area 0.0.0.2 // backbone region into a non 0.0.0.2
[the AR-2- ospf-1-area-0.0.0.2] network 192.168.23.0 0.0.0.255 // configure the IP address and the reverse mask
======================== ================================================== =========================
the AR-configuration. 3:
<the Huawei> // system view into the system-view
[Huawei] sysname AR-3 // modifying the host name
[AR-3] int g0 / 0/0 // into g0 / 0/0 Interface
[AR-3-GigabitEthernet0 / 0 /0] ip address 192.168.23.3 24 // IP address and subnet mask
enable ospf following command
[AR-3] ospf 1 router -id 3.3.3.3 // set the name: 3.3.3.3
[-the AR. 1. 3-ospf-] // into area 0.0.0.2 non-backbone area 0.0.0.2
[AR- 3-ospf-1-area- 0.0.0.2] network 192.168.23.0 0.0.0.255 // configure the IP address and the reverse mask
================================================== ==================================================
AR-4 configuration:
<the Huawei> // system view into the system-view
[Huawei] sysname AR-4 // hostname modification
[AR-4] int g0 / 0/0 // into g0 / 0/0 Interface
[the AR -4-GigabitEthernet0 / 0/0] ip address 192.168.14.4 24 // IP address and subnet mask
enable ospf following command
[AR-4] ospf 1 router -id 4.4.4.4 // set the name 4.4.4.4
[ AR-4-ospf-1] area 0.0.0.0 // into the backbone area 0.0.0.0
[the AR--OSPF. 1. 4-0.0.0.0-area-] Network 192.168.14.0 0.0.0.255 // IP address and mask trans code
================================================= ==================================================
1 through the region, creating a virtual link, the following command:
the AR-1 command configured as follows:
[the AR-1] // enter the process of OSPF 1 1 ID
the AR-1-OSPF-1] // entry region 1 area 1
[AR-1-ospf-1 -area-0.0.0.1] vlink-peer virtual link is created 2.2.2.2 // 2.2.2.2
the AR-2 command configured as follows:
[the AR-2] // into the process as OSPF. 1 the ID 1
[AR-2-ospf-1 ] area 1 // entry region. 1
[the AR-2. 1-OSPF-area-0.0.0.1-] vlink 1.1.1.1 // Use the peer-to create the virtual link 1.1.1.1
================================================== =================================================
verification as follows:
<-the AR. 3> of ping 192.168.14.4
the PING 192.168.14.4: 56 is Data bytes, BREAK Press CTRL_C to
the Reply from 192.168.14.4: bytes = 56 is TTL = 253. 1 Sequence Time = 50 MS =
the Reply from 192.168.14.4: bytes Sequence 56 is TTL = 2 = 253 = 50 Time = MS
the Reply from 192.168.14.4: bytes = 56 is =. 3 Sequence TTL = Time = 40 MS 253
the Reply from 192.168.14.4: bytes = 56 is. 4 Sequence TTL = Time = 30 = 253 MS
Reply from 192.168.14.4: bytes=56 Sequence=5 ttl=253 time=30 ms
--- 192.168.14.4 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/40/50 ms
=============================================================================
<AR-4>ping 192.168.23.3
PING 192.168.23.3: 56 data bytes, press CTRL_C to break
Reply from 192.168.23.3: bytes=56 Sequence=1 ttl=253 time=60 ms
Reply from 192.168.23.3: bytes=56 Sequence=2 ttl=253 time=40 ms
Reply from 192.168.23.3: bytes=56 Sequence=3 ttl=253 time=50 ms
Reply from 192.168.23.3: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 192.168.23.3: bytes=56 Sequence=5 ttl=253 time=40 ms
192.168.23.3 of ping statistics --- ---
. 5 Packet (S) Transmitted
. 5 Packet (S) Received
0.00% Packet Loss
round-TRIP min / AVG / max = 30/44/60 MS
======== ================================================== ===================
[AR-2] ospf the peer DIS // Check the Brief ospf adjacency table
OSPF Process 1 with Router ID 2.2.2.2
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.1 GigabitEthernet0/0/1 1.1.1.1 Full
0.0.0.2 GigabitEthernet0/0/0 3.3.3.3 Full
----------------------------------------------------------------------------
[AR-2]dis ospf vlink //查看ospf虚链路
OSPF Process 1 with Router ID 2.2.2.2
Virtual Links
Virtual-link Neighbor-id -> 1.1.1.1, Neighbor-State: Full
Interface: 192.168.12.2 (GigabitEthernet0/0/1)
Cost: 1 State: P-2-P Type: Virtual
Transit Area: 0.0.0.1
Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1
GR State: Normal
==============================================================================
[AR-2]dis ospf brief
OSPF Process 1 with Router ID 2.2.2.2
OSPF Protocol Information
RouterID: 2.2.2.2 Border Router: AREA
Multi-VPN-Instance is not enabled