Configure the Routing Instance
- gre-config {
- instance-type vrf;
- interface fe-1/0/0.0;
- route-distinguisher 10.255.14.176:69;
- vrf-import import-config;
- vrf-export export-config;
-
- protocols {
-
- ospf {
- export import-config;
-
- area 0.0.0.0 {
- interface all;
- }
- }
- }
- }
Configure MPLS
- mpls {
- interface all;
- }
Configure BGP
- bgp {
-
- traceoptions {
- file bgp.trace world-readable;
- flag update detail;
- }
-
- group pe-to-pe {
- type internal;
-
- neighbor 10.255.14.178 {
-
- family inet-vpn {
- unicast;
- }
- }
- }
- }
Configure OSPF
- ospf {
-
- area 0.0.0.0 {
- interface all;
-
- interface gr-1/1/0.0 {
- disable;
- }
- }
- }
Configure the Tunnel Interface
-
interface-name {
-
- unit 0 {
-
- tunnel {
- source 10.255.14.176;
- destination 10.255.14.178;
- }
- family inet;
- family mpls;
- }
- }
Configure Routing Options
- interface-routes {
- rib-group inet if-rib;
- }
- rib inet.3 {
-
- static {
- route 10.255.14.178/32 next-hop gr-1/1/0.0;
- }
- }
- rib-groups {
-
- if-rib {
- import-rib [ inet.0 inet.3 ];
- }
- }