From: "Vishal Gandhi Kommineni" Date: Wed, 21 Jan 2004 18:36:09 +0000 Subject: [LARTC] iproute2 source routing problem Message-Id: <002401c3e0bd$14866a60$0b6f3fca@southernonline.net> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0021_01C3E07A.064198A0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C3E07A.064198A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I am using a redhat 8.x linux box configured with zebra routing software = which is also configured with ospfd I have 2 backbone routers running ospf connected to different isp's I have 3 local routers also running ospf within themselfs and also with = the 2 backbone routers (all are linux boxes) router A - backbone router 1 router B - backbone router 2 router C - local router 1 (has 3 subnets routed via it) router D - local router 2 (has 2 subnets routed via it) router E - local router 3 (has 5 subnets routed via it) my pc connected to local router D whose default gw is router A In our local router we are trying to have policy routing without any policy routing when I try to trace ip in the subnet behind = router C the next hop is learnt by the ospf routing entry in the main = table and the packet is landing in router C while when I try to trace = yahoo.com the packet is landing into router A and reaching yahoo.com but when I am trying to deploy policy route-map in which if I say = packets originating from X network's default gw is router B I find that = the packets are always landing on the router B even if the destination = is know network via ospf. I deployed policy routing as below in my linux box (router D) echo "200 GWA" > > /etc/iproute2/rt_tables /sbin/ip rule add from x.x.x.x/28 table GWA /sbin/ip route add default via y.y.y.1 table GWA when I try to see the main table by giving the command below ip route list table main I find all the ospf routes in that table ended with the default gw entry when I see the table GWA I find only the default next hop entry ie., = router B (y.y.y.1) is there any way of dynamically updating even in GWA table with the ospf = entries followed by default next hop y.y.y.1 Kindly help me in this regard Visha ------=_NextPart_000_0021_01C3E07A.064198A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I am using a redhat 8.x linux box = configured with=20 zebra routing software which is also configured with ospfd
I have 2 backbone routers running=20 ospf connected to different isp's
I have 3 local routers also running = ospf within=20 themselfs and also with the 2 backbone routers  (all are linux=20 boxes)
 
router A -  backbone router = 1
router B -  backbone router = 2
 
router C - local router 1 (has 3 = subnets routed via=20 it)
router D - local router 2 (has 2 = subnets routed via=20 it)
router E - local router 3 (has 5 = subnets routed via=20 it)
 
my pc connected to local = router D whose=20 default gw is router A
In our local router we are trying to = have policy=20 routing
 
 
without any policy routing when I try = to trace ip=20 in the subnet behind router C the next hop is learnt by the ospf routing = entry=20 in the main table and the packet is landing in router C while when I try = to=20 trace yahoo.com the packet is landing into router A and reaching=20 yahoo.com
 
but when I am trying to deploy policy = route-map in=20 which if I say packets originating from X network's default gw is router = B I=20 find that the packets are always landing on the router B even if the = destination=20 is know network via ospf.
 
I deployed policy routing as below in = my linux box=20 (router D)
 
echo "200 GWA" > >=20 /etc/iproute2/rt_tables
/sbin/ip rule add from x.x.x.x/28 = table=20 GWA
/sbin/ip route add default = via y.y.y.1 table=20 GWA
 
when I try to see the main table by = giving the=20 command below
 
ip route list table main
 
I find all the ospf routes in that = table ended with=20 the default gw entry
 
when I see the table GWA I find only = the default=20 next hop entry ie., router B (y.y.y.1)
 
is there any way of dynamically = updating even in=20 GWA table with the ospf entries followed by default  next hop=20 y.y.y.1
 
Kindly help me in this = regard
 
 
Visha
 
------=_NextPart_000_0021_01C3E07A.064198A0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/