New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

ip rule kernel support

Got problems with your B2 or B3? Share and get helped!
Post Reply
Mutek
Posts: 2
Joined: 13 Jan 2010, 02:49

ip rule kernel support

Post by Mutek »

Hi,

I'd like to set up support for multiple ADSL providers using iproute2, for which I need the ip rule add command in order to create forwarding rules.

When I try to use the ip rule ls command, I get:

bubba2:~# ip rule ls
RTNETLINK answers: Operation not supported
Dump terminated

This suggests that the kernel is missing something. Is there a kernel module which needs installing, or does this need a new kernel?

Many thanks,

Mark
asparak
Posts: 173
Joined: 08 Jun 2009, 07:38

Re: ip rule kernel support

Post by asparak »

Have you checked iproute is installed as a package?
It is available.

http://packages.debian.org/sid/iproute
Mutek
Posts: 2
Joined: 13 Jan 2010, 02:49

Re: ip rule kernel support

Post by Mutek »

Hi,

Yes, it's installed - see the aptitude listing below. My suspicion is that the appropriate kernel options for ip rule (policy tables) were not compiled in, or it's a kernel module I've not spotted. I can do ip route ls, ip addr and so on and all that is working fine.

Aptitude output here:

bubba2:~# aptitude show iproute
Package: iproute
State: installed
Automatically installed: no
Version: 20061002-3
Priority: optional
Section: net
Maintainer: Alexander Wirt <formorer@debian.org>
Uncompressed Size: 819k
Depends: libatm1, libc6 (>= 2.3.5-1), libdb4.3 (>= 4.3.28-1)
Recommends: iproute-doc
Conflicts: arpd
Provides: arpd
Description: Professional tools to control the networking in Linux kernels
This is `iproute', the professional set of tools to control the networking behavior in kernels 2.2.x and later.

At least, the options CONFIG_NETLINK and CONFIG_NETLINK_DEV (or CONFIG_RTNETLINK) must be compiled into the running
kernel.

This package is also known as iproute2 upstream and in some documentation.

Tags: admin::configuring, interface::commandline, protocol::ipv6, role::program, role::shared-lib, scope::utility,
use::routing
Valdis
Posts: 3
Joined: 21 Jun 2010, 15:14

Re: ip rule kernel support

Post by Valdis »

It seems to me, ip rule is not supported in current kernel.
Any reliable way to fix this?
FoggeR
Posts: 4
Joined: 08 Nov 2011, 03:21

Re: ip rule kernel support

Post by FoggeR »

Yep, +1 for this. We need that option enabled in kernel.
MouettE
Site admin
Posts: 345
Joined: 06 Oct 2011, 19:45

Re: ip rule kernel support

Post by MouettE »

I recompiled the kernel to enable this feature too, but it would be nice to have it in the official kernel also. The option is IP_ADVANCED_ROUTER.
Post Reply