LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2013, 06:10 AM   #1
ViennaAustria
LQ Newbie
 
Registered: Jun 2011
Location: Vienna, Austria, Europe
Distribution: SuSE since 4.2
Posts: 4

Rep: Reputation: Disabled
SuSE<->Cisco GRE Tunnel with ifcfg-file


Hello!

I try to configure a GRE Tunnel with SuSE Linux to a Cisco router through NAT on my side. When I enter all commandy by hand, it works perfectly:
Code:
modprobe ip_gre
iptunnel add tun0 mode gre local 192.168.1.2 remote 91.224.66.1 ttl 225
ifconfig tun0 37.75.142.30/30
ifconfig tun0 up
ifconfig tun0 pointopoint 37.75.142.29
route add default gw 37.75.142.29
But when I try to do that with /etc/sysconfic/network/ifcfg-tun0, I only get non-working tunnels. No error message; just no traffic through the tunnel.
Code:
STARTMODE='onboot'
BOOTPROTO='static'
TUNNEL='gre'
TUNNEL_LOCAL_IPADDR='192.168.1.2'
TUNNEL_REMOTE_IPADDR='91.224.66.1'
IPADDR='37.75.142.30/30'
Can somebody help me please? Thanks!!!
 
Old 07-02-2013, 10:52 AM   #2
ViennaAustria
LQ Newbie
 
Registered: Jun 2011
Location: Vienna, Austria, Europe
Distribution: SuSE since 4.2
Posts: 4

Original Poster
Rep: Reputation: Disabled
When I add
Code:
TUNNEL_TTL=225
to the ifcfg file, it works.

However, when I shrink the Prefix down to /31 it produces a strange tunnel configuration with local and remote endpoint being the same IP address.
Code:
tun0      Link encap:UNSPEC  HWaddr C0-A8-01-02-97-BF-48-7E-00-00-00-00-00-00-00-00
          inet addr:37.75.142.29  P-t-P:37.75.142.29  Mask:255.255.255.254
          UP POINTOPOINT RUNNING NOARP  MTU:1476  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
But it works, nevertheless. Obviously the `ifupī script on SuSE 11.2 can't handle /31 netmasks properly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep Alive GRE Tunnel gmarzilli Linux - Networking 0 01-19-2010 07:47 AM
GRE tunnel nima0102 Linux - Networking 1 07-28-2009 01:12 PM
GRE Tunnel Not Working doctorcisco Linux - Networking 2 04-19-2009 05:29 AM
Gre Tunnel Questions mhunter Linux - Networking 2 07-18-2007 12:17 PM
Question about a GRE Tunnel zerounu Linux - Networking 1 03-09-2004 09:04 AM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration