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
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
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
Re: ip rule kernel support
Have you checked iproute is installed as a package?
It is available.
http://packages.debian.org/sid/iproute
It is available.
http://packages.debian.org/sid/iproute
Re: ip rule kernel support
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
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
Re: ip rule kernel support
It seems to me, ip rule is not supported in current kernel.
Any reliable way to fix this?
Any reliable way to fix this?
Re: ip rule kernel support
Yep, +1 for this. We need that option enabled in kernel.
Re: ip rule kernel support
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.