Configure WEST
The GRE tunnel in the sample configuration extends from WEST through the wide-area network to EAST. In this example, you create the tunnel interface and the tunnel endpoint on WEST.
- The tun0 tunnel interface on WEST is assigned the 10.20.20.1 IP address on 10.20.20.0/24 network.
- The source IP address of the tunnel endpoint (local-ip) is the same as the address associated with the loopback interface (lo) in this example.
- The IP address of the other end of the tunnel (remote-ip) is the address of the loopback interface on EAST.
- A static route is created to specify how to get to the remote LAN through the tunnel.
Creating a basic GRE tunnel endpoint on WEST shows how to create the tunnel interface and the tunnel endpoint on WEST. To do this, perform the following steps on WEST in configuration mode.
Step |
Command |
---|---|
Create the tunnel interface, and specify the IP address to be associated with it. |
|
Specify the source IP address for the tunnel. |
|
Specify the IP address of the other end of the tunnel. |
|
Specify the encapsulation mode for the tunnel. |
|
Assign a brief description to the tunnel interface. |
|
Commit the configuration. |
|
View the configuration. |
|
Create a static route to access the remote subnet through the tunnel. |
|
Commit the configuration. |
|
View the configuration. |
|