Chapter 14: GRE Tunneling over IPsec
GRE over IPsec is primarily used to facilitate routing protocols within tunnels.
GRE is stateless.
GRE adds a new 20-byte IP header and its own 4-byte header, and up to 12 bytes of options:
-
Bit 0: Checksum present - Adds an optional 4-byte checksum field
-
Bit 2: Key present - Adds an optional 4-byte encryption key
-
Bit 3: Sequence number present - Adds an optional 4-byte sequence number
-
Bits 13-15: GRE version - 0 is basic GRE, 1 is used for PPTP
-
Bits 16-31: Protocol field - Identifies layer 3 protocol being transported
GRE Tunnel Configuration
Basic configuration components:
-
Tunnel source
-
Tunnel destination
-
Tunnel mode (GRE/IP is default)
Basic GRE/IP configuration:
Router(config)# interface tunnel0
Router(config-if)# ip address 192.168.0.1 255.255.255.252
Router(config-if)# tunnel source s0/0
Router(config-if)# tunnel destination 10.1.2.3
! GRE/IP is default
Router(config-if)# tunnel mode gre ip
GRE over IPsec configuration under the SDM involves the following steps:
-
Create the GRE tunnel
-
Create a backup GRE tunnel (optional)
-
Select the IPsec VPN authentication method
-
Select the IPsec VPN IKE proposals
-
Select the IPsec VPN transform sets
-
Select the routing method for the tunnel
-
Validate the configuration
One of the best summary I have seen. It make life easier and time well spent. Good job. Gerard
nice work