Aggregate-Address
Scenario to verify BGP aggregate-address configuration with different options: basic, summary-only, route-map, and origin (igp/egp/incomplete).
Route aggregation allows a router to advertise a single summary route (e.g., /16) that covers multiple more-specific routes (e.g., /24s). The behavior varies based on the configured options:
Basic (no options): Both the aggregate route and the specific routes are advertised to neighbors. The aggregate has origin incomplete (?) by default.
summary-only: Only the aggregate route is advertised; the more-specific routes are suppressed and NOT sent to neighbors.
route-map: Applies a route-map to the aggregate route to modify its attributes (e.g., setting MED/metric). The specific routes are unaffected.
origin igp/egp/incomplete: Sets the BGP origin code for the aggregate route. By default it is incomplete (?). Setting it to igp (i) or egp (e) changes the origin attribute, which influences BGP path selection (igp > egp > incomplete).
Each option is tested with both iBGP (same AS) and eBGP (different AS) sessions. The topology uses DUT0 with three dummy interfaces (dum0, dum1, dum2) providing /24 routes that are aggregated into a /16 summary.
Test BGP Aggregate Address
Description
Test aggregate-address options across iBGP and eBGP: basic (aggregate + specifics), summary-only (aggregate only), route-map (attribute modification on aggregate), and origin variants (igp, egp, incomplete).
Scenario
Example 1
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 8 5 0 0 00:00:01 Established 0 5 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Example 2
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Example 3
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 summary-only set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 6 5 0 0 00:00:01 Established 0 2 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 2, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 ? Displayed 2 routes and 2 total paths
Example 4
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 summary-only set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 2, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 ? Displayed 2 routes and 2 total paths
Example 5
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 route-map SET-MED set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set protocols route-map SET-MED rule 1 action permit set protocols route-map SET-MED rule 1 set metric 499 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 9 5 0 0 00:00:02 Established 0 5 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 499 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that aggregate route has MED 499 set by route-map.
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16\s+10.1.1.100\s+499Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 10.1.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.0.0/16 10.1.1.100 499 100 0 ? *>i 192.168.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.2.0/24 10.1.1.100 0 100 0 ? *>i 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that specific /24 routes do NOT have MED 499 (route-map only affects aggregate).
Step 6: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.1.0/24\s+10.1.1.100\s+0Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 499 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Example 6
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 route-map SET-MED set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set protocols route-map SET-MED rule 1 action permit set protocols route-map SET-MED rule 1 set metric 499 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+\?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 499 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that aggregate route has MED 499 set by route-map.
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16\s+10.1.1.100\s+499Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 499 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that specific /24 routes do NOT have MED 499 (route-map only affects aggregate).
Step 6: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.1.0/24\s+10.1.1.100\s+0Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 499 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Example 7
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin igp set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 8 5 0 0 00:00:01 Established 0 5 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 iShow output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 10.1.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.0.0/16 10.1.1.100 0 100 0 i *>i 192.168.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.2.0/24 10.1.1.100 0 100 0 ? *>i 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 10.1.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.0.0/16 10.1.1.100 0 100 0 i *>i 192.168.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.2.0/24 10.1.1.100 0 100 0 ? *>i 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Example 8
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin igp set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 iShow output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 i *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 i *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Example 9
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin egp set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 9 5 0 0 00:00:01 Established 0 5 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 eShow output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *>i 10.1.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.0.0/16 10.1.1.100 0 100 0 e *>i 192.168.1.0/24 10.1.1.100 0 100 0 ? *>i 192.168.2.0/24 10.1.1.100 0 100 0 ? *>i 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 e *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Example 10
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin egp set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 eShow output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 e *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 e *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Example 11
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin incomplete set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 10 set protocols bgp 10 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 10 neighbor peer remote-address 10.1.1.100 set protocols bgp 10 neighbor peer remote-as 10 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 10 3 8 5 0 0 00:00:01 Established 0 5 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 \?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 10 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *ui 10.1.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.0.0/16 10.1.1.100 0 100 0 ? *ui 192.168.1.0/24 10.1.1.100 0 100 0 ? *ui 192.168.2.0/24 10.1.1.100 0 100 0 ? *ui 192.168.3.0/24 10.1.1.100 0 100 0 ? Displayed 5 routes and 5 total paths
Example 12
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address 192.168.1.1/24 set interfaces dummy dum1 address 192.168.2.1/24 set interfaces dummy dum2 address 192.168.3.1/24 set interfaces ethernet eth0 address 10.1.1.100/24 set protocols bgp 10 aggregate-address 192.168.0.0/16 origin incomplete set protocols bgp 10 neighbor peer remote-address 10.1.1.1 set protocols bgp 10 neighbor peer remote-as 20 set protocols bgp 10 neighbor peer route-map export PERMIT set protocols bgp 10 redistribute connected set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Step 2: Set the following configuration in DUT1 :
set interfaces ethernet eth0 address 10.1.1.1/24 set protocols bgp 20 neighbor peer remote-address 10.1.1.100 set protocols bgp 20 neighbor peer remote-as 10 set protocols bgp 20 neighbor peer route-map import PERMIT set protocols route-map PERMIT rule 1 action permit set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify BGP session is established between DUT0 and DUT1.
Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:
10.1.1.1.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 192.168.3.1, local AS number 10 VRF default vrf-id 0 BGP table version 5 RIB entries 8, using 1024 bytes of memory Peers 1, using 24 KiB of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 10.1.1.1 10.1.1.100 4 20 2 2 0 0 0 00:00:00 Established (Policy) 0 N/A Total number of neighbors 1
Attention
Verify that DUT1 receives the aggregate route 192.168.0.0/16 with expected origin.
Step 4: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
[*].+192.168.0.0/16.+0 \?Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths
Attention
Verify that DUT1 also receives the specific /24 routes (not suppressed).
Step 5: Run command protocols bgp show ip at DUT1 and check if output matches the following regular expressions:
192.168.1.0/24[\s\S]+192.168.2.0/24[\s\S]+192.168.3.0/24Show output
BGP table version is 5, local router ID is 10.1.1.1, vrf id 0 Default local pref 100, local AS 20 local address - Status codes: s suppressed, d damped, h history, u unsorted, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *u 10.1.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.0.0/16 10.1.1.100 0 0 10 ? *u 192.168.1.0/24 10.1.1.100 0 0 10 ? *u 192.168.2.0/24 10.1.1.100 0 0 10 ? *u 192.168.3.0/24 10.1.1.100 0 0 10 ? Displayed 5 routes and 5 total paths