Default
Scenario to verify BGP default parameter configuration.
BGP default parameters control baseline behavior for all peers unless explicitly overridden.
The local-pref option sets the default local preference value used in the BGP decision
process when comparing routes. Higher values indicate more preferred routes, and this applies
to all iBGP routes received from peers.
In this test suite, DUT0 establishes iBGP sessions with DUT1 to verify default parameter behavior. For local preference, routes received from DUT1 demonstrate how the configured default value influences route selection.
Test BGP Basic Session Without Default Parameters
Description
This test verifies basic iBGP session establishment without any default parameters configured. DUT0 (AS 100) establishes an iBGP session with DUT1 (AS 100) which advertises a connected network. Without any default parameter configuration, BGP uses standard default values: local preference of 100 and IPv4 unicast is negotiated by default. This test demonstrates baseline BGP behavior before applying any custom default parameters.
Scenario
Note
Configure basic iBGP without any default parameters. This establishes a baseline for comparison with other tests.
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.10.0.100/24 set protocols bgp 100 neighbor peer remote-address 10.10.0.201 set protocols bgp 100 neighbor peer remote-as 100 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.10.0.201/24 set protocols bgp 100 neighbor peer remote-address 10.10.0.100 set protocols bgp 100 neighbor peer remote-as 100 set protocols bgp 100 redistribute connected set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify iBGP session establishes 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.10.0.201.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 10.10.0.100, local AS number 100 VRF default vrf-id 0 BGP table version 1 RIB entries 1, using 128 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.10.0.201 10.10.0.100 4 100 4 4 1 0 0 00:00:02 Established 1 0 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify DUT0 receives the connected network from DUT1.
Step 4: Run command protocols bgp show ip 10.10.0.0/24 at DUT0 and check if output matches the following regular expressions:
10.10.0.201Show output
BGP routing table entry for 10.10.0.0/24, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 10.10.0.201 from 10.10.0.201 (10.10.0.201) Origin incomplete, metric 0, localpref 100, valid, internal, best (First path received) Last update: Thu Mar 5 14:54:49 2026
Attention
Verify default behavior: route has default local preference of 100 (BGP standard default).
Step 5: Run command protocols bgp show ip 10.10.0.0/24 at DUT0 and check if output matches the following regular expressions:
localpref 100Show output
BGP routing table entry for 10.10.0.0/24, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 10.10.0.201 from 10.10.0.201 (10.10.0.201) Origin incomplete, metric 0, localpref 100, valid, internal, best (First path received) Last update: Thu Mar 5 14:54:49 2026
Test BGP Default Local Preference
Description
This test verifies that default local-pref sets the baseline local preference value
for routes advertised to iBGP peers. DUT0 (AS 100) establishes an iBGP session with
DUT1 (AS 100) and advertises its connected network. With default local-pref 150
configured on DUT0, routes sent to iBGP peers inherit this value. The test verifies that
DUT1 receives routes from DUT0 with local preference of 150 in its BGP table.
Scenario
Note
Configure iBGP with default local-pref 150 on DUT0. Routes advertised to DUT1 will have this local preference value.
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address 10.10.0.100/24 set protocols bgp 100 neighbor peer remote-address 10.10.0.201 set protocols bgp 100 neighbor peer remote-as 100 set protocols bgp 100 parameters default local-pref 150 set protocols bgp 100 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.10.0.201/24 set protocols bgp 100 neighbor peer remote-address 10.10.0.100 set protocols bgp 100 neighbor peer remote-as 100 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify iBGP session establishes 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.10.0.201.*EstablishedShow output
IPv4 Unicast Summary: BGP router identifier 10.10.0.100, local AS number 100 VRF default vrf-id 0 BGP table version 1 RIB entries 1, using 128 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.10.0.201 10.10.0.100 4 100 3 5 1 0 0 00:00:01 Established 0 1 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify DUT1 receives the connected network from DUT0.
Step 4: Run command protocols bgp show ip 10.10.0.0/24 at DUT1 and check if output matches the following regular expressions:
10.10.0.100Show output
BGP routing table entry for 10.10.0.0/24, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 10.10.0.100 from 10.10.0.100 (10.10.0.100) Origin incomplete, metric 0, localpref 150, valid, internal, best (First path received) Last update: Thu Mar 5 14:55:01 2026
Attention
Verify route has configured local preference of 150. DUT1 should see the route from DUT0 with “localpref 150” indicating the default value is applied.
Step 5: Run command protocols bgp show ip 10.10.0.0/24 at DUT1 and check if output matches the following regular expressions:
localpref 150Show output
BGP routing table entry for 10.10.0.0/24, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 10.10.0.100 from 10.10.0.100 (10.10.0.100) Origin incomplete, metric 0, localpref 150, valid, internal, best (First path received) Last update: Thu Mar 5 14:55:01 2026