protocols bgp <asn> address-family ipv4-unicast redistribute connected
Redistributes directly connected routes into BGP.
When this command has not been set, directly connected routes are not distributed into BGP.
- asn
- The number for the AS in which this router resides. The number ranges from 1 through 4294967295.
- map-name
- The name of a configured route map to be used for redistributing connected routes.
Configuration mode
protocols {
bgp asn {
address-family {
ipv4-unicast {
redistribute {
connected {
route-map map-name
}
}
}
}
}
}
Use this command to redistribute directly connected routes into BGP.
Use the set form of this command to direct the router to redistribute directly connected routes into BGP.
Use the delete form of this command to prevent redistribution of directly connected routes into BGP.
Use the show form of this command to view route redistribution configuration settings.
The inverse mask for the source field is applied to the prefix before the comparison with the source. The inverse mask for the destination field is applied to the net mask of the prefix before the comparison with the net mask as specified in the destination field.
Effectively, the prefix must match the source with application of inverse mask of the source field. And the net mask for the prefix must match the destination with application of inverse mask of the destination field.