Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-13-2011, 02:49 AM   #1
Registered: Mar 2011
Posts: 51
Blog Entries: 1

Rep: Reputation: 2
Question problem in adding routes with ip route

Hi all
here is the problem:

consider I have a route in the main routing table that is:

IP_1 via IP_2 dev eth1 proto static

if I wanna add this route too,

IP_1 via IP_2 dev eth1 src IP_3

(IP_1 , IP_2 , IP_3 are different ip addresses)

it gives me the file exist error or somethin that obviously means the route already exists. But I see some programs that they can add such routes. So what makes it a big deal that I can't but some programs like gnome-network-manager can?

Old 09-13-2011, 12:09 PM   #2
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
That's impossible, you can however replace the existing route with your new route. You can also put the route in another routing table if you wish.
Old 09-14-2011, 02:45 AM   #3
Registered: Mar 2011
Posts: 51
Blog Entries: 1

Original Poster
Rep: Reputation: 2
thanks for the reply. according to the route v2 manual, your right. But I said, some programs like network manager in ubuntu, can do that and it makes me wonder. for example, if you make a pptp vpn with that network-manager stuff and then do list the route in main table, you'd see that!!!!
Old 07-04-2013, 09:30 AM   #4
Registered: Mar 2011
Posts: 51
Blog Entries: 1

Original Poster
Rep: Reputation: 2
I think some programs use an other ways to put routings for example the route program. and whenever you try to see the ip route v2 outout it translates them to the iproutev2 manner. so you can see them like that. but what would be the point to solve your problem like exactly the way you mentioned, while you can use another approaches!

Last edited by pendrive; 07-04-2013 at 09:33 AM.


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
route-eth - Adding a static route gbwien Linux - Networking 5 02-24-2012 05:15 AM
[SOLVED] howto to route 2 subnets between 2 routes sys7em Linux - Networking 1 10-28-2010 02:39 PM
static routes using route-eth0 file sti2envy Linux - Networking 2 09-08-2007 09:10 AM
Adding routes consty Linux - Networking 1 07-15-2006 04:39 AM
Problem with adding default route... Grim Reaper Linux - Networking 1 02-22-2003 07:29 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:12 AM.

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