< Home

Configuring Routers to Advertise a Default Route to a Peer

A router sends a default route with the local address being the next hop to the specified peer, regardless of whether there are default routes in the local routing table.

Procedure

  1. Access the system view.

    system-view

  2. Access the BGP view.

    bgp { as-number-plain | as-number-dot }

  3. Access the BGP IPv6 unicast address family view.

    ipv6-family [ unicast ]

  4. Advertise default routes to peers (or a peer group).

    peer { ipv4-address | ipv6-address | group-name } default-route-advertise [ route-policy route-policy-name ] [ conditional-route-match-all { ipv6-address1 prefix-length1 } &<1-4> | conditional-route-match-any { ipv6-address2 prefix-length2 } &<1-4> ]

    If route-policy route-policy-name is set, the BGP device changes attributes of a default route based on the specified route policy.

    If conditional-route-match-all { ipv6-address1 prefix-length1 } &<1-4> is set, the BGP device sends a default route to the peer only when all specified routes exist in the local routing table.

    If conditional-route-match-any { ipv6-address2 prefix-length2 } &<1-4> is set, the local device sends a default route to the peer when one of the specified routes exists in the local routing table.

    After the peer default-route-advertise command is used on a device, the device sends a default route with the local address as the next-hop address to a specified peer, regardless of whether there is a default route in the routing table.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic