Hi! I'm reading route book of W.Odom. on page 445 (chapter 13)
"When a router knows routes only for subsets of the prefix that needs to be advertised, an additional step is needed when using the network command. For instance, the network 22.214.171.124 mask 255.255.224.0 command will not add this prefix to the BGP table even if routes for subsets of this range exist, such as 126.96.36.199/24. So, either configure a static route for the entire range, with outgoing interface null0, on the Internet facing router, or use IGP route summarization to create a summary route for the entire prefix with IGP."
i cannot understand that. can you explain why this command will not add this prefix to the BGP table?
There needs to be a route for 188.8.131.52/19 in the routing table known by an IGP, a directly connected interface, or static route, before BGP will advertise it with the network command. Having a more specific prefix 184.108.40.206/24 is not the same. You could advertise the more specific prefix with the network command. So thats why he stated you need a means to get that /19 route in the route table hense the suggestion about using the route to null0. It would then be in the route table via a static route. Just remember if you cant find that exact route in the routing table known by an alternative source (IGP,directly connected interface or static route) BGP will not advertise it using the network command.
BGP needs an exact match between the network statement under the BGP process and a route in the routing table. If there is no exact match, no advertisement. Hence the reason for summary routes. Now, you can summarize within BGP to correct this problem as well.