Re: Multiple default gateways in Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 22 Oct 2001, Francisco Jen Ou wrote:

> Is it possible to configure multiple AND functioning default gateways on a
> multi-homed Linux server (kernel 2.2.17), one gateway per network interface?

It is possible to select the default gateway based on the source-address
used in the packet, using the tool "ip" and the kernel-feature
policy-routing.

I'm using:

ip rule add from x.y.z.144/28 lookup 200
ip route add default via x.y.z.1 dev cipcb0 table 200

to route all answers to my tunneld static-ips back through the tunnel, and
not via the normal (dynip) pppoe.

c'ya
sven

-- 

The Internet treats censorship as a routing problem, and routes around it.
(John Gilmore on http://www.cygnus.com/~gnu/)

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux