Re: ip route get problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your answer.

I am so stupid, I forgot setting "ip_forward" to 1. This problem is solved.

But when I  execute the following command:
ip route get from 1.2.3.4 to 192.168.1.1 
it still failed.

Regards.

On Fri, 28 Jan 2005 10:43:02 +0200 (EET), Catalin(ux aka Dino) BOIE
<util@xxxxxxxxxxxxxxx> wrote:
> > Hello,
> Hello!
> 
> > I want to use "ip route get" to get the next hop ip, but I get the
> > following error:
> > RTNETLINK answers: Invalid argument
> >
> > my command line is:
> > ip route get from 1.2.3.4 to 192.168.1.1 iif eth0
> >
> > If I use: ip route get 192.168.1.1, it succeeded.
> >
> > I don't know why it failed when I add "from" and "iif" option.
> >
> > Please give me a hand. Thanks a lot.
> 
> What kernel? What iproute version?
> 
> Here, kernel 2.6.10 and iproute2-ss040831 works ok:
> root@simple1-M2:~# ip route get from 1.2.3.4 to 192.168.1.1 iif eth0
> 192.168.1.1 from 1.2.3.4 via 10.10.10.1 dev eth99  src 10.10.10.102
>         cache  mtu 1500 advmss 1460 metric10 64 iif eth0
> 
> >
> > Regards.
> >
> > weiminghu
> > 2005/1/28
> > -
> > : send the line "unsubscribe linux-net" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> ---
> Catalin(ux aka Dino) BOIE
> catab at deuroconsult.ro
> http://kernel.umbrella.ro/
>
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux