router1 and switch 1.
router2 and switch 2.
Between Router 1 and router 2, it is running bgp routing protocol. Under bgp statement, there is redistribute eigrp.
Between router1 and switch1, it is running eigrp routing protocol as well as router 2 and switch2.
In router 1, there is one subnet 172.16.100.0/24, we don't want it to advertise to the location B network. How can we block it and only let it advertise on switch 1?
When redistributing EIGRP into BGP on router 1, you need to use a route-map and the route-map should reference an ACL that exclude 172.16.100.0/24 while allowing all other routes.