cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9392
Views
0
Helpful
6
Replies

how to create tunnel in cisco router

blue4cisco
Level 1
Level 1

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

tunnel ip address:-

destination ip

source ip:-

any other command

6 Replies 6

pkhatri
Level 11
Level 11

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

Jed Renton
Level 1
Level 1

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

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 " ?

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

minumathur
Level 1
Level 1

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