On Wed, 30 Jun 1999, Samuli Kaski wrote:

[ Replying to myself since I was able to solve the problem and I
received no replys so maybe this will help someone ]

> ISP1-NICIP  *          255.255.255.255  UH  0  0  0  eth1
> ISP2-NICIP  *          255.255.255.255  UH  0  0  0  eth0
> ISP2-NET    *          255.255.255.248  U   0  0  0  eth0
> ISP1-NET    *          255.255.255.0    U   0  0  0  eth1
> 127.0.0.0   *          255.0.0.0        U   0  0  0  lo
> default     ISP1-GWIP  0.0.0.0          UG  0  0  0  eth1
> 
> In this configuration incoming connections for ISP1-NICIP work but for
> ISP2-NICIP the return packets get routed through ISP1-GWIP (which is
> obviously incorrect).

I was able to solve my routing problems with Alexey's iproute2 package
and the appropriate kernel (2.2.10) options. The kernel options follow

#
# Networking options
#
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_TOS=y
CONFIG_IP_ROUTE_VERBOSE=y

#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y

And the commands given to the ip-tool (I removed the default gateway
from Red Hat's /etc/sysconfig/network)

/sbin/ip rule add from ISP1-NET/29 table 1
/sbin/ip rule add from ISP2-NET/24 table 2
/sbin/ip route add 0/0 via ISP1-GWIP table 1
/sbin/ip route add 0/0 via ISP2-GWIP table 2
/sbin/ip route add 0/0 via ISP2-GWIP

Hope this helps someone,

        Samuli



-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to