Networking Forums

Networking Forums > Computer Networking > Linux Networking > route newbie question

Reply
Thread Tools Display Modes

route newbie question

 
 
mackdaddy315
Guest
Posts: n/a

 
      08-21-2007, 12:32 AM
Sorry this is such a newbie question but here goes.

I am told by my net admin that I need to use the following info to
setup a persistent route on my RHES3 box.

I tried
route add -net 20.20.3.0/24 gw 10.10.4.1 eth2
I get error "SIOCADDRT: network unreachable"

My box 12.2.2.44 with netmask of 255.255.255.0 on eth2

One of the IP's I need to talk to: 20.20.3.44

Subnet IP and other sit: 20.20.3.0/24

Router Address I was told to use: 10.10.4.1

My guess is that route is complaining since the gateway is not in the
subnet I am trying to reach. But I am told that this is the correct
address to use.
I have read a couple posts that say I maybe should look at using the
ip command to get this working?

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      08-21-2007, 09:41 AM
Hello,

mackdaddy315 a écrit :
> Sorry this is such a newbie question but here goes.
>
> I am told by my net admin that I need to use the following info to
> setup a persistent route on my RHES3 box.
>
> I tried
> route add -net 20.20.3.0/24 gw 10.10.4.1 eth2


The route command only creates volatile routes that will be lost at the
next boot. In order to create a persistent route across reboots, you
need to edit some config file in /etc/sysconfig/network IIRC (I'm not
too familiar with RedHat).

> I get error "SIOCADDRT: network unreachable"
>
> My box 12.2.2.44 with netmask of 255.255.255.0 on eth2
>
> One of the IP's I need to talk to: 20.20.3.44
>
> Subnet IP and other sit: 20.20.3.0/24
>
> Router Address I was told to use: 10.10.4.1
>
> My guess is that route is complaining since the gateway is not in the
> subnet I am trying to reach.


No, the error occurs because the gateway is not in *your* subnet. Or you
specified the wrong interface, if your box is connected to multiple
networks. What does 'route -n' say ?

> I have read a couple posts that say I maybe should look at using the
> ip command to get this working?


It will have the same result.
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      08-21-2007, 10:43 AM
On Aug 20, 5:32 pm, mackdaddy315 <mackdaddy...@hotmail.com> wrote:

> My box 12.2.2.44 with netmask of 255.255.255.0 on eth2
>
> One of the IP's I need to talk to: 20.20.3.44
>
> Subnet IP and other sit: 20.20.3.0/24
>
> Router Address I was told to use: 10.10.4.1
>
> My guess is that route is complaining since the gateway is not in the
> subnet I am trying to reach. But I am told that this is the correct
> address to use.
> I have read a couple posts that say I maybe should look at using the
> ip command to get this working?


Think about it this way. You're trying to get a letter to Poland. To
do that, the letter needs to go in the mailbox. Telling your mom where
the nearest mailbox is would help her send the letter. Telling her
which post office in Poland delivers to the final street address does
not help her one bit.

That there is a router somewhere with the address 10.10.4.1 that knows
how to reach 20.20.3.0/24 is of no use to your computer. Your
computers needs to know what *IT* should do with packets bound for
20.20.3.0/24, and you haven't told it. Since it can't send packets
directly to 10.10.4.1, telling it that 10.10.4.1 can send packets to
20.20.3.0/24 is of no help.

DS

 
Reply With Quote
 
Mark Hobley
Guest
Posts: n/a

 
      08-21-2007, 02:08 PM
mackdaddy315 <(E-Mail Removed)> wrote:

> Router Address I was told to use: 10.10.4.1


Can you actually ping that router?

ping 10.10.4.1

Regards,

Mark.

--
Mark Hobley
393 Quinton Road West
QUINTON
Birmingham
B32 1QE

Email: markhobley at hotpop dot donottypethisbit com

http://markhobley.yi.org/

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Route Question Hal Vaughan Linux Networking 3 07-28-2007 07:52 AM
Wireless route/cable modem - newbie question Dave Spencer Broadband 2 10-15-2006 02:41 PM
(newbie) ROUTE target + SNAT - how can I do that? arielCo Linux Networking 1 11-22-2005 10:57 PM
newbie trouble with ip route Markus Haberstock Linux Networking 1 05-01-2004 10:32 AM
Route Question Dan Bent Linux Networking 4 01-30-2004 10:30 PM



1 2 3 4 5 6 7 8 9 10 11