LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 01:59 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
 
Old 03-16-2007, 02:27 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
can you please post output from
route -n
and
iptables -L
iptables -t nat -L

btw - no need to put a "help me" in your thread name to make it seem more important than others...
you need help (which is obvious) hence you posted your question here
 
Old 03-16-2007, 09:20 PM   #3
pandanvn
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Original Poster
Rep: Reputation: 0
- iptables service is off
- this is the output of route -n cmd:
[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
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1.170
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
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 ~]#
 
Old 04-02-2007, 06:24 PM   #4
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Are YOU using ADSL PPPoE or ADSL PPPoA, or cable modem? What router is it, if YOU are using one. Show the output from "netconfig -a" "netconfig" "lspci" and "route -n". Then we start to figure the solution. Do YOU need the configuration for the hardware, or the steps to correct the setup? Sequence counts. Please post with us. IMO go to setup in YOUR router, and change the rule there. My router is Netgear. DG-834 NAR v2 and setup has a configurable page for rules.

Last edited by UhhMaybe; 04-02-2007 at 06:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 rule routing problem - help me pandanvn Linux - Networking 0 03-16-2007 12:03 AM
Policy routing using marks Xeta Linux - Networking 0 05-24-2006 06:22 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


All times are GMT -5. The time now is 07:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration