BGP has three ways to advertise a route:
There are two reasons I've come across for using the
network command vs the
network command advertises routes with an origin code of
i for IGP. The
redistribute command advertises routes with an origin code of
? for Incomplete. Later, these are used in the Path Selection process whereby the origin code of
i is preferred to
BUT the Origin Code can be changed to anything you like using a route-map. So for the purpose of this question, let's ignore the different origin codes since they can be overridden.
network command requires you to explicitly specify which networks should be advertised into BGP. Where as the
redistribute command might inadvertently advertise networks into BGP that you did not explicitly select (aka, using
redistribute connected and later adding an loopback interface for testing that you did not mean to get advertise).
BUT you can also use a route-map to limit what network(s) are being redistributed, so in both cases you can still advertise networks explicitly. So for the purpose of this question, let's ignore the difference in explicit advertisements since that is possible in both method.
My question: OTHER than the two differences identified above... what are reasons why one might choose to use the
redistribute command verses the
Does it simply come to personal preference? Or local policies? Or are there other definitive use-cases that would require the use of one or the other.