Re: [LARTC] route with different metric

Linux Advanced Routing and Traffic Control

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

 



On Wed, Sep 26, 2001 at 10:53:35PM +0200, bert hubert wrote:
> That sometimes happens - policy routing can help with that problem:
> 
> $ ip rule ls
> 0:	from all lookup local 
> 32765:	from 213.156.3.162 lookup pine 
> 32766:	from all lookup main 
> 32767:	from all lookup default 
> 
> $ ip route ls
> 195.190.241.81 dev ppp0  proto kernel  scope link  src 194.109.252.152 
> 213.156.3.160/28 dev eth1  proto kernel  scope link  src 213.156.3.162 
> 10.0.0.0/24 dev eth0  proto kernel  scope link  src 10.0.0.150 
> 192.168.0.0/24 dev eth2  proto kernel  scope link  src 192.168.0.1 
> default via 195.190.241.81 dev ppp0 
> 
> $ ip route ls table pine
> default via 213.156.3.161 dev eth1 
> 
> This forces packets to go the right way.

Ah!  I knew there must have been a way...  Thanks!

--
Adrian Chung (adrian at enfusion-group dot com)
http://www.enfusion-group.com/~adrian
GPG Fingerprint: C620 C8EA 86BA 79CC 384C E7BE A10C 353B 919D 1A17
[rogue.enfusion-group.com] 5:12pm up 55 days, 8:22, 4 users




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux