All of lore.kernel.org
 help / color / mirror / Atom feed
* ip ro get problem
@ 2004-09-15 10:45 Sandro Dentella
  2004-09-15 11:53 ` Jason Opperisano
  2004-09-15 13:51 ` Alistair Tonner
  0 siblings, 2 replies; 4+ messages in thread
From: Sandro Dentella @ 2004-09-15 10:45 UTC (permalink / raw)
  To: iptables

Hi all,

I'm using ip route get to debug a routing probelm and I get:

    root@fw-euronet argo # ip route get 192.168.254.10 
    192.168.254.10 dev eth0  src 192.168.254.1 
	cache  mtu 1500 advmss 1460
    root@fw-euronet argo # ip route get 192.168.254.10 from 192.168.5.2
    RTNETLINK answers: Invalid argument


What does really mean "RTNETLINK answers: Invalid argument", 


I get the same error w/

    root@fw-euronet argo # ip route get 192.168.254.10 iif tun0
    RTNETLINK answers: Invalid argument

My rules are:
    root@fw-euronet argo # ip ru li
    0:      from all lookup local 
    30:     from all iif tun0 lookup adsl 
    38:     from 192.168.254.10 lookup hdsl 
    40:     from 217.58.51.160/27 lookup hdsl 
    41:     from 81.121.243.248/30 lookup adsl 
    52:     from all iif eth0 lookup adsl 
    53:     from all iif eth2 lookup adsl 
    32766:  from all lookup main 
    32767:  from all lookup default 

where you can see that tun0, where 192.168.5.0/24 is, should look table adsl
that is define this way:

    root@fw-euronet argo # ip ro ls table adsl
    81.121.243.248/30 dev eth3  scope link  src 81.121.243.250 
    217.58.51.160/27 dev eth1  scope link  src 217.58.51.162 
    192.168.5.0/24 dev tun0  scope link 
    192.168.1.0/24 dev eth2  scope link  src 192.168.1.1 
    192.168.254.0/24 dev eth0  scope link  src 192.168.254.1 
    default via 81.121.243.249 dev eth3 

   
TYA
sandro
*:-)


-- 
Sandro Dentella  *:-)
e-mail: sandro@e-den.it 
http://www.tksql.org                    TkSQL Home page - My GPL work


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ip ro get problem
  2004-09-15 10:45 ip ro get problem Sandro Dentella
@ 2004-09-15 11:53 ` Jason Opperisano
  2004-09-15 13:51 ` Alistair Tonner
  1 sibling, 0 replies; 4+ messages in thread
From: Jason Opperisano @ 2004-09-15 11:53 UTC (permalink / raw)
  To: netfilter

On Wed, 2004-09-15 at 06:45, Sandro Dentella wrote:
> Hi all,
> 
> I'm using ip route get to debug a routing probelm and I get:
> 
>     root@fw-euronet argo # ip route get 192.168.254.10 
>     192.168.254.10 dev eth0  src 192.168.254.1 
> 	cache  mtu 1500 advmss 1460
>     root@fw-euronet argo # ip route get 192.168.254.10 from 192.168.5.2
>     RTNETLINK answers: Invalid argument
> 
> 
> What does really mean "RTNETLINK answers: Invalid argument", 

means that the IP address 192.168.254.10 does not exist on this host.

> 
> 
> I get the same error w/
> 
>     root@fw-euronet argo # ip route get 192.168.254.10 iif tun0
>     RTNETLINK answers: Invalid argument
> 
> My rules are:
>     root@fw-euronet argo # ip ru li
>     0:      from all lookup local 
>     30:     from all iif tun0 lookup adsl 
>     38:     from 192.168.254.10 lookup hdsl 
>     40:     from 217.58.51.160/27 lookup hdsl 
>     41:     from 81.121.243.248/30 lookup adsl 
>     52:     from all iif eth0 lookup adsl 
>     53:     from all iif eth2 lookup adsl 
>     32766:  from all lookup main 
>     32767:  from all lookup default 
> 
> where you can see that tun0, where 192.168.5.0/24 is, should look table adsl
> that is define this way:
> 
>     root@fw-euronet argo # ip ro ls table adsl
>     81.121.243.248/30 dev eth3  scope link  src 81.121.243.250 
>     217.58.51.160/27 dev eth1  scope link  src 217.58.51.162 
>     192.168.5.0/24 dev tun0  scope link 
>     192.168.1.0/24 dev eth2  scope link  src 192.168.1.1 
>     192.168.254.0/24 dev eth0  scope link  src 192.168.254.1 
>     default via 81.121.243.249 dev eth3 
> 
>    
> TYA
> sandro
> *:-)
-- 
Jason Opperisano <opie@817west.com>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ip ro get problem
  2004-09-15 10:45 ip ro get problem Sandro Dentella
  2004-09-15 11:53 ` Jason Opperisano
@ 2004-09-15 13:51 ` Alistair Tonner
  2004-09-15 14:03   ` Sandro Dentella
  1 sibling, 1 reply; 4+ messages in thread
From: Alistair Tonner @ 2004-09-15 13:51 UTC (permalink / raw)
  To: iptables

On September 15, 2004 06:45 am, Sandro Dentella wrote:
> Hi all,
>
> I'm using ip route get to debug a routing probelm and I get:
>
>     root@fw-euronet argo # ip route get 192.168.254.10
>     192.168.254.10 dev eth0  src 192.168.254.1
> 	cache  mtu 1500 advmss 1460
>     root@fw-euronet argo # ip route get 192.168.254.10 from 192.168.5.2
>     RTNETLINK answers: Invalid argument
>
>
> What does really mean "RTNETLINK answers: Invalid argument",
>
<< Snippage >>

	Very good question -- and althought there might be someone here who could 
answer this (and I too would like to know since I'm now mucking with iproute2 
and a dual route system) .. But this question would best be asked on a LARTC 
mailing list :

	subscribe here:
	http://mailman.ds9a.nl/mailman/listinfo/lartc

	archive here:
	http://mailman.ds9a.nl/pipermail/lartc/


	Good luck !

	Alistair Tonner


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ip ro get problem
  2004-09-15 13:51 ` Alistair Tonner
@ 2004-09-15 14:03   ` Sandro Dentella
  0 siblings, 0 replies; 4+ messages in thread
From: Sandro Dentella @ 2004-09-15 14:03 UTC (permalink / raw)
  To: Alistair Tonner; +Cc: iptables

> << Snippage >>
> 
> 	Very good question -- and althought there might be someone here who could 
> answer this (and I too would like to know since I'm now mucking with iproute2 
> and a dual route system) .. But this question would best be asked on a LARTC 
> mailing list :


Sorry for that! I'm subscribed to both lists and I swapped the addresses


sandro
*;-)


-- 
Sandro Dentella  *:-)
e-mail: sandro@e-den.it 
http://www.tksql.org                    TkSQL Home page - My GPL work


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-15 14:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 10:45 ip ro get problem Sandro Dentella
2004-09-15 11:53 ` Jason Opperisano
2004-09-15 13:51 ` Alistair Tonner
2004-09-15 14:03   ` Sandro Dentella

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.