LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2011, 12:24 AM   #1
netg
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Adding route entry to linux routing table with external gateway


Hey folks,
I got a small issue to resolve with the routing table entry of linux.
I have two laptops A and B connected to a local network, both can ping each other successfully. What I want is A->B route should be explicitly taken via a specific router C , which is on a different network. C can be pinged from both A & B
A -> 64.103.225.11
B->64.103.225.18
C->10.104.56.17
traceroute from A->B/C shows 64.103.236.3 to be the first hop from A
so I tried the following commands to add a route from A ->B setting C as next hop, doesn't seem to work..can somebody help me out?

#route add 10.104.56.17 gw 64.103.236.3
# route add 64.103.225.18 gw 10.104.56.17
SIOCADDRT: No such process


Thanks
netg
 
Old 03-11-2011, 09:39 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,211

Rep: Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612Reputation: 1612
Code:
route add default gw 10.104.56.17 eth0
 
  


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
Linux route/routing table NoahJK Linux - Server 7 06-25-2010 02:43 PM
Routing table entry Ifurita1981 Linux - Networking 6 03-25-2007 03:53 PM
Default route disappears from kernel routing table second after adding it eli_pack Linux - Networking 2 03-13-2006 04:39 AM
how to set default entry in routing table? cranium2004 Linux - Networking 7 03-15-2005 06:26 PM
Does ftp have a routing table on where to route users? digital bots Linux - Networking 1 04-06-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 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