Skip to contentSkip to conversation

Problem setting up nexthop

LARTC Whit Blauvelt 1 participant 1 message Dec 5, 2001

lore
Share & tools
lore
#0 lore raw

Dear Alexey,

Sorry to bother you with this small question about nexthop syntax failing, but I haven't found anyone else who can answer it - including Matthew Marsh or those on the lartc mailing list. The problem, with 2.2.19 and 2.2.20 kernels and versions of iproute2 up to iproute2-2.2.4-now-ss001007 (the most recent that compiles for me), is that this command does not work:

# ip ro add default nexthop via 66.xx.yy.209 dev eth1 nexthop via 65.yy.xx.97 dev eth2
RTNETLINK answers: Invalid argument

This is despite the fact that adding these individually works fine:

# ip ro add default via 66.xx.yy.209 dev eth1
# ip ro ap via 65.yy.xx.97 dev eth2
# ip ro ls
66.xx.yy.208/28 dev eth1  proto kernel  scope link  src 66.xx.yy.210 
65.yy.xx.96/27 dev eth2  proto kernel  scope link  src 65.yy.xx.104 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.245 
default via 66.xx.yy.209 dev eth1 
default via 65.yy.xx.97 dev eth2 

My kernel has most networking options included. I include the config below.

Matthew Marsh reports that nexthop syntax works for him on a 2.2.13 kernel, but not on a 2.4.x system - there he sees the same error I do. Other people on the lartc list see the nexthop syntax work fine on 2.2.19 and 2.2.20 kernels. I am puzzled where the difference is, and have gotten nowhere by trial and error with kernel options. The only nonstandard patchs to my kernel are for ReiserFS, and those don't touch the networking code.

Thank you for any advice on how to pinpoint the problem, and of course for your generous work on iproute2.

Whit
@transpect.com

PS: My kernel config:

# Networking options
#
CONFIG_PACKET=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_FIREWALL=y
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_RTNETLINK=y < tried deleting these redundant lines
CONFIG_NETLINK=y < (artifact of make menuconfig) - didn't help
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IP_ROUTE_LARGE_TABLES=y
CONFIG_IP_ROUTE_NAT=y
# CONFIG_IP_PNP is not set
CONFIG_IP_FIREWALL=y
# CONFIG_IP_FIREWALL_NETLINK is not set
CONFIG_IP_ROUTE_FWMARK=y
# CONFIG_IP_TRANSPARENT_PROXY is not set
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_ICMP=y
CONFIG_IP_MASQUERADE_MOD=y
CONFIG_IP_MASQUERADE_IPAUTOFW=m
CONFIG_IP_MASQUERADE_IPPORTFW=m
CONFIG_IP_MASQUERADE_MFW=m
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
CONFIG_IP_ALIAS=y
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y
# CONFIG_INET_RARP is not set
CONFIG_SKB_LARGE=y
# CONFIG_IPV6 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_BRIDGE is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_LLC is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
# CONFIG_CPU_IS_SLOW is not set

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/