From: Snow, Tim (timothy.snow@eds.com)
Date: Tue Dec 02 2003 - 05:30:24 GMT-3
By default BGP will not redistribute BGP internal routes into an IGP. So
your "redistribute BGP" will only get external BGP routes (IE, routes with
an AD of 20) but if you have the "bgp redistribute-internal" it will take
IBGP learned routes and allow them to be redistributed into your IGP (isis,
ospf, etc)
Table-map's allow you to modify metric and tag values for bgp routes. Such
like if you learned a route via an ebgp peer, you could use a table-map to
set a tag on certain routes but not others. It acts upon all routes from
bgp being used in the RT, kind of like how you'd use a route-map for a
particular neighbor to modify attributes.
These commands can be used at the same time but they can function separately
too.
Tim
#12042
-----Original Message-----
From: Paul Chen [mailto:cpjchen@starhub.net.sg]
Sent: Tuesday, December 02, 2003 3:07 AM
To: ccielab@groupstudy.com
Subject: BGP into IGP
Hi,
I was wondering if anyone could tell me when to use the following commands:
bgp redistribute-internal and table-map.
According to Jeff Doyle TCP/IP vol 2, table-map will preserve correct AS
path and origin info - page 256 to 259.
In the book's example the command 'bgp redistribute-internal' is not used
even though bgp is redistributed into ospf.
Can these 2 commands work together or independently of each other ?
Will it preserve AS path and Origin info too ?
----------------------------------------------------------------------------
router ospf 300
redistribute bgp 1300
router bgp 1300
redistiriubte ospf 300 route-map get-tag
route-map get-tag permit 10
set as-path tag
-----------------------------------------------
router ospf 300
redistribute bgp 1300
router bgp 1300
table-map set-tag
redistribute ospf 300
route-map set-tag permit 10
match as-path 1
set automatic-tag
-------------------------------------------------------------------------
router ospf 300
redistribute bgp 200
!
router bgp 200
bgp redistribute-internal
Any help is much appreciated.
Thanks.
Paul
This archive was generated by hypermail 2.1.4 : Sat Jan 03 2004 - 08:25:34 GMT-3