Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Example: Configuring Communities in a Routing Policy

    A community is a route attribute used by BGP to administratively group routes with similar properties.

    Requirements

    No special configuration beyond device initialization is required before configuring this example.

    Overview

    One main role of the community attribute is to be an administrative tag value used to associate routes together. Generally, these routes share some common properties, but that is not required. Communities are a flexible tool within BGP. An individual community value can be assigned to a single route or multiple routes. A route can be assigned a single community value or multiple values. Networks use the community attribute to assist in implementing administrative routing policies. A route’s assigned value can allow it to be accepted into the network, or rejected from the network, or allow it to modify attributes.

    Figure 1 shows Device R1, Device R2, and Device R3 as internal BGP (IBGP) peers in autonomous system (AS) 64510. Device R4 is advertising the 172.16.0.0/21 address space from AS 64511. The specific routes received by Device R1 from Device R4 are as follows:

    user@R1> show route receive-protocol bgp 10.0.0.13
    inet.0: 20 destinations, 28 routes (20 active, 0 holddown, 8 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 172.16.0.0/24           10.0.0.13                               64511 I
    * 172.16.1.0/24           10.0.0.13                               64511 I
    * 172.16.2.0/24           10.0.0.13                               64511 I
    * 172.16.3.0/24           10.0.0.13                               64511 I
    * 172.16.4.0/24           10.0.0.13                               64511 I
    * 172.16.5.0/24           10.0.0.13                               64511 I
    * 172.16.6.0/24           10.0.0.13                               64511 I
    * 172.16.7.0/24           10.0.0.13                               64511 I

    The administrators of AS 64511 want to receive certain user traffic from Device R1, and other user traffic from Device R3. To accomplish this administrative goal, Device R4 attaches the community value of 64511:1 to some routes that it sends and attaches the community value 64511:3 to other routes that it sends. Routing policies within AS 64510 are configured using a community match criterion to change the local preference of the received routes to new values that alter the BGP route selection algorithm. The route with the highest local preference value is preferred.

    On Device R1, routes with the 64511:1 community value are assigned a local preference of 200, and routes with the 64511:3 community value are assigned a local preference of 50. On Device R3, the reverse is done so that routes with the 64511:3 community value are assigned a local preference of 200, and routes with the 64511:1 community value are assigned a local preference of 50. This information is then communicated through IBGP by both Device R1 and Device R3 to Device R2.

    Topology

    Figure 1 shows the sample network.

    Figure 1: Topology for Regular BGP Communities

    Topology for Regular BGP Communities

    CLI Quick Configuration shows the configuration for all of the devices in Figure 1.

    The section Step-by-Step Procedure describes the steps on Device R1 and R4.

    Configuration

    CLI Quick Configuration

    To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

    Device R1

    set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.1/30set interfaces fe-1/2/2 unit 0 family inet address 10.1.0.5/30set interfaces fe-1/2/3 unit 0 family inet address 10.0.0.14/30set interfaces lo0 unit 0 family inet address 192.168.0.1/32set protocols bgp group int type internalset protocols bgp group int local-address 192.168.0.1set protocols bgp group int neighbor 192.168.0.2 export send-directset protocols bgp group int neighbor 192.168.0.3set protocols bgp group ext type externalset protocols bgp group ext import change-local-preferenceset protocols bgp group ext peer-as 64511set protocols bgp group ext neighbor 10.0.0.13set protocols ospf area 0.0.0.0 interface fe-1/2/0.0set protocols ospf area 0.0.0.0 interface fe-1/2/2.0set protocols ospf area 0.0.0.0 interface lo0.0 passiveset policy-options policy-statement change-local-preference term find-R1-routes from community from-R1set policy-options policy-statement change-local-preference term find-R1-routes then local-preference 200set policy-options policy-statement change-local-preference term find-R3-routes from community from-R3set policy-options policy-statement change-local-preference term find-R3-routes then local-preference 50set policy-options policy-statement send-direct term 1 from protocol directset policy-options policy-statement send-direct term 1 from route-filter 10.0.0.12/30 exactset policy-options policy-statement send-direct term 1 then acceptset policy-options community from-R1 members 64511:1set policy-options community from-R3 members 64511:3set routing-options router-id 192.168.0.1set routing-options autonomous-system 64510

    Device R2

    set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.2/30set interfaces fe-1/2/1 unit 0 family inet address 10.1.0.1/30set interfaces lo0 unit 0 family inet address 192.168.0.2/32set protocols bgp group int type internalset protocols bgp group int local-address 192.168.0.2set protocols bgp group int neighbor 192.168.0.1set protocols bgp group int neighbor 192.168.0.3set protocols ospf area 0.0.0.0 interface fe-1/2/0.0set protocols ospf area 0.0.0.0 interface fe-1/2/1.0set protocols ospf area 0.0.0.0 interface lo0.0 passiveset routing-options router-id 192.168.0.2set routing-options autonomous-system 64510

    Device R3

    set interfaces fe-1/2/1 unit 0 family inet address 10.1.0.2/30set interfaces fe-1/2/2 unit 8 family inet address 10.1.0.6/30set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.10/30set interfaces lo0 unit 0 family inet address 192.168.0.3/32set protocols bgp group int type internalset protocols bgp group int local-address 192.168.0.3set protocols bgp group int neighbor 192.168.0.1set protocols bgp group int neighbor 192.168.0.2 export send-directset protocols bgp group ext type externalset protocols bgp group ext import change-local-preferenceset protocols bgp group ext peer-as 64511set protocols bgp group ext neighbor 10.0.0.9set protocols ospf area 0.0.0.0 interface fe-1/2/1.0set protocols ospf area 0.0.0.0 interface fe-1/2/2.8set protocols ospf area 0.0.0.0 interface lo0.0 passiveset policy-options policy-statement change-local-preference term find-R3-routes from community from-R3set policy-options policy-statement change-local-preference term find-R3-routes then local-preference 200set policy-options policy-statement change-local-preference term find-R1-routes from community from-R1set policy-options policy-statement change-local-preference term find-R1-routes then local-preference 50set policy-options policy-statement send-direct term 1 from protocol directset policy-options policy-statement send-direct term 1 from route-filter 10.0.0.8/30 exactset policy-options policy-statement send-direct term 1 then acceptset policy-options community from-R1 members 64511:1set policy-options community from-R3 members 64511:3set routing-options router-id 192.168.0.3set routing-options autonomous-system 64510

    Device R4

    set interfaces fe-1/2/0 unit 0 family inet address 10.0.0.9/30set interfaces fe-1/2/3 unit 0 family inet address 10.0.0.13/30set interfaces lo0 unit 0 family inet address 192.168.0.4/32set protocols bgp group to-R1 type externalset protocols bgp group to-R1 export send-staticset protocols bgp group to-R1 peer-as 64510set protocols bgp group to-R1 neighbor 10.0.0.14set protocols bgp group to-R3 type externalset protocols bgp group to-R3 export send-staticset protocols bgp group to-R3 peer-as 64510set protocols bgp group to-R3 neighbor 10.0.0.10set policy-options policy-statement send-static term 1 from protocol staticset policy-options policy-statement send-static term 1 from route-filter 172.16.0.0/24 exactset policy-options policy-statement send-static term 1 from route-filter 172.16.1.0/24 exactset policy-options policy-statement send-static term 1 from route-filter 172.16.2.0/24 exactset policy-options policy-statement send-static term 1 from route-filter 172.16.3.0/24 exactset policy-options policy-statement send-static term 1 then community add from-R1set policy-options policy-statement send-static term 1 then acceptset policy-options policy-statement send-static term 2 from protocol staticset policy-options policy-statement send-static term 2 from route-filter 172.16.4.0/24 exactset policy-options policy-statement send-static term 2 from route-filter 172.16.5.0/24 exactset policy-options policy-statement send-static term 2 from route-filter 172.16.6.0/24 exactset policy-options policy-statement send-static term 2 from route-filter 172.16.7.0/24 exactset policy-options policy-statement send-static term 2 then community add from-R3set policy-options policy-statement send-static term 2 then acceptset policy-options policy-statement send-static term 3 then rejectset policy-options community from-R1 members 64511:1set policy-options community from-R3 members 64511:3set routing-options static route 172.16.0.0/24 rejectset routing-options static route 172.16.1.0/24 rejectset routing-options static route 172.16.2.0/24 rejectset routing-options static route 172.16.3.0/24 rejectset routing-options static route 172.16.4.0/24 rejectset routing-options static route 172.16.5.0/24 rejectset routing-options static route 172.16.6.0/24 rejectset routing-options static route 172.16.7.0/24 rejectset routing-options router-id 192.168.0.4set routing-options autonomous-system 64511

    Step-by-Step Procedure

    The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure Device R1:

    1. Configure the interfaces.
      [edit interfaces]user@R1# set fe-1/2/0 unit 0 family inet address 10.0.0.1/30
      user@R1# set fe-1/2/2 unit 0 family inet address 10.1.0.5/30
      user@R1# set fe-1/2/3 unit 0 family inet address 10.0.0.14/30
      user@R1# set lo0 unit 0 family inet address 192.168.0.1/32
    2. Configure internal gateway protocol (IGP) connections to Device R2 and Device R3.
      [edit protocols ospf area 0.0.0.0]user@R1# set interface fe-1/2/0.0user@R1# set interface fe-1/2/2.0user@R1# set interface lo0.0 passive
    3. Configure the IBGP connections to Device R2 and Device R3.
      [edit protocols bgp group int]user@R1# set type internaluser@R1# set local-address 192.168.0.1user@R1# set neighbor 192.168.0.2 export send-directuser@R1# set neighbor 192.168.0.3
    4. Configure the EBGP connection to Device R4.
      [edit protocols bgp group ext]user@R1# set type externaluser@R1# set import change-local-preferenceuser@R1# set peer-as 64511user@R1# set neighbor 10.0.0.13
    5. Configure the policy send-direct.

      This policy is referenced in the IBGP connection to Device R2 and enables Device R2 to have external reachability. An alternative is to configure a next-hop self policy on Device R1 and Device R3.

      [edit policy-options policy-statement send-direct term 1]user@R1# set from protocol directuser@R1# set from route-filter 10.0.0.12/30 exactuser@R1# set then accept
    6. Configure the policy that changes the local preference for routes with specified community tags.
      [edit policy-options policy-statement change-local-preference]user@R1# set term find-R1-routes from community from-R1user@R1# set term find-R1-routes then local-preference 200user@R1# set term find-R3-routes from community from-R3user@R1# set term find-R3-routes then local-preference 50
      [edit policy-options ]user@R1# set community from-R1 members 64511:1user@R1# set community from-R3 members 64511:3
    7. Configure the autonomous system (AS) number and router ID.
      [edit routing-options]user@R1# set router-id 192.168.0.1user@R1# set autonomous-system 64510

    Step-by-Step Procedure

    The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.

    To configure Device R4:

    1. Configure the interfaces.
      [edit interfaces]user@R4# set fe-1/2/0 unit 0 family inet address 10.0.0.9/30
      user@R4# set fe-1/2/3 unit 0 family inet address 10.0.0.13/30
      user@R4# set lo0 unit 0 family inet address 192.168.0.4/32
    2. Configure the EBGP connection to Device R1 and Device R3.
      [edit protocols bgp]user@R4# set group to-R1 type externaluser@R4# set group to-R1 export send-staticuser@R4# set group to-R1 peer-as 64510user@R4# set group to-R1 neighbor 10.0.0.14
      user@R4# set group to-R3 type externaluser@R4# set group to-R3 export send-staticuser@R4# set group to-R3 peer-as 64510user@R4# set group to-R3 neighbor 10.0.0.10
    3. Configure the community tags.
      [edit policy-options ]user@R4# set community from-R1 members 64511:1user@R4# set community from-R3 members 64511:3
    4. Configure the policy send-static.

      This policy is referenced in the EBGP connections to Device R1 and Device R3. The policy attaches the 64511:1 (from-R1) community to some routes and the 64511:3 (from-R3) community to other routes.

      [edit policy-options policy-statement send-static term 1]user@R4# set from protocol staticuser@R4# set from route-filter 172.16.0.0/24 exactuser@R4# set from route-filter 172.16.1.0/24 exactuser@R4# set from route-filter 172.16.2.0/24 exactuser@R4# set from route-filter 172.16.3.0/24 exactuser@R4# set then community add from-R1user@R4# set then accept
      [edit policy-options policy-statement send-static term 2]user@R4# set from protocol staticuser@R4# set from route-filter 172.16.4.0/24 exactuser@R4# set from route-filter 172.16.5.0/24 exactuser@R4# set from route-filter 172.16.6.0/24 exactuser@R4# set from route-filter 172.16.7.0/24 exactuser@R4# set then community add from-R3user@R4# set then accept
      [edit policy-options policy-statement send-static term 3]user@R4# set then reject
    5. Configure the static routes.
      [edit routing-options static]user@R4# set route 172.16.0.0/24 rejectuser@R4# set route 172.16.1.0/24 rejectuser@R4# set route 172.16.2.0/24 rejectuser@R4# set route 172.16.3.0/24 rejectuser@R4# set route 172.16.4.0/24 rejectuser@R4# set route 172.16.5.0/24 rejectuser@R4# set route 172.16.6.0/24 rejectuser@R4# set route 172.16.7.0/24 reject
    6. Configure the autonomous system (AS) number and router ID.
      [edit routing-options]user@R4# set router-id 192.168.0.4user@R4# set autonomous-system 64511

    Results

    From configuration mode, confirm your configuration by entering the show interfaces, show protocols, show policy-options, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

    Device R1

    user@R1# show interfaces
    fe-1/2/0 {unit 0 {family inet {address 10.0.0.1/30;}}}
    fe-1/2/2 {unit 0 {family inet {address 10.1.0.5/30;}}}
    fe-1/2/3 {unit 0 {family inet {address 10.0.0.14/30;}}}
    lo0 {unit 0 {family inet {address 192.168.0.1/32;}}}
    user@R1# show protocols
    bgp {group int {type internal;local-address 192.168.0.1;neighbor 192.168.0.2 {export send-direct;}neighbor 192.168.0.3;}group ext {type external;import change-local-preference;peer-as 64511;neighbor 10.0.0.13;}}
    ospf {area 0.0.0.0 {interface fe-1/2/0.0;interface fe-1/2/2.0;interface lo0.0 {passive;}}}
    user@R1# show policy-options
    policy-statement change-local-preference {term find-R1-routes {from community from-R1;then {local-preference 200;}}term find-R3-routes {from community from-R3;then {local-preference 50;}}}
    policy-statement send-direct {term 1 {from {protocol direct;route-filter 10.0.0.12/30 exact;}then accept;}}
    community from-R1 members 64511:1;community from-R3 members 64511:3;
    user@R1# show routing-optionsrouter-id 192.168.0.1;autonomous-system 64510;

    Device R4

    user@R4# show interfaces
    fe-1/2/0 {unit 0 {family inet {address 10.0.0.9/30;}}}
    fe-1/2/3 {unit 0 {family inet {address 10.0.0.13/30;}}}
    lo0 {unit 0 {family inet {address 192.168.0.4/32;}}}
    user@R4# show protocols
    bgp {group to-R1 {type external;export send-static;peer-as 64510;neighbor 10.0.0.14;}group to-R3 {type external;export send-static;peer-as 64510;neighbor 10.0.0.10;}}
    user@R4# show policy-options
    policy-statement send-static {term 1 {from {protocol static;route-filter 172.16.0.0/24 exact;route-filter 172.16.1.0/24 exact;route-filter 172.16.2.0/24 exact;route-filter 172.16.3.0/24 exact;}then {community add from-R1;accept;}}term 2 {from {protocol static;route-filter 172.16.4.0/24 exact;route-filter 172.16.5.0/24 exact;route-filter 172.16.6.0/24 exact;route-filter 172.16.7.0/24 exact;}then {community add from-R3;accept;}}term 3 {then reject;}}
    community from-R1 members 64511:1;community from-R3 members 64511:3;
    user@R4# show routing-options
    static {route 172.16.0.0/24 reject;route 172.16.1.0/24 reject;route 172.16.2.0/24 reject;route 172.16.3.0/24 reject;route 172.16.4.0/24 reject;route 172.16.5.0/24 reject;route 172.16.6.0/24 reject;route 172.16.7.0/24 reject;}
    router-id 192.168.0.4;autonomous-system 64511;

    If you are done configuring the devices, enter commit from configuration mode.

    Verification

    Confirm that the configuration is working properly.

    Verifying the Routes Sent on Device R4

    Purpose

    On Device R4, check the routes sent to Device R1 and Device R3.

    Action

    user@R4> show route advertising-protocol bgp 10.0.0.14
    inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
    * 172.16.0.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.1.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.2.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.3.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.4.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.5.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.6.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.7.0/24 (1 entry, 1 announced)
     BGP group to-R1 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    


    user@R2> show route advertising-protocol bgp 10.0.0.10
    inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
    * 172.16.0.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.1.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.2.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.3.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:1
    
    * 172.16.4.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.5.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.6.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    * 172.16.7.0/24 (1 entry, 1 announced)
     BGP group to-R3 type External
         Nexthop: Self
         AS path: [64511] I
         Communities: 64511:3
    
    

    Meaning

    Device R4 has tagged the routes with the communities 64511:1 and 64511:3 and sent them to Device R1 and R3.

    Verifying the Routes Received on Device R2

    Purpose

    On Device R2, check the routes received from Device R1 and Device R3.

    Action

    user@R2> show route receive-protocol bgp 192.168.0.1
    inet.0: 22 destinations, 30 routes (22 active, 0 holddown, 0 hidden)
      Prefix                  Nexthop              MED     Lclpref    AS path
    * 10.0.0.12/30            192.168.0.1                  100        I
    * 172.16.0.0/24           10.0.0.13                    200        64511 I
    * 172.16.1.0/24           10.0.0.13                    200        64511 I
    * 172.16.2.0/24           10.0.0.13                    200        64511 I
    * 172.16.3.0/24           10.0.0.13                    200        64511 I
      172.16.4.0/24           10.0.0.13                    50         64511 I
      172.16.5.0/24           10.0.0.13                    50         64511 I
      172.16.6.0/24           10.0.0.13                    50         64511 I
      172.16.7.0/24           10.0.0.13                    50         64511 I
    


    user@R2> show route match-prefix 172.16.*
    inet.0: 22 destinations, 30 routes (22 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    172.16.0.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
    172.16.1.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
    172.16.2.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
    172.16.3.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
    172.16.4.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
    172.16.5.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
    172.16.6.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6
    172.16.7.0/24      *[BGP/170] 1d 00:47:39, localpref 200, from 192.168.0.3
                          AS path: 64511 I
                          to 10.1.0.2 via fe-1/2/1.0
                        > to 10.1.0.6 via fe-1/2/0.7
                        [BGP/170] 1d 00:47:39, localpref 50, from 192.168.0.1
                          AS path: 64511 I
                          to 10.0.0.1 via fe-1/2/0.0
                        > to 10.1.0.5 via fe-1/2/0.6


    Meaning

    Device R2 has the routes with the expected local preferences and the expected active routes, as designated by the asterisks (*).

     

    Related Documentation

     

    Published: 2013-07-31