As shown in the topology map, AREA2 and area0 are not directly connected, so the network does not have a full topology, at which point we can do virtual-link on the ABR area2 and AREA0 connection, the following is the configuration script:
system {Time-zone Asia/shanghai; root-authentication {Encrypted-password "$1$eb9tnuwo$gyal5nxlo7vdl4n6mrndy1"; # Secret-data} l
Ogin {User Olive {UID 1000;
Class Super-user;
Authentication {Encrypted-password "$1$t5kq/sxd$i12mfkx8pnztgoxj5cs5g0"; # # Secret-data
}} services {ssh;
Telnet
web-management {http;
}}} logical-systems {r1 {interfaces {em1 {unit 12 {
Vlan-id 12;
Family inet {address 10.0.4.5/30;
} \ {Vlan-id 13;
Family inet {address 10.0.4.14/30; }
} inactive:unit {Vlan-id 15;
Family inet {address 172.30.25.2/30; }} lo0 {Unit 1 {family ine
t {address 10.0.0.1/32; }}} protocols {OSPF {area
0.0.0.2 {interface em1.12;
Interface em1.13;
}}} r2 {interfaces {em2 {unit 21 {
Vlan-id 12;
Family inet {address 10.0.4.6/30;
} \ {Vlan-id 23; Family inet {address 10.0.4.2/30;
{Vlan-id 24;
Family inet {address 10.0.4.10/30; }} lo0 {Unit 2 {family INE
t {address 10.0.0.2/32; }}} protocols {OSPF {area
0.0.0.2 {interface em2.21;
Interface em2.24;
}}} r3 {interfaces {em3 {
Unit a {Vlan-id 13;
Family inet {address 10.0.4.13/30; {Vlan-id 23;
Family inet {address 10.0.4.1/30;
{Vlan-id 34;
Family inet {address 10.0.2.5/30;
{Vlan-id 35;
Family inet {address 10.0.2.2/30; }} lo0 {Unit 3 {family INE
t {address 10.0.0.3/32;
}}} protocols {OSPF { Area 0.0.0.2 {interface em3.31;
Area 0.0.0.1 {interface em3.35;
Interface em3.34; } area 0.0.0.0 {virtual-link Neighbor-id 10.0.0.5 transit-area 0.0.0.1;//virtua
L-link can only be configured inside the AREA0, Neighbor-id refers to the end Rid,transit-area refers to the area that virtual-link to pass}}
R4 {interfaces {em4 {Unit 42 {
Vlan-id 24;
Family inet {address 10.0.4.9/30;
{Vlan-id 34;
Family inet {address 10.0.2.6/30;
{Vlan-id 45;
Family inet { Address 10.0.2.10/30; }} lo0 {Unit 4 {family INE
t {address 10.0.0.4/32; }}} protocols {OSPF {area
0.0.0.2 {interface em4.42;
Area 0.0.0.1 {interface em4.45;
Interface em4.43;
Area 0.0.0.0 {virtual-link Neighbor-id 10.0.0.5 transit-area 0.0.0.1; }}} R5 {interfaces {em5 {unit
{Vlan-id 35;
Family inet {address 10.0.2.1/30;
}
} Unit Si {Vlan-id 45;
Family inet {address 10.0.2.9/30;
{Vlan-id 56;
Family inet {address 10.0.8.6/30;
{Vlan-id 57;
Family inet {address 10.0.8.9/30; }} lo0 {Unit 5 {family INE
t {address 10.0.0.5/32; }}} protocols {OSPF
{Area 0.0.0.1 {interface em5.53;
Interface em5.54; Area 0.0.0.0 {virtual-link Neighbor-id 10.0.0.4 transit-area 0.0.0.1;
Virtual-link Neighbor-id 10.0.0.3 transit-area 0.0.0.1;
Interface em5.57;
Interface em5.56; }}} r6 {interfaces {em6 {unit
Vlan-id {56;
Family inet {address 10.0.8.5/30;
{Vlan-id 67;
Family inet {address 10.0.8.1/30;
}} lo0 {Unit 6 {
Family inet {address 10.0.0.6/32;
} }}} protocols {OSPF {area 0.0.0.0 {
Interface em6.65;
Interface em6.67; }}} R7 {interfaces {em7 {unit
Vlan-id 57;
Family inet {address 10.0.8.10/30;
{Vlan-id 67;
Family inet {address 10.0.8.2/30; }} lo0 {Unit 7 {family INE
t {address 10.0.0.7/32; }}} protocols {OSPF {
Area 0.0.0.0 {interface em7.75;
Interface em7.76; }}}} interfaces {em0 {unit 0 {family inet
{Address 192.168.1.254/24;
}}} em1 {vlan-tagging;
} em2 {vlan-tagging;
} em3 {vlan-tagging;
} em4 {vlan-tagging;
} EM5 {vlan-tagging;
} EM6 {vlan-tagging;
} EM7 {vlan-tagging; } olive# run show OSPF neighbor Logical-system all Logical-system: R2 address Interface State ID Pri Dead 10.0.4.5 em2.21 Full 10.0.0.1 128 10.0.4.9 em2.24Full 10.0.0.4 128-----logical-system:r3 10.0.2.6 em3.34 Fu ll 10.0.0.4 128 10.0.2.1 em3.35 full 10.0.0.5 128 33 10.0 .4.14 em3.31 Full 10.0.0.1 128 10.0.2.1 full 10.0.0.5 0-----logical-system:r1 10.0.4.6 em1.12 Full
10.0.0.2 128 10.0.4.13 em1.13 full 10.0.0.3 128----- LOGICAL-SYSTEM:R5 10.0.8.5 em5.56 full 10.0.0.6 128 34 10.0.8.10 em5.57 full 10.0.0.7 128 10.0.2.2 vl-10.0.0.3 full 10.0 .0.3 0 10.0.2.10 vl-10.0.0.4 full 10.0.0.4 0 34 10.0.2.2 em5.53Full 10.0.0.3 128 10.0.2.10 em5.54 full 10.0.0.4 128 32-- ---logical-system:r4 10.0.2.5 em4.43 full 10.0.0.3 128 39 10.0 .2.9 em4.45 Full 10.0.0.5 128 Notoginseng 10.0.4.10 full
10.0.0.2 128 10.0.2.9 vl-10.0.0.5 full 10.0.0.5 0----- LOGICAL-SYSTEM:R7 10.0.8.9 em7.75 full 10.0.0.5 128 36 10.0.8.1 em7.76 full 10.0.0.6 128-----LOGICAL-SYSTEM:R6 10.0.8.6 em6.65 full 10.0.0.5 128 10.0.8.2 em6.67 full 10. 0.0.7 128-----olive# run show OSPF interface Logical-system all LOGICAL-SYSTEM:R2 I Nterface State Area Dr ID BDR ID NBRs em2.21 Dr 0.0.0.2 10.0.0.2 10.
0.0.1 1 em2.24 BDR 0.0.0.2 10.0.0.4 10.0.0.2 1----- LOGICAL-SYSTEM:R3 em3.34 BDR 0.0.0.1 10.0.0.4 10.0.0.3 1 em3.35 BDR 0.0.0.1 10.0.0.5 10.0.0.3 1 em3.31 DR 0.0.0.2 10.0.0.3
10.0.0.1 1 vl-10.0.0.5 pttopt 0.0.0.0 0.0.0.0 0.0.0.0 1----- LOGICAL-SYSTEM:R1 em1.12 BDR 0.0.0.2 10.0.0.2 10.0.0.1 1 em1.1 3 BDR 0.0.0.2 10.0.0.3 10.0.0.1 1-----logical-system:r5 EM5 BDR 0.0.0.0 10.0.0.6 10.0.0.5 1 em5.57 BDR 0.0.0.0 10.0.0.7 10.0.0.5 1 vl-10.0.0.3 pttopt 0.0.0.0 0.0.0.0 0.0.0.0 1 vl-10.0.0.4 Pttopt 0.0.0.0 0.0.0.0 0.0.0.0 1 em5.53 DR 0.0.0.1 10.0.0.5
10.0.0.3 1 em5.54 DR 0.0.0.1 10.0.0.5 10.0.0.4 1----- LOGICAL-SYSTEM:R4 em4.43 DR 0.0.0.1 10.0.0.4 10.0.0.3 1 em4.45 BDR 0.0.0.1 10.0.0.5 10.0.0.4 1 em4.42 DR 0.0.0.2 10. 0.0.4 10.0.0.2 1 vl-10.0.0.5 pttopt 0.0.0.0 0.0.0.0 0.0.0.0 1-
----LOGICAL-SYSTEM:R7 em7.75 DR 0.0.0.0 10.0.0.7 10.0.0.5 1
em7.76 DR 0.0.0.0 10.0.0.7 10.0.0.6 1-----LOGICAL-SYSTEM:R6 em6.65 DR 0.0.0.0 10.0.0.6 10.0.0.5 1 em6.67 BDR 0.0.0.0 10.0.0.7 10.0.0.6 1
This article is from the "Rista" blog, please be sure to keep this source http://rista.blog.51cto.com/2526140/946558