Davidedi
asked on
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
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
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.
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.
ASKER
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
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
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.