The commands involved in this document are:
Neighbor [Ip-address|peer-group-name] advertise-map [route-map-name1] non-exist-map [route-map-name2]
Neighbor [Ip-address|peer-group-name] Default-originate
Neighbor [ip-address|peer-group-name] default-originate route-map xxx
3-6-1 neighbor [Ip-address|peer-group-name] advertise-map [route-map-name1] non-exist-map [route-map-name2]
This command is, in fact, the conditional route we often say.
If the mandatory translation into Chinese, such as the following command:
Neighbor 172.17.1.2 Advertise-map secondery Non-exist-map Primary
For neighbor 172.17.1.2, if the ROUTE-MAP notification route primary no longer exists in the BGP table, then the Secondery Route-map is notified to 172.17.1.2
The role of Advertise-map is: If the primary prefix is apparent in the BGP table, the BGP router must not advertise the secondary prefix to the BGP counterpart, and if the primary prefix disappears from the BGP table, then the secondary prefix is advertised.
In this topology, the R1 configuration is:
Interface Loopback0
IP Address 1.1.1.1 255.255.255.0
!
Interface Loopback1
IP address 2.2.2.2 255.255.255.0
!
Interface fastethernet0/0
IP address 172.17.1.1 255.255.255.0
Duplex full
Speed auto
!
Router BGP 100
No synchronization
BGP log-neighbor-changes
Network 1.1.1.0 Mask 255.255.255.0
Network 2.2.2.0 Mask 255.255.255.0
Neighbor 172.17.1.2 Remote-as 100
No auto-summary
!
No IP HTTP Server
No IP http secure-server
!
The R2 configuration is:
Interface fastethernet0/0
IP address 172.17.1.2 255.255.255.0
Duplex full
Speed auto
!
Router BGP 100
No synchronization
BGP log-neighbor-changes
Neighbor 172.17.1.1 Remote-as 100
No auto-summary
!