Configuring a Tunnel with Generic Routing Encapsulation
Configuring GRE
11-10
Sending all Traffic to a Network over the Tunnel
You can add a static route to the destination network through the tunnel. From
the global configuration mode context, enter:
Syntax: ip route <destination A.B.C.D> <subnet mask | /prefix length> tunnel <inter-
face number> [<administrative distance>]
Specifying the administrative distance is optional.
Remember that the route to the actual tunnel destination cannot be through
the tunnel. For example, to configure static routing for the tunnel for the
network shown in Figure 11-3, you would enter these commands:
ProCurve(config)# ip route 192.168.2.0 /24 tunnel 1
ProCurve(config)# ip route 2.2.2.0 /24 ppp 1
IP
Payload
header
Source:
192.168.1.X
Destination:
192.168.2.X
1.1.1.1
Router
192.168.1.0/24
Figure 11-3. Routing Traffic over a GRE Tunnel
GRE
Delivery IP
header
header
Source:
1.1.1.1
Destination:
2.2.2.2
Internet
GRE tunnel
192.168.10.0/30
2.2.2.2
Router
192.168.2.0/24