Configuring Path MTU Discovery on a GRE Tunnel
Before configuring this task, review the “Configuring IP GRE tunnels” task to view the required steps for creating GRE tunnels. In this task, it is assumed that you have already configured the GRE tunnel. Full tunnel configuration is shown in the example at the end of this task.
- Enter global configuration mode.
- Enter interface configuration mode and specify an Ethernet interface.
- Assign an IP address to Ethernet port 1/3/1.
- Return to global configuration mode to configure the GRE tunnel interface.
- Create a tunnel interface.
- (Optional) Re-enable PMTUD for the tunnel interface.
- (Optional) Change the age timer for PMTUD.
In this example, the device waits for 20 minutes before resetting the path MTU to its original value. By default, when PMTUD is enabled on a tunnel interface, the path MTU is reset to its original value every 10 minutes. If desired, you can change the reset time (default age timer) to a value of up to 30 minutes.
comm - (Optional) Reset a dynamically-configured PMTUD on tunnel interface 1.
- Display PMTUD information using
the
show interfaces tunnelcommand.show interfaces tunnel 1 Tunnel1 is up, line protocol is up Hardware is Tunnel Tunnel source 10.0.8.108 Tunnel destination is 131.108.5.2 Tunnel mode gre ip Internet address is 10.10.3.1/24, MTU 1476 bytes, encapsulation GRE Keepalive is not Enabled Path MTU Discovery: Enabled, MTU is 1428 bytes, age-timer: 20 minutes Path MTU will expire in 0 minutes 50 secs
In this example, GRE tunnel configuration and PMTUD aging timer information is displayed.
The following example configures a GRE tunnel and changes the PMTUD aging timer to 20.
device# configure terminal device(config)# interface ethernet 1/3/1 device(config-if-e1000-1/3/1)# ip address 10.0.8.108/24 device(config)# exit device(config)# interface tunnel 1 device(config-tnif-1)# tunnel source 10.0.8.108 device(config-tnif-1)# tunnel destination 131.108.5.2 device(config-tnif-1)# tunnel mode gre ip device(config-tnif-1)# tunnel path-mtu-discovery age-timer 20 device(config-tnif-1)# tunnel loopback 4/1 device(config-tnif-1)# ip address 10.10.3.1/24 device(config-tnif-1)# exit device(config)# ip route 131.108.5.0/24 10.0.8.1 device(config)# ip route 10.10.2.0/24 tunnel 1