Import Routes into BGP4

Routes can be explicitly imported into BGP4 for advertisement.

About this task

You can specify a route to be local. If the same route is received by means of EGP, the local IGP route is preferred. You can also specify a weight that the device adds to routes that are received from the specified BGP neighbor. BGP4 prefers larger weights over smaller weights.

This procedure imports a route with a routemap. For more examples, see the Extreme SLX-OS Command Reference.

Before you begin

With the exception of static network routes, the routes that are imported into BGP4 must first exist in the IPv4 unicast route table.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Access BGP address-family IPv4 unicast configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast
  4. Import the specified prefix into the BGP4 database.
    device(config-bgp-ipv4u)# network 10.1.1.1/32 route-map myroutemap
    This example imports the IP prefix 10.1.1.1/32 into the BGP4 database and specifies a route map called myroutemap.