LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2007, 12:03 AM   #1
pandanvn
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
policy rule routing problem - help me


Hi all,

This is my current configuration on CentOS 4.4

[root@t106centos ~]# ip route list table 1
default via 192.168.1.9 dev eth1.501
[root@t106centos ~]# ip route list table 2
default via 192.168.1.17 dev eth1.500
[root@t106centos ~]# ip rule list
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
32900: from 192.168.1.14 lookup 1
32901: from 192.168.1.10 lookup 1
32902: from 192.168.1.18 lookup 1
32903: from 10.199.9.250 lookup 1
32904: from 172.16.255.1 lookup 1
32905: from 192.168.2.250 lookup 1
32910: from all lookup 2
[root@t106centos ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.1.16 0.0.0.0 255.255.255.248 U 0 0 0 eth1.500
192.168.1.8 0.0.0.0 255.255.255.248 U 0 0 0 eth1.501
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.200
10.199.9.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.109
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.170
172.16.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.171
172.16.255.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1.501
[root@t106centos ~]# ip addr list
1: lo: 127.0.0.1/8
2: eth1: 172.16.255.1/24
3: eth1.109: 10.199.9.250/24
4: eth1.170: 172.16.0.1/24
5: eth1.171: 172.16.1.1/24
6: eth1.200: 192.168.2.250/24
7: eth1.500: 192.168.1.18/29
8: eth1.501: 192.168.1.10/29

- Now the package from this host ( t106centos ) will match the rule 32910, get route from route table 2 , pass the gateway 192.168.1.17 for external destination
- How can we force the packages from this host ( t106centos ) go to external by passing the gateway 192.168.1.9 - get route from route table 1???
- Pls help me to solve this case. Tks so much
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Policy routing using marks Xeta Linux - Networking 0 05-24-2006 06:22 PM
routing and ip rule mebaro Linux - Networking 4 01-03-2006 10:48 PM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
[help] RH Network Routing Policy princenux Linux - Networking 1 07-04-2004 10:34 AM
Policy routing for multiple ppp connections paulos Linux - Networking 1 06-20-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration