Default-Originate
Scenario to verify BGP peer-group address-family ipv6-unicast default-originate inheritance.
When default-originate is configured on a peer-group under address-family ipv6-unicast,
neighbors that are members of that group receive a default IPv6 route (::/0).
Test iBGP IPv6 - Peer-group default-originate sends default route
Description
Test that default-originate configured on a peer-group under address-family
ipv6-unicast is inherited by its members. DUT1 should receive the default IPv6
route ::/0 from DUT0 through the peer-group configuration.
Scenario
Step 1: Set the following configuration in DUT0 :
set interfaces ethernet eth0 address '2001:db8:1::100/64' set protocols bgp 20 neighbor peer address-family ipv6-unicast activate set protocols bgp 20 neighbor peer peer-group MYGROUP set protocols bgp 20 neighbor peer remote-address '2001:db8:1::200' set protocols bgp 20 neighbor peer remote-as 20 set protocols bgp 20 parameters router-id 1.1.1.100 set protocols bgp 20 peer-group MYGROUP address-family ipv6-unicast default-originate set protocols bgp 20 peer-group MYGROUP remote-as 20 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 '2001:db8:1::200/64' set protocols bgp 20 neighbor peer address-family ipv6-unicast activate set protocols bgp 20 neighbor peer remote-address '2001:db8:1::100' set protocols bgp 20 neighbor peer remote-as 20 set protocols bgp 20 parameters router-id 1.1.1.200 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify iBGP session establishes.
Step 3: Run command protocols bgp show ipv6 summary at DUT0 and check if output matches the following regular expressions:
2001:db8:1::200.*EstablishedShow output
IPv6 Unicast Summary: BGP router identifier 1.1.1.100, local AS number 20 VRF default vrf-id 0 BGP table version 0 RIB entries 0, using 0 bytes of memory Peers 1, using 24 KiB of memory Peer groups 1, using 64 bytes of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 2001:db8:1::200 0.0.0.0 4 20 5 3 0 0 0 00:00:00 Established 0 0 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify DUT1 receives default IPv6 route ::/0 from DUT0.
Step 4: Run command protocols bgp show ipv6 ::/0 at DUT1 and check if output contains the following tokens:
2001:db8:1::100 from 2001:db8:1::100 (1.1.1.100)Show output
BGP routing table entry for ::/0, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 2001:db8:1::100 from 2001:db8:1::100 (1.1.1.100) (fe80::dcad:beff:feef:6c00) (used) Origin IGP, metric 0, localpref 100, valid, internal, best (First path received) Last update: Thu Mar 5 15:53:34 2026
Test iBGP IPv6 - Peer-group default-originate with route-map
Description
Test that default-originate with route-map configured on a peer-group under
address-family ipv6-unicast conditionally advertises a default IPv6 route (::/0).
DUT0 originates default route only when route 2001:db8:10::/64 exists (matched by route-map).
Scenario
Step 1: Set the following configuration in DUT0 :
set interfaces dummy dum0 address '2001:db8:10::1/64' set interfaces ethernet eth0 address '2001:db8:1::100/64' set protocols bgp 20 address-family ipv6-unicast redistribute connected set protocols bgp 20 neighbor peer address-family ipv6-unicast activate set protocols bgp 20 neighbor peer peer-group MYGROUP set protocols bgp 20 neighbor peer remote-address '2001:db8:1::200' set protocols bgp 20 neighbor peer remote-as 20 set protocols bgp 20 parameters router-id 1.1.1.100 set protocols bgp 20 peer-group MYGROUP address-family ipv6-unicast default-originate route-map DEFAULT-MAP set protocols bgp 20 peer-group MYGROUP remote-as 20 set protocols ipv6 prefix-list TRACK rule 10 action permit set protocols ipv6 prefix-list TRACK rule 10 prefix '2001:db8:10::/64' set protocols route-map DEFAULT-MAP rule 10 action permit set protocols route-map DEFAULT-MAP rule 10 match ipv6 address prefix-list TRACK 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 '2001:db8:1::200/64' set protocols bgp 20 neighbor peer address-family ipv6-unicast activate set protocols bgp 20 neighbor peer remote-address '2001:db8:1::100' set protocols bgp 20 neighbor peer remote-as 20 set protocols bgp 20 parameters router-id 1.1.1.200 set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'
Attention
Verify iBGP session establishes.
Step 3: Run command protocols bgp show ipv6 summary at DUT0 and check if output matches the following regular expressions:
2001:db8:1::200.*EstablishedShow output
IPv6 Unicast Summary: BGP router identifier 1.1.1.100, local AS number 20 VRF default vrf-id 0 BGP table version 2 RIB entries 3, using 384 bytes of memory Peers 1, using 24 KiB of memory Peer groups 1, using 64 bytes of memory Neighbor LocalAddr V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State PfxRcd PfxSnt Desc 2001:db8:1::200 0.0.0.0 4 20 2 2 0 0 0 00:00:00 Established 0 0 FRRouting/10.4.1 Total number of neighbors 1
Attention
Verify DUT1 receives default IPv6 route ::/0 from DUT0.
Step 4: Run command protocols bgp show ipv6 ::/0 at DUT1 and check if output contains the following tokens:
2001:db8:1::100 from 2001:db8:1::100 (1.1.1.100)Show output
BGP routing table entry for ::/0, version 1 Paths: (1 available, best #1, table default) Not advertised to any peer Local 2001:db8:1::100 from 2001:db8:1::100 (1.1.1.100) (fe80::dcad:beff:feef:6c00) (used) Origin IGP, metric 0, localpref 100, valid, internal, best (First path received) Last update: Thu Mar 5 15:53:48 2026