The command that we can see originate prefixs in BGP is “show ip bgp reg ^$” . There are four ways to originate prefix.
1. aggregate-address
Aggregate-address in BGP is summarization or superneting like IGP summary-address. When execute this command, the specific route must be in BGP routing table. BGP will advertise both aggregated address and specific routes to the neighbor. If we don’t want specific routes to be advertised, “summary-only” key word need to be used.
2. network statement
When configure “network 192.168.50.0 mask 255.255.255.0″, it actually tell router to import network 192.168.50.0 with subnet mask 255.255.255.0 from IGP route table to LocRIB. If there is no such entry on IGP table, nothing will be installed in LocRIB. If importing is successful, there is an entry on LocRIB which originated by router itself.
3. redistribute
If we have been asked to let router advertise a summary major network 191.1.0.0/16 into BGP, we can create a static route point to Null0. Then, redistribute static route into BGP
router bgp 200
redistribute static
ip route 191.1.0.0 255.255.0.0 Null0
4. inject-map
Inject-map is opposite operation of aggregate-address. Sometimes we call it “de-aggregate”. We need two route-map. One route map is declare injected prefix by using set ip address prefix-list <inject-prefix-list> and some attributes which is needed to be setup. (Weight is default 0 in stead of 32768). The other route map is existed aggregate prefix and its originator by using match ip address prefix-list <aggregate-prefix-list> and match ip route-source prefix-list <originator-prefix-list>.
Tags: BGP, Networks by hengdu
No Comments »