BGP default route to eigrp

Hi

Q1  

I have a Cisco 4500 switch running eigrp and BGP. The switch has learnt the default route from the upstream Cisco router which is on a different AS. i e the BGP AS on the router is 65001 and the switch is 65000. The router passes the default route down so the switch has the default router learnt from an external GP peer.  The issue I have is trying to inject the default route into the eigrp process to pass it down to eigrp peers under the 4500. I have read that you can only distribute the default route from internal iBGP to eigrp which means the router and switch would need to be in the same AS which is not possible.  Is there any way to do this from BGP down into eigrp on the same device when the default route is learned from eBPG?  Will the network command under eigrp work such as using network 0.0.0.0?  

Q2

To redistribute eigrp learnt routes from the routing table into BGP can I use a route map with MED  into BGP or do I have to say redistribute eigrp into BGP directly.   As below sample BGP config I think will work using a route map. Also I want to manipulate the incoming traffic as we have multiple paths in. The access 10 and ip range 10.122.32.0 0.0.15.255 is the routes in the local routing table learnt from eigrp also so it does exiting in the routing table



Router bgp 64670
 no synchronization
 bgp router id (loopback)
 bgp log-neighbor-changes
 neighbor 10.122.47.250  remote-as 64669
 neighbor 10.122.47.250 weight 100
 neighbor 10.122.47.250  route-map PREF_PATH out
 no auto-summary

route-map PREF_PATH permit 10
 match ip address 10
 set metric 100

route-map PREF_PATH permit 20
 set metric 200

access-list 10 permit 10.122.32.0 0.0.15.255
LVL 1
DavidediAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nayyar HH (CCIE RS)Network ArchitectCommented:
Q1
I think you should be able to redistribute default route learnt via eBGP into EIGRP without any additional configuration. If this was iBGP you would need the "bgp redistribute-internal" command - this needs to be used with caution as could cause a routing loop. Are you filtering redistributed routes in any way?

Q2
Yes, you have to explicitly reditribute before EIGRP routes can be made available to BGP for advertisement and metric manipulation.
602650528Commented:
Q1. You can redistibute eBGP into eigrp so just do redistribution on the same switch and make sure you set the metric for the redistubutred routes else it wont work.   Example;

router eigrp 100
 redistribute bgp 65000 metric 1000000 100 255 1 1500
 network 192.168.0.0 0.0.255.255
 no auto-summary

Q2.  Your config only contains one neigbour so it isn't clear you actually have multiple entry into your AS. Also redistribution of your eigrp internal routes is totally differetnt from using  MED to influence incoming traffic into your AS.  
   What are you trying to achieve anyway with influencing your incoming traffic ? is it load-balancing or failover? Let us know and then we can provide a solution but meanwhile that config you pasted wont work for anything.
DavidediAuthor Commented:
Hi

Thanks for the response and yes there are two neighbours on the 4500 as below which is the updated config that is why have set the weight 100 to one. And yes we are trying to redirect traffic into the AS on certain routers depending on what IP address it is going to so we are using MED for this. Also my question is if the 4500 has the routes learnt from eigrp in its local routing table do I still have to redistribute into BGP these learnt eigrp routes for them to be seen? I thought if they are in the routing   table then you can send them out using the route map statement within BGP to the next AS??

Also on question one I only want to distribute the default route which is learnt from eBGP peer upstream so could I just use the network command with 0.0.0.0/0 into eigrp using a route map?


CISCO 4500 - EBGP to two cisco 3800 routers

Router bgp 64670
 no synchronization
 bgp router id (loopback)
 bgp log-neighbor-changes
 neighbor 10.122.47.250  remote-as 64669
 neighbor 10.122.47.250 weight 100
 neighbor 10.122.47.250  route-map PREF_PATH out
 neighbor 10.122.47.249  remote-as 64669
 neighbor 10.122.47.249  route-map PREF_PATH out
 no auto-summary

route-map PREF_PATH permit 10
 match ip address 10
 set metric 100

route-map PREF_PATH permit 20
 set metric 200

access-list 10 permit 10.122.32.0 0.0.15.255


DavidediAuthor Commented:
Also just to clarify the two 3800 routers are redistributing again into the ISP routing table so we are doing the same on our 3800 routers. So the sequence is below

The one 4500 running EIGRP and BGP. Eigrp to local 4500 under it and learning eigrp routes from the other 4500. Bgp to the two 3800 routers using eBGP as above config posted

From the two 3800's which are peering with eth 4500 they are also peering with two IPS 3800s again using EBGP on as 65532


602650528Commented:
" Also my question is if the 4500 has the routes learnt from eigrp in its local routing table do I still have to redistribute into BGP these learnt eigrp routes for them to be seen? I thought if they are in the routing   table then you can send them out using the route map statement within BGP to the next AS??".

Yes you have to redistirbute. The 4500 uses BGP protocol to exchange routes with your ISP and BGP protocol exchange routes using the BGP table which is different from the routing table. The best BGP routes from the BGP table are the ones selected into the local router routing table to be used by the local router. So if you want the eigrp routes in the local routing table to be advertised to the external BGP neigbour, you have to get these routes into the BGP table and that is by redistribution. Every protocol has such table ... RIP has RIP database, OSPF has ospf database and eigrp has eigrp topology table. If they all have routes to same destination, administrative distance will determine which of them is installed in the routing table.

"Also on question one I only want to distribute the default route which is learnt from eBGP peer upstream so could I just use the network command with 0.0.0.0/0 into eigrp using a route map?"

Redistribute the BGP routes from your ISP into eigrp as i stated in my first post but restrict the redistributed routes to only default route using the route-map.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.