Configuring a Tunnel with Generic Routing Encapsulation
Configuring GRE
N o t e
9-8
To eliminate recursive routing, the actual tunnel destination must be routed
through a logical interface, not through the tunnel interface.
Sending Routing Updates over the Tunnel
Enable the routing protocol on the network on which the tunnel interface has
its IP address.
1.1.1.1
Router A
192.168.1.0/24
Figure 9-2. Tunneling OSPF Updates
Note that the interface's IP address is not its source. For example, in Figure
9-2 the IP address is 192.168.10.1.
To configure the router to send OSPF updates across the Internet, you would
complete these steps:
1.
Configure a loopback interface for the tunnel's source:
ProCurve(config)# interface loopback 1
ProCurve(config-loopback 1)# ip address 1.1.1.1 /30
2.
Create the tunnel interface and assign it an IP address:
ProCurve(config-loopback 1)# interface tunnel 1
ProCurve(config-tunnel 1)# ip address 192.168.10.1 /30
3.
Specify the source and destination of the tunnel:
ProCurve(config-tunnel 1)# tunnel source loopback 1
ProCurve(config-tunnel 1)# tunnel destination 2.2.2.2
2.2.2.2
Router B
Internet
GRE tunnel
192.168.10.0/30
OSPF LSAs
192.168.2.0/24