Home > English, OSS Solutions, Tech Crunch > GRE tunnels between Cisco and Linux routers using iproute

GRE tunnels between Cisco and Linux routers using iproute

This article was first written in August 2004 for the BeezNest technical
website (http://glasnost.beeznest.org/articles/167).

GRE tunnels between Cisco and Linux (2.4 and up) routers are possible.

Given the following two routers, each one gateway for its network:

linux

Public IP: 82.72.101.226

Private network: 192.168.4.0/24

IP on that private network: 192.168.4.4

cisco

Public IP: 123.45.67.8

Private network: 192.168.10.0/24

IP on that private network: 192.168.10.4

See IP in IP or GRE tunnel using iproute for the Linux configuration part.

For the Cisco part, it is quite similar, as the needed portion of configuration is something like this:

interface Tunnel1
 description connection to Linux Network
 ip address 192.168.10.4 255.255.255.0
 tunnel source Dialer1
 tunnel destination 87.65.43.21
 tunnel mode gre ip

Where Dialer1 is the name of the interface of the Cisco router connected to Internet (it’s used to always match the actual and current public IP of the router).

Advertisements
  1. Peter.
    March 16, 2012 at 11:15 am

    you could have put the linux example that matches the cisco example above.. is it possible to do encryption over this tunnel between cisco and linux?

    • March 16, 2012 at 12:04 pm

      Isn’t the Linux example (using iproute) in the other article linked from the present one?

      The encryption, at least at the time of writing, was not possible, because Cisco did not implement any open encryption mechanism that Linux could implement (sigh! patents!) in iOS.

      Hope this answers your questions.

  2. gierig
    January 9, 2013 at 2:15 pm

    open swan and cisco Ipsec on routr (if Crypto avable on you device do the job)
    see http://ghergamilan.blogspot.de/2010/06/gre-over-ipsec-tunnels-between-cisco.html

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: