# BGP and EIGRP redistribution question

**URL:** <https://forum.networklessons.com/t/bgp-and-eigrp-redistribution-question/30587>\
**Category:** BGP\
**Created:** [September 14, 2022, 3:01pm UTC](https://forum.networklessons.com/t/bgp-and-eigrp-redistribution-question/30587 "2022-09-14T15:01:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ncc99999](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@ncc99999](https://forum.networklessons.com/u/ncc99999)\
**Post date:** [September 14, 2022, 3:01pm UTC](https://forum.networklessons.com/t/bgp-and-eigrp-redistribution-question/30587/1 "2022-09-14T15:01:07Z")

</div>

Hi Everyone,

On my production router, I have this setup:

```auto
prod_router#sh run | Sec router
router eigrp PROD
 !
 address-family ipv4 unicast autonomous-system 101
  !
  topology base
   redistribute connected
   redistribute static metric 10000 10 255 255 150 route-map static-to-eigrp
   redistribute bgp 65001 metric 100 1 255 1 1500
  exit-af-topology
  network 10.19.3.0 0.0.0.255
 exit-address-family
 !

router bgp 65001
 bgp log-neighbor-changes
 neighbor 192.65.0.13 remote-as 3549
 neighbor 192.65.0.13 version 4
 neighbor 192.65.0.13 timers 5 15
 !
 address-family ipv4
  network 10.19.3.0 mask 255.255.255.0
  redistribute eigrp 101 metric 100 route-map eigrp-to-bgp
  neighbor 192.65.0.13 activate
  neighbor 192.65.0.13 next-hop-self
 exit-address-family
 !
prod_router#sh run | sec ip route
ip route 172.16.5.0 255.255.255.0 172.19.3.1 200
ip route 172.16.6.0 255.255.255.0 172.19.3.1 200
prod_router#

route-map static-to-eigrp permit 10
 match ip address static-to-eigrp

route-map eigrp-to-bgp permit 10
 match ip address eigrp-to-bgp

ip access-list standard static-to-eigrp
 10 deny any

ip access-list extended eigrp-to-bgp
 10 permit ip 10.19.3.0 0.0.0.255 any
 20 permit ip any any

```

I have a couple questions:

1. What are these lines exactly meant? please explain in a plain English if possible!

```auto
       redistribute static metric 10000 10 255 255 150 route-map static-to-eigrp
       redistribute bgp 65001 metric 100 1 255 1 1500
       redistribute eigrp 101 metric 100 route-map eigrp-to-bgp

```

1. Regarding route-map of ‘redistribute static metric 10000 10 255 255 150 route-map static-to-eigrp’.

```auto
       route-map static-to-eigrp permit 10
             match ip address static-to-eigrp
       ip access-list standard static-to-eigrp
             10 deny any

```

If the ‘static-to-eigrp’ ACL is denying all, why do we need to redistribute static in to eigrp?

Thanks!

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [September 17, 2022, 6:28am UTC](https://forum.networklessons.com/t/bgp-and-eigrp-redistribution-question/30587/2 "2022-09-17T06:28:59Z")

</div>

Hello Tom

> [@ncc99999](#):
>
> ```auto
> redistribute static metric 10000 10 255 255 150 route-map static-to-eigrp
> 
> ```

This command redistributes all static routes into EIGRP using the indicated [EIGRP metrics](https://networklessons.com/eigrp/eigrp-k-values-formula). Only those static routes that match the `static-to-eigrp` route map will be redistributed.

> [@ncc99999](#):
>
> ```auto
> redistribute bgp 65001 metric 100 1 255 1 1500
> 
> ```

This command redistributes all BGP routes learned from AS65001 into EIGRP with the indicated EIGRP metrics. There is no route map indicated here, so all routes are redistributed.

> [@ncc99999](#):
>
> ```auto
> redistribute eigrp 101 metric 100 route-map eigrp-to-bgp
> 
> ```

This command, found under the BGP configuration, redistributes all EIGRP routes into BGP that match the route map `eigrp-to-bgp`. Based on the route map, everything is matched, so there is no restriction.

> [@ncc99999](#):
>
> If the ‘static-to-eigrp’ ACL is denying all, why do we need to redistribute static in to eigrp?

Indeed the route map is not matching anything therefore no redistribution is being achieved. Now it is not unusual to find such a configuration. This is typically done when network admins need to change routing occasionally. They create the redistribution, and the route map, but keep the ACL as “deny any”. Whenever you want to redistribute specific static routes, you only need to change the ACL. If you want to stop redistributing, just put deny any in the ACL again, and you’ve removed redistribution. That way, the config is there, and it can easily be adjusted by simply adjusting the ACL.

I hope this has been helpful!

Laz
