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:
| Attribute | Description |
|---|---|
|
Name of the BGP instance |
|
Address family identifier (AFI). Supported values: ipv4, ipv6 |
|
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"
}
]
}
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"
}
]
}
Enabling BGP FlowSpec in Peer Group Address Family
Syntax:
| Attribute | Description |
|---|---|
|
Address family identifier (AFI). Supported values: ipv4, ipv6, l2vpn |
|
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"
}
]
}
]
}