This example shows how to enable OSPF sham links on a PE router.
The following is the loopback interface configuration on the PE router. The address configured is for the local end point of the OSPF sham link:
- [edit]
- interfaces {
-
- lo0 {
-
- unit 1 {
-
- family inet {
- address 10.1.1.1/32;
- }
- }
- }
- }
The following is the routing instance configuration on the PE router, including the configuration for the OSPF sham link. The sham-link local statement is configured with the address for the local loopback interface:
- [edit]
- routing-instances {
-
- example-sham-links {
- instance-type vrf;
- interface e1-1/0/2.0;
- interface lo0.1;
- route-distinguisher 3:4;
- vrf-import vpn-red-import;
- vrf-export vpn-red-export;
-
- protocols {
-
- ospf {
- sham-link local 1-.1.1.1;
-
- area 0.0.0.0 {
- sham-link-remote 10.2.2.2 metric 1;
- interface e1-1/0/2.0 metric 1;
- }
- }
- }
- }
- }