Configuring a GRE Tunnel Interface Between PE Routers
This example shows how to configure a generic routing encapsulation (GRE) tunnel interface between PE routers to provide VPN connectivity. You can use this configuration to tunnel VPN traffic across a non-MPLS core network. The network topology used in this example is shown in Figure 1. The P routers shown in this illustration do not run MPLS.
Figure 1: PE Routers A and D Connected by a GRE Tunnel Interface

For configuration information, see the following sections:
- Configuring the Routing Instance on Router A
- Configuring the Routing Instance on Router D
- Configuring MPLS, BGP, and OSPF on Router A
- Configuring MPLS, BGP, and OSPF on Router D
- Configuring the Tunnel Interface on Router A
- Configuring the Tunnel Interface on Router D
- Configuring the Routing Options on Router A
- Configuring the Routing Options on Router D
- Configuration Summary for Router A
- Configuration Summary for Router D
Configuring the Routing Instance on Router A
Configure a routing instance on Router A:
Configuring the Routing Instance on Router D
Configure a routing instance on Router D:
Configuring MPLS, BGP, and OSPF on Router A
Although you do not need to configure MPLS on the P routers in this example, it is needed on the PE routers for the interface between the PE and CE routers and on the GRE interface (gr-1/1/0.0) linking the PE routers (Router A and Router D). Configure MPLS, BGP, and OSPF on Router A:
Configuring MPLS, BGP, and OSPF on Router D
Although you do not need to configure MPLS on the P routers in this example, it is needed on the PE routers for the interface between the PE and CE routers and on the GRE interface (gr-1/1/0.0) linking the PE routers (Router D and Router A). Configure MPLS, BGP, and OSPF on Router D:
Configuring the Tunnel Interface on Router A
Configure the tunnel interface on Router A (the tunnel is unnumbered):
Configuring the Tunnel Interface on Router D
Configure the tunnel interface on Router D (the tunnel is unnumbered):
Configuring the Routing Options on Router A
As part of the routing options configuration for Router A, you need to configure routing table groups to enable VPN route resolution in the inet.3 routing table.
Configure the routing options on Router A:
Configuring the Routing Options on Router D
As part of the routing options configuration for Router D, you need to configure routing table groups to enable VPN route resolution in the inet.3 routing table.
Configure the routing options on Router D:
Configuration Summary for Router A
Configure the Routing Instance
Configure MPLS
Configure BGP
Configure OSPF
Configure the Tunnel Interface
Configure Routing Options
Configuration Summary for Router D
Configure the Routing Instance
Configure MPLS
Configure BGP
Configure OSPF
Configure the Tunnel Interface
Configure the Routing Options