Drawing; virtual link the OSPF
Artwork below
Draw
Lab topology
Experimental demand
OSPF configuration according to figure subregions
arranged virtual connection authentication
Experimental Procedure
- Configure the IP addresses and port addresses run loopback
- OSPF configuration according to figure subregion
AR1
[Huawei]ospf router-id 1.1.1.1
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
AR2
[Huawei]ospf router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 20.1.1.0 0.0.0.255
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 30.1.1.0 0.0.0.255
AR3
[Huawei]ospf router-id 3.3.3.3
[Huawei-ospf-1]area 1
[Huawei-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[Huawei-ospf-1-area-0.0.0.1]network 30.1.1.0 0.0.0.255
[Huawei-ospf-1]area 2
[Huawei-ospf-1-area-0.0.0.1]network 40.1.1.0 0.0.0.255
AR4
[Huawei]ospf router-id 4.4.4.4
[Huawei-ospf-1]area 2
[Huawei-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0
[Huawei-ospf-1-area-0.0.0.1]network 40.1.1.0 0.0.0.255
Test connectivity AR1 PING AR3
[Huawei]ping 3.3.3.3
PING 3.3.3.3: 56 data bytes, press CTRL_C to break
Reply from 3.3.3.3: bytes=56 Sequence=1 ttl=254 time=20 ms
Reply from 3.3.3.3: bytes=56 Sequence=2 ttl=254 time=20 ms
Reply from 3.3.3.3: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 3.3.3.3: bytes=56 Sequence=4 ttl=254 time=40 ms
Reply from 3.3.3.3: bytes=56 Sequence=5 ttl=254 time=40 ms
--- 3.3.3.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/30/40 ms
Configure a virtual link
ospf non-backbone areas and backbone area must be connected to the communication, in order not to change the network topology, we can achieve virtual connection to expand the area of the region of 0 to achieve regional interoperability.
AR2
[Huawei-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3
AR3
[Huawei-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2
See virtual connections on AR3
After the completion of the neighbors is a link of P2P
[Huawei]dis ospf vlink
OSPF Process 1 with Router ID 3.3.3.3
Virtual Links
Virtual-link Neighbor-id -> 2.2.2.2, Neighbor-State: Full
Interface: 30.1.1.2 (GigabitEthernet0/0/0)
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
AR1 PING AR4
[Huawei]ping 4.4.4.4
PING 4.4.4.4: 56 data bytes, press CTRL_C to break
Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=253 time=40 ms
Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=253 time=30 ms
Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=253 time=30 ms
--- 4.4.4.4 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/34/40 ms
Virtual connections do certification
AR2
[Huawei-ospf-1-area-0.0.0.1]vlink-peer 3.3.3.3 simple cipher 123
AR3
[Huawei-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2 simple cipher 123
Test connectivity, AR4 PING AR1
<Huawei>ping 1.1.1.1
PING 1.1.1.1: 56 data bytes, press CTRL_C to break
Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=253 time=30 ms
Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=253 time=40 ms
Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=253 time=50 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/38/50 ms