Networking Forums

Networking Forums > Computer Networking > Linux Networking > rtnetlink: network unreachable for Routing for multiple uplinks using ip route add

Reply
Thread Tools Display Modes

rtnetlink: network unreachable for Routing for multiple uplinks using ip route add

 
 
joerg sauer
Guest
Posts: n/a

 
      04-18-2005, 04:39 AM
Dear all,
after playing around and having the same problems on all linux
versions I have at hand and not finding a solution in the net I ask
for your help.

Problem: Want to set up a router with multiple uplinks to the
internet.
Checked documentation at several places, but all examples given will
not work!
Always get rtnetlink: network is unreachable.

Have tried this with IPCop 1.4.5, SUSE Prof. 9.1 same effect.

OK now the details:

For ISP 1 (all IP addresses not the real ones!)
eth0: 10.138.233.227
NETMASK: 255.255.255.240
GW: 10.138.233.226

For ISP2
eth1 10.51.238.226
NETMASK: 255.255.255.240
GW: 10.51.238.226

/etc/rt_tables: (added at end)
200 T1
201 T2

Routing table empty but loopback device when I start:
ip route add 10.138.233.224/28 dev eth0 src 10.138.233.227 table T1
ip route add default via 10.138.233.226 table T1
Error Message: rtnetlink: network is unreachable

ip route add 10.51.238.224/28 dev eth1 src 10.51.238.226 table T2
ip route add default via 10.51.238.225 table T2
Error Message: rtnetlink: network is unreachable


If I use the commands without the table T1/T2 I am able to set the
route. But later it doesn't work.
I took the commands from
Linux Advanced Routing & Traffic Control HOWTO
Chapter 4.2
And crosschecked with
Redundant Internet Connections Using Linux from
http://www.samag.com/documents/s=182...201h/0201h.htm

Same effect.
Kernel on Suse9.1: 2.6.4-52
Kernel on IPCop: 2.4.29

Kernel configured with:
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y

ip version:
Suse: iproute2-ss020116
ipcop: iproute2-ss010824

Any clues?

Thanks in advance
Joerg
 
Reply With Quote
 
 
 
 
Jarek Poplawski
Guest
Posts: n/a

 
      04-18-2005, 09:20 AM
On 2005-04-18, joerg sauer <(E-Mail Removed)> wrote:
> Dear all,
> after playing around and having the same problems on all linux
> versions I have at hand and not finding a solution in the net I ask
> for your help.
>
> Problem: Want to set up a router with multiple uplinks to the
> internet.
> Checked documentation at several places, but all examples given will
> not work!
> Always get rtnetlink: network is unreachable.
>
> Have tried this with IPCop 1.4.5, SUSE Prof. 9.1 same effect.
>
> OK now the details:
>
> For ISP 1 (all IP addresses not the real ones!)
> eth0: 10.138.233.227
> NETMASK: 255.255.255.240
> GW: 10.138.233.226
>
> For ISP2
> eth1 10.51.238.226
> NETMASK: 255.255.255.240
> GW: 10.51.238.226
>
> /etc/rt_tables: (added at end)
> 200 T1
> 201 T2
>
> Routing table empty but loopback device when I start:


It is strange.

Maybe first you should try:

ip addr add 10.138.233.227/28 dev eth0 brd +

etc.

Jarek P.
 
Reply With Quote
 
Coenraad Loubser
Guest
Posts: n/a

 
      04-18-2005, 01:01 PM

>
> It is strange.
>
> Maybe first you should try:
>
> ip addr add 10.138.233.227/28 dev eth0 brd +
>
> etc.
>
> Jarek P.


Can you briefly explain what it does? Or do we have to read the man?
 
Reply With Quote
 
joerg sauer
Guest
Posts: n/a

 
      04-19-2005, 01:29 AM
Hi, and thanks for your reply, but
> >
> > It is strange.


Actually I tried allmost everything allready.
I first thought about some wrong configuration therefore I removed
every bit of it and started to configure the system by issueing
commands from the console like
ip addr add 10.138.233.227/28 brd 10.138.233.239 dev eth1
and so on. But always I ended up with the error message when I was
using ip route add with the 'table ' part.

Somebody who has any clues?

Besides I searched google before and found some articles discussing
maybe the same issue but unfortunately in polish language, which I do
not understand :-(

So if somebody polish speaking guy can help out, would be great
(pl.comp.os.linux.networking)

Thanks
Joerg
 
Reply With Quote
 
Jarek Poplawski
Guest
Posts: n/a

 
      04-19-2005, 10:10 AM
On 2005-04-18, Coenraad Loubser <(E-Mail Removed)> wrote:
>
>>
>> It is strange.
>>
>> Maybe first you should try:
>>
>> ip addr add 10.138.233.227/28 dev eth0 brd +
>>
>> etc.
>>
>> Jarek P.

>
> Can you briefly explain what it does? Or do we have to read the man?


Routing table is seldom "empty but loopback device", and if your
network device isn't configured there are messages like this.
But it could be something else too.

Jarek P.
 
Reply With Quote
 
Jarek Poplawski
Guest
Posts: n/a

 
      04-19-2005, 10:27 AM
On 2005-04-19, joerg sauer <(E-Mail Removed)> wrote:
> Hi, and thanks for your reply, but
>> >
>> > It is strange.

>
> Actually I tried allmost everything allready.
> I first thought about some wrong configuration therefore I removed
> every bit of it and started to configure the system by issueing
> commands from the console like
> ip addr add 10.138.233.227/28 brd 10.138.233.239 dev eth1
> and so on. But always I ended up with the error message when I was
> using ip route add with the 'table ' part.
>
> Somebody who has any clues?


If you could show what is your ifconfig and route -n?

>
> Besides I searched google before and found some articles discussing
> maybe the same issue but unfortunately in polish language, which I do
> not understand :-(
>
> So if somebody polish speaking guy can help out, would be great
> (pl.comp.os.linux.networking)


Could you add links or paste some text?

Jarek P.
 
Reply With Quote
 
Jarek Poplawski
Guest
Posts: n/a

 
      04-19-2005, 11:13 AM
On 2005-04-19, joerg sauer <(E-Mail Removed)> wrote:
> Hi, and thanks for your reply, but
>> >
>> > It is strange.

>
> Actually I tried allmost everything allready.
> I first thought about some wrong configuration therefore I removed
> every bit of it and started to configure the system by issueing
> commands from the console like
> ip addr add 10.138.233.227/28 brd 10.138.233.239 dev eth1


I hope it was eth0?

Jarek P.
 
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
Re: RTNETLINK answers: Invalid argument when adding route... help! Pascal Hambourg Linux Networking 0 11-17-2009 09:36 AM
Re: RTNETLINK answers: Invalid argument when adding route... help! Pascal Hambourg Linux Networking 0 11-17-2009 09:20 AM
ipchains, NAT, multiple uplinks meshko@gmail.com Linux Networking 2 01-21-2008 09:57 AM
source based routing - network unreachable hobosalesman@gmail.com Linux Networking 3 07-08-2006 12:18 AM
Routing over multiple uplinks Udo Giacomozzi Linux Networking 2 05-03-2006 07:18 AM



1 2 3 4 5 6 7 8 9 10 11