LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-29-2009, 04:14 PM   #1
thenerse
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Rep: Reputation: 0
routing ips via gre only works with /24?


Hi everyone,

I was assigned two public IP networks. One set of IPs is from a /28 and the other set is a /24. I can successfully tunnel and ping internally both sets of IPs. BUT, from a remote machine, I can no longer ping the /28s, I can only ping the /24s.

This is what I run on the remote machine (with the networks I am trying to route)
this works:
route add -net 4.5.6.0/24 gw 10.0.0.4 dev tun1;
route add -net 4.5.6.0/24 dev tun1;

this doesn't:
route add -net 4.5.6.144/28 gw 10.0.0.4 dev tun1;
route add -net 4.5.6.144/28 dev tun1;


This is what I run on the local machine (trying to receive the new networks)
this works:
ip route add 4.2.6.0 via 10.0.0.3 dev tun1;

this doesnt
ip route add 4.5.6.144 via 10.0.0.3 dev tun1;
ip route add 4.5.6.144/28 via 10.0.0.3 dev tun1;


what am I missing? your experience and expertise is greatly appreciated.
 
Old 03-30-2009, 11:27 AM   #2
thenerse
LQ Newbie
 
Registered: Mar 2009
Posts: 4

Original Poster
Rep: Reputation: 0
anyone know anything about gre tunneling? why does it work with routing 255.255.255.0 but not 255.255.255.240? Can you only route add -net x.x.x.0?
 
  


Reply



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
Routing with public IPs crontab Linux - Networking 3 02-10-2009 06:11 AM
Routing old IPs to the new ones dorian33 Linux - Networking 7 08-12-2008 05:24 PM
routing problem with 2 static (external) IPs gjmwalsh Linux - Networking 3 05-23-2004 09:17 PM
ADSL - Routing Static IPs NiM Linux - Networking 1 03-06-2004 06:57 AM
routing multiple ips - help me! linuxxed Linux - Networking 1 02-13-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:06 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
Open Source Consulting | Domain Registration