Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

how to create tunnel in cisco router

Please give me command wise configuration about creating tunnel in router as:

tunnel ip address:-

destination ip

source ip:-

any other command

6 REPLIES
Purple

Re: how to create tunnel in cisco router

Here's a sample config:

interface tunnel1

ip address 10.1.1.1 255.255.255.0

tunnel source 192.168.1.1

tunnel destination 192.168.1.2

Paresh

New Member

Re: how to create tunnel in cisco router

Ensure the tunnel destination is reachable via global routing and not routed via the tunnel interface.

As the tunnel is up if the source address is up use keepalives if you want the tunnel to go down when the destination is not available

New Member

Re: how to create tunnel in cisco router

Jed,

Can u elaborate what u wanted to say.regarding

"Ensure the tunnel destination is reachable via global routing and not routed via the tunnel interface.

As the tunnel is up if the source address is up use keepalives if you want the tunnel to go down when the destination is not available " ?

Re: how to create tunnel in cisco router

Hello Sunil,

I guess what Jed wants to stress is that prior to IOS 12.2(8)T, a tunnel interface would not go down even if the underlying physical connection would go down. As of IOS 12.2(8)T, you can configure keepalives on the tunnel interface, which cause the interface to go down when the keepalives are missed.

Check this document for details:

Cisco IOS Software Releases 12.2 T

Generic Routing Encapsulation (GRE) Tunnel Keepalive

http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a0080087cec.html

As for the tunnel configuration itself, in addition to a basic GRE tunnel as mentioned in the post above, there are additional ways to configure a tunnel. In the links below, you find many configuration examples:

Generic Routing Encapsulation (GRE)

Introduction

http://www.cisco.com/en/US/customer/tech/tk827/tk369/tk287/tsd_technology_support_sub-protocol_home.html

IPSec Negotiation/IKE Protocols

Configuration Examples and TechNotes

http://www.cisco.com/en/US/customer/tech/tk583/tk372/tech_configuration_examples_list.html

Regards,

GNT

New Member

Re: how to create tunnel in cisco router

Bronze

Re: how to create tunnel in cisco router

Hi ,

You need to do following command

interface Tunnel16

description "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

bandwidth 1024

ip address x.x.x.x

ip mtu 1400

ip tcp adjust-mss 1412 ( This is command is very much important to make tunnel operational and flow of traffic with out any problem )

keepalive 5 3

tunnel source Loopback16

tunnel destination X.X.X.X

end

This will solve your problem, please rate this.

-Minu

3005
Views
0
Helpful
6
Replies