No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Routing 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - IP Routing
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a BGP Device to Send a Default Route to Its Peer

Configuring a BGP Device to Send a Default Route to Its Peer

After a BGP device is configured to send a default route to its peer, the BGP device sends a default route with the local address as the next hop address to the specified peer, regardless of whether there are default routes in the local routing table, which reduces the number of routes on the network.

Usage Scenario

The BGP routing table of a device on a medium or large BGP network contains a large number of routing entries. Storing the routing table consumes a large number of memory resources, and transmitting and processing routing information consume lots of network resources. If a device needs to send multiple routes to its peer, you can configure the device to send only a default route with the local address as the next hop address to its peer, regardless of whether there are default routes in the local routing table. This greatly reduces the number of routes on the network and the consumption of memory resources on the peer and network resources.

Figure 10-8 Configuring a BGP device to send a default route to its peer

On the network shown in Figure 10-8, Device A and Device B have established a BGP peer relationship. Device B has added routes to 20.1.1.0/24, 20.2.1.0/24, and 20.3.1.0/24 to its BGP routing table. Device A needs to learn these routes from Device B. To reduce the memory consumption on Device A and bandwidth used by Device B for sending routing information to Device A, configure Device B to send a default route to its peer (Device A) and use a routing policy to prevent Device B from sending all the routes to 20.1.1.0/24, 20.2.1.0/24, and 20.3.1.0/24 to Device A. Then, Device A stores only one default route but can still send traffic to the three network segments.

Pre-configuration Tasks

Before configuring a BGP device to send a default route to its peer, configure basic BGP functions.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run bgp as-number

    The BGP view is displayed.

  3. Run ipv4-family unicast

    The IPv4 unicast address family view is displayed.

  4. Run peer { group-name | ipv4-address } default-route-advertise [ route-policy route-policy-name | route-filter route-filter-name ] [ conditional-route-match-all { ipv4-address1 { mask1 | mask-length1 } } &<1-4> | conditional-route-match-any { ipv4-address2 { mask2 | mask-length2 } } &<1-4> ]

    The device is configured to send a default route to the specified peer or a peer group.

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

    If conditional-route-match-all { ipv4-address1 { mask1 | mask-length1 } } &<1-4> is set, the BGP device sends the default route to the peer only when routes that match all the all specified conditions exist in the local routing table.

    If conditional-route-match-any { ipv4-address2 { mask2 | mask-length2 } } &<1-4> is set, the local device sends a default route to the peer when routes that match any of the specified conditions exist in the local routing table.

    NOTE:

    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.

  5. Run commit

    The configuration is committed.

Checking the Configurations

After configuring a BGP device to send a default route to a peer, check whether the configuration is correct.

  • Run the display bgp routing-table [ ipv4-address [ mask | mask-length ] ] command on a peer to check information about the received BGP default route.

# Run the display bgp routing-table command on a peer to view information about the received BGP default route.

<HUAWEI> display bgp routing-table
 
 BGP Local router ID is 10.1.1.1
 Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found

 Total Number of Routes: 9
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  0.0.0.0            10.1.1.2        0                     0      i
 *>   1.1.1.1/32         10.3.1.1        0                     0      20?
 *>i  4.0.0.0            10.2.1.2                   100        0      100?
 *>i  10.0.0.0           10.2.1.2                   100        0      100?
 *>i  10.2.1.0/24        10.1.1.2        0          100        0       i
 *>   10.3.1.0/24        0.0.0.0         0                     0       i
                         10.3.1.1        0                     0      20?
 *>i  192.168.0.0/16     10.2.1.2                   100        0      100?
 *>i  192.168.15.0       10.2.1.2                   100        0      100?    
Translation
Download
Updated: 2019-01-14

Document ID: EDOC1100058916

Views: 35154

Downloads: 51

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next