BGP FlowSpec Configuration
Enabling BGP FlowSpec Address Family
Adding the FlowSpec address family to the BGP address-family configuration enables the exchange of BGP FlowSpec NLRIs.
Syntax:
set <instance> <instance-name> protocol bgp address-family <afi> <safi>
Attribute | Description |
---|---|
<instance-name> |
Name of the BGP instance |
<afi> |
Address family identifier (AFI). Supported values: ipv4, ipv6 |
<safi> |
Subsequent address family identifier (SAFI). Specify "flowspec" as the SAFI for BGP to enable the exchange of BGP FlowSpec NLRIs. |
Example 1: BGP FlowSpec IPv4 Configuration
supervisor@rtbrick>LEAF01: cfg> show config instance default protocol bgp address-family ipv4 flowspec { "rtbrick-config:address-family": [ { "afi": "ipv4", "safi": "flowspec" } ] }
cli
Example 2: BGP FlowSpec IPv6 Configuration
supervisor@rtbrick>LEAF01: cfg> show config instance default protocol bgp address-family ipv6 flowspec
{
"rtbrick-config:address-family": [
{
"afi": "ipv6",
"safi": "flowspec"
}
]
}
asciidoc
Enabling BGP FlowSpec in Peer Group Address Family
Syntax:
set instance <instance-name> protocol bgp peer-group <peer-group-name> address-family <afi> <safi> <attribute> <value>
Attribute | Description |
---|---|
<afi> |
Address family identifier (AFI). Supported values: ipv4, ipv6, l2vpn |
<safi> |
Subsequent address family identifier (SAFI). Specify "flowspec" as the SAFI to enable BGP FlowSpec in Peer Group address family. |
Example 1: BGP FlowSpec in Peer Group Address Family
supervisor@rtbrick>LEAF01: cfg> show config instance default protocol bgp peer-group { "rtbrick-config:peer-group": [ { "pg-name": "PE2", "remote-as": 4200000002, "address-family": [ { "afi": "ipv4", "safi": "flowspec" }, { "afi": "ipv4", "safi": "unicast" }, { "afi": "ipv6", "safi": "flowspec" }, { "afi": "ipv6", "safi": "unicast" } ] } ] }
cli