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 01-13-2004, 08:27 AM   #1
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Rep: Reputation: 15
Help with Route Add command?


We have a Solaris box that is on a separate subnet (192.168.2.0). I just installed 2 new RH boxes on the same subnet. All 3 of these boxes are at my CO Location. Here at work we use 192.168.3.0. In order for us to connect properly to the Solaris box, I have to use this route add command. route add 192.168.3.0 192.168.2.2



How do I accomplish this with Linux? I get an error when I do it this way. (SIOCADDRT: No such device)



Please help as I need to be able to get to these boxes using an oracle client and webmin.
 
Old 01-13-2004, 09:19 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i think
#route add -net 192.168.3.0/24 gw 192.168.2.2
will work..
 
Old 01-13-2004, 09:25 AM   #3
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
sorry.. i cannot understand your question..
if all box are in the same subnet.. routing is unnecessary.. if there are some network segments, what s your gateway?
type
#route -n
 
Old 01-13-2004, 10:38 AM   #4
WeNdeL
Member
 
Registered: Oct 2002
Location: At my desk...
Distribution: RedHat, Fedora, Ubuntu
Posts: 344

Rep: Reputation: 30
Ya, plz explain your network a little better. You have not painted a clear picture of your subnets, locations, and the gateways between them.
 
Old 01-13-2004, 04:12 PM   #5
Azolean
LQ Newbie
 
Registered: Dec 2003
Location: Baltimore, MD
Distribution: Debian
Posts: 1

Rep: Reputation: 0
If you're receiving (SIOCADDRT: No such device) errors then the network hasn't been enabled yet. Please copy and paste the output of the command "ifconfig -a".
 
  


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
How do I add a route??? moonmoth Linux - Networking 3 09-04-2005 06:25 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
route add powah Linux - Newbie 4 09-01-2005 02:24 PM
route add robf2301 Linux - Networking 6 03-11-2005 04:06 AM
ip route add ducati620 Linux - Networking 0 06-06-2004 06:11 AM


All times are GMT -5. The time now is 04:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration