home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

protocols bgp <asn> neighbor <id> address-family ipv4-unicast default-originate route-map <map-name>

Enables or disables forwarding of the default route to a BGP neighbor.

set protocols bgp asn neighbor id address-family ipv4-unicast default-originate route-map map-name
delete protocols bgp asn neighbor id address-family ipv4-unicast default-originate route-map map-name
show protocols bgp asn neighbor id address-family ipv4-unicast default-originate

The default route is not distributed.

asn
The number for the AS in which this router resides. The number ranges from 1 through 4294967295.
id
The IPv4 or IPv6 address of a BGP neighbor.
map-name
Specifies a configured route map to be used when advertising the default route.

Configuration mode


protocols {
    bgp asn {
        neighbor id {
            address-family {
                ipv4-unicast {
                    default-originate {
                        route-map map-name 
                   }
                }
            }
        }
    }
}

Use the set form of this command to enable the router to advertise the default route 0.0.0.0 to this BGP neighbor. This route can then be used by the neighbor to reach the local router if no other routes are available.

If a route map is specified, the default route is advertised if two conditions are satisfied:

  • The route map includes a match ip address clause.
  • A route exists that exactly matches the IP access list.

Route maps are configured using protocols bgp <asn> neighbor <id> local-as <asn>.

Use the delete form of this command to disable forwarding of the default route or to delete a route map.

Use the show form of this command to view BGP neighbor default route origination settings.

Note: In the case of the IPv4 address family, if extended IPv4 ACLs are used in a route map, the route must be specified in the source field of the ACL and the net mask of the route must be specified in the destination field of the ACL.

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.