[Contents] [Prev] [Next] [Index] [Report an Error]

Example: OSPFv3 for IPv6 Configuration

Figure 18: OSPFv3 for IPv6 Topology Diagram

Image g017156.gif

Figure 18 shows an OSPFv3 topology. Routers 0, 1, 2, and 3 are connected to the OSPFv3 backbone Area 0; Routers 2, 3, and 4 connect to each other across Area 1; and Area 2 is located between Routers 4 and 5. Because Router 5 does not have a direct adjacency to Area 0, a virtual link is required across Area 1 between Routers 3 and 4. Similarly, because Routers 0 and 1 have two separate Area 0 backbone sections, you need to configure a second virtual link across Area 1 between Routers 2 and 3.

On Router 0, add the so-0/3/2 interface into Area 0 of the OSPFv3 process.

Router 0

[edit]
interfaces {
so-0/3/2 {
unit 0 {
family inet {
address 10.19.1.1/24;
}
family inet6 {
address 9009:1::1/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.4/32;
}
family inet6 {
address feee::10:255:71:4/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.0 {
interface so-0/3/2.0;
interface lo0.0 {
passive;
}
}
}
}

On Router 1, add the at-2/0/0 interface into Area 0 of the OSPFv3 process:

Router 1

[edit]
interfaces {
at-2/0/0 {
atm-options {
vpi 0;
}
unit 0 {
vci 0.77;
family inet {
address 10.19.2.1/24;
}
family inet6 {
address 9009:2::1/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.1/32;
}
family inet6 {
address feee::10:255:71:1/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.0 {
interface at-2/0/0.0;
interface lo0.0 {
passive;
}
}
}
}

On Router 2, add the interfaces connected to Routers 1, 3, and 4 into the OSPFv3 process. You must also complete the virtual link to Router 3 through Area 1 so that Router 1 can access the discontiguous portion of the OSPF backbone found on Router 0.

Router 2

[edit]
interfaces {
so-0/2/0 {
unit 0 {
family inet {
address 10.19.3.1/24;
}
family inet6 {
address 9009:3::1/64;
}
}
}
at-0/3/1 {
atm-options {
vpi 0 {
maximum-vcs 1200;
}
}
unit 0 {
vci 0.77;
family inet {
address 10.19.2.2/24;
}
family inet6 {
address 9009:2::2/64;
}
}
}
fe-1/1/0 {
unit 0 {
family inet {
address 10.19.4.1/24;
}
family inet6 {
address 9009:4::1/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.11/32;
}
family inet6 {
address feee::10:255:71:11/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.0 {
virtual-link neighbor-id 10.245.71.3 transit-area 0.0.0.1;
interface at-0/3/1.0;
}
area 0.0.0.1 {
interface so-0/2/0.0 {
metric 1;
}
interface fe-1/1/0.0 {
metric 10;
}
interface lo0.0 {
passive;
}
}
}
}

For the OSPFv3 process on Router 3, configure the interfaces connected to Routers 2 and 4 into Area 1 and the interface connected to Router 0 into Area 0. You must also configure two virtual links through Area 1—one connecting to Router 2 and the second connecting to Router 4. The virtual links allow Router 5 to access the OSPF backbone, and connect the discontiguous sections of Area 0 located at Routers 0 and 1.

Router 3

[edit]
interfaces {
t1-0/2/1 {
unit 0 {
family inet {
address 10.19.5.1/24;
}
family inet6 {
address 9009:5::1/64;
}
}
}
so-0/3/0 {
unit 0 {
family inet {
address 10.19.3.2/24;
}
family inet6 {
address 9009:3::2/64;
}
}
}
so-0/3/2 {
unit 0 {
family inet {
address 10.19.1.2/24;
}
family inet6 {
address 9009:1::2/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.3/32;
}
family inet6 {
address feee::10:255:71:3/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.0 {
virtual-link neighbor-id 10.245.71.11 transit-area 0.0.0.1;
virtual-link neighbor-id 10.245.71.5 transit-area 0.0.0.1;
interface so-0/3/2.0;
}
area 0.0.0.1 {
interface so-0/3/0.0 {
metric 1;
}
interface t1-0/2/1.0 {
metric 1;
}
interface lo0.0 {
passive;
}
}
}
}

On Router 4, add the connected interfaces into the OSPFv3 process. You must also complete the virtual link to Router 3 through Area 1 so that Router 5 can access the OSPF backbone.

Router 4

[edit]
interfaces {
fe-0/0/0 {
unit 0 {
family inet {
address 10.19.6.1/24;
}
family inet6 {
address 9009:6::1/64;
}
}
}
t1-0/2/1 {
unit 0 {
family inet {
address 10.19.5.2/24;
}
family inet6 {
address 9009:5::2/64;
}
}
}
fe-1/1/0 {
unit 0 {
family inet {
address 10.19.4.2/24;
}
family inet6 {
address 9009:4::2/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.5/32;
}
family inet6 {
address feee::10:255:71:5/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.1 {
interface fe-1/1/0.0 {
metric 10;
}
interface t1-0/2/1.0 {
metric 1;
}
interface lo0.0 {
passive;
}
}
area 0.0.0.0 {
virtual-link neighbor-id 10.245.71.3 transit-area 0.0.0.1;
}
area 0.0.0.2 {
interface fe-0/0/0.0;
}
}
}

On Router 5, add the fe-0/0/0 interface into the OSPFv3 process to complete this example:

Router 5

[edit]
interfaces {
fe-0/0/0 {
unit 0 {
family inet {
address 10.19.6.2/24;
}
family inet6 {
address 9009:6::2/64;
}
}
}
lo0 {
unit 0 {
family inet {
address 10.245.71.6/32;
}
family inet6 {
address feee::10:255:71:6/128;
}
}
}
}
protocols {
ospf3 {
area 0.0.0.2 {
interface fe-0/0/0.0;
interface lo0.0 {
passive;
}
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]