Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RTNETLINK answers: Invalid argument when adding route... help!

2,608 views
Skip to first unread message

Rowan

unread,
Nov 16, 2009, 4:05:01 PM11/16/09
to
could use a hand. Trying to set up a multiple provider net. basically
following the iproute2 howto. I keep getting the following error when
I enter the new route

ip route add 68.164.***.234/29 dev eth0 src 68.164.***.233 table
telness
RTNETLINK answers: Invalid argument

Local Net
eth1 Link encap:Ethernet HWaddr 00:C0:9F:19:DA:3F
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:
255.255.255.0

Internet
eth0 Link encap:Ethernet HWaddr 00:10:4B:C6:0C:98
inet addr:68.164.***.238 Bcast:68.164.192.239 Mask:
255.255.255.248
eth2 Link encap:Ethernet HWaddr 00:04:75:E6:73:9F
inet addr:108.0.***.60 Bcast:108.0.***.255 Mask:
255.255.255.0

Rowan

unread,
Nov 16, 2009, 4:07:17 PM11/16/09
to
On Nov 16, 1:05 pm, Rowan <yaard...@gmail.com> wrote:
> could use a hand. Trying to set up a multiple provider net. basically
> following the iproute2 howto. I keep getting the following error when
> I enter the new route
>
> ip route add 68.164.***.234/29 dev eth0 src 68.164.***.233 table
> telness
> RTNETLINK answers: Invalid argument
>

correction
ip route add 68.164.***.234/29 dev eth0 src 68.164.***.238 table
telness

David Schwartz

unread,
Nov 17, 2009, 1:22:43 AM11/17/09
to
On Nov 16, 1:07 pm, Rowan <yaard...@gmail.com> wrote:

> correction
> ip route add 68.164.***.234/29 dev eth0 src 68.164.***.238 table
> telness

Is 68.164.***.238 a *local* address? If not, you can't use it as a
local source.

DS

Pascal Hambourg

unread,
Nov 17, 2009, 5:20:28 AM11/17/09
to
Hello,

Rowan a ᅵcrit :
>
> ip route add 68.164.***.234/29 dev eth0 src 68.164.***.238 table


> telness
> RTNETLINK answers: Invalid argument

68.164.***.234/29 is not a valid network prefix. 68.164.***.232/29 is.

$ ipcalc 68.164.***.234/29
Address: 68.164.***.234 01000100.10100100.********.11101 010
Netmask: 255.255.255.248 = 29 11111111.11111111.11111111.11111 000
Wildcard: 0.0.0.7 00000000.00000000.00000000.00000 111
=>
Network: 68.164.***.232/29 01000100.10100100.********.11101 000
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
HostMin: 68.164.***.233 01000100.10100100.********.11101 001
HostMax: 68.164.***.238 01000100.10100100.********.11101 110
Broadcast: 68.164.***.239 01000100.10100100.********.11101 111
Hosts/Net: 6 Class A

Pascal Hambourg

unread,
Nov 17, 2009, 5:36:21 AM11/17/09
to
David Schwartz a ᅵcrit :

>
> Is 68.164.***.238 a *local* address?

Rowan a ᅵcrit :


>
> eth0 Link encap:Ethernet HWaddr 00:10:4B:C6:0C:98
> inet addr:68.164.***.238 Bcast:68.164.192.239 Mask:
> 255.255.255.248

Looks like it is.

0 new messages