Disable-Send-Community

Scenario to verify BGP peer-group disable-send-community inheritance. When disable-send-community standard is configured on a peer-group, neighbors that are members of that group do not receive community attributes.

Test iBGP - Peer-group send-community enabled by default

Description

Test that BGP community attributes are sent to peer-group members by default. DUT0 advertises route 10.10.0.0/24 with community 65000:100. DUT1 should receive the route with the community attribute visible.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.10.0.100/24
set protocols bgp 20 neighbor peer peer-group MYGROUP
set protocols bgp 20 neighbor peer remote-address 10.10.0.200
set protocols bgp 20 neighbor peer remote-as 20
set protocols bgp 20 peer-group MYGROUP remote-as 20
set protocols bgp 20 redistribute connected route-map SET-COMM
set protocols route-map SET-COMM rule 10 action permit
set protocols route-map SET-COMM rule 10 set community value '65000: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.200/24
set protocols bgp 20 neighbor peer remote-address 10.10.0.100
set protocols bgp 20 neighbor peer remote-as 20
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify iBGP session establishes.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.10.0.200.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.10.0.100, local AS number 20 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 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
10.10.0.200     10.10.0.100     4         20         3         4        1    0    0 00:00:01  Established        0        1 FRRouting/10.4.1

Total number of neighbors 1

Attention

Verify DUT1 receives route 10.10.0.0/24 with community 65000:100.

Step 4: Run command protocols bgp show ip 10.10.0.0/24 at DUT1 and check if output matches the following regular expressions:

Community: 65000:100
Show 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 100, valid, internal, best (First path received)
      Community: 65000:100
      Last update: Thu Mar  5 15:38:58 2026

Test iBGP - Peer-group disable-send-community suppresses community

Description

Test that disable-send-community standard configured on a peer-group prevents community attributes from being sent. DUT0 advertises 10.10.0.0/24 with community 65000:100, but DUT1 should receive the route without the community attribute.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 10.10.0.100/24
set protocols bgp 20 neighbor peer peer-group MYGROUP
set protocols bgp 20 neighbor peer remote-address 10.10.0.200
set protocols bgp 20 neighbor peer remote-as 20
set protocols bgp 20 peer-group MYGROUP disable-send-community standard
set protocols bgp 20 peer-group MYGROUP remote-as 20
set protocols bgp 20 redistribute connected route-map SET-COMM
set protocols route-map SET-COMM rule 10 action permit
set protocols route-map SET-COMM rule 10 set community value '65000: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.200/24
set protocols bgp 20 neighbor peer remote-address 10.10.0.100
set protocols bgp 20 neighbor peer remote-as 20
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Attention

Verify iBGP session establishes.

Step 3: Run command protocols bgp show ip summary at DUT0 and check if output matches the following regular expressions:

10.10.0.200.*Established
Show output
IPv4 Unicast Summary:
BGP router identifier 10.10.0.100, local AS number 20 VRF default vrf-id 0
BGP table version 1
RIB entries 1, using 128 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
10.10.0.200     10.10.0.100     4         20         3         5        1    0    0 00:00:02  Established        0        1 FRRouting/10.4.1

Total number of neighbors 1

Attention

Verify DUT1 receives route 10.10.0.0/24.

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.0/24
Show 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 100, valid, internal, best (First path received)
      Last update: Thu Mar  5 15:39:07 2026

Attention

Verify community 65000:100 is NOT present on DUT1.

Step 5: Run command protocols bgp show ip 10.10.0.0/24 at DUT1 and check if output does not match the following regular expressions:

65000:100
Show 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 100, valid, internal, best (First path received)
      Last update: Thu Mar  5 15:39:07 2026