In VPNs, BGP Flow Specification routes are generated by a traffic analysis server in dynamic BGP VPN Flow Specification.
When deploying dynamic BGP VPN Flow Specification, a BGP VPN Flow Specification peer relationship needs to be established between the traffic analysis server and each ingress of the network to transmit BGP VPN Flow Specification routes.
In an AS with multiple ingresses, a BGP Flow route reflector (Flow RR) can be deployed to reduce the number of BGP VPN Flow Specification peer relationships and save CPU resources.
If you want to filter traffic based on the address prefix but the BGP VPN Flow Specification route carrying the filtering rule cannot be authenticated, disable the authentication of BGP VPN Flow Specification routes received from a specified peer.
Before configuring dynamic BGP VPN Flow Specification, configure a VPN instance and bind interfaces to a VPN instance.
Before configuring a Flow RR, establish a BGP VPN Flow Specification peer relationship between the Flow RR with the traffic analysis server and every ingress.
The redirection next-hop attribute ID can be 0x010C (ID defined in a relevant RFC) or 0x0800 (ID defined in a relevant draft). If a Huawei device needs to communicate with a non-Huawei device that does not support the redirection next-hop attribute ID of 0x010C or 0x0800, set the redirection next-hop attribute ID of BGP VPN Flow Specification routes as required.
Set the redirection next-hop attribute ID to 0x010C (ID defined in a relevant RFC) for BGP VPN Flow Specification routes.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
Run ipv4-flow vpn-instance vpn-instance-name
The BGP-Flow VPN instance IPv4 address family view is displayed.
Run peer ipv4-address redirect ip rfc-compatible
The redirection next-hop attribute ID is set to 0x010C (ID defined in a relevant RFC) for BGP VPN Flow Specification routes.
Run commit
The configuration is committed.
Set the redirection next-hop attribute ID to 0x0800 (ID defined in a relevant draft) for BGP VPN Flow Specification routes.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
Run ipv4-flow vpn-instance vpn-instance-name
The BGP-Flow VPN instance IPv4 address family view is displayed.
Run peer ipv4-address redirect ip draft-compatible
The redirection next-hop attribute ID is set to 0x0800 (ID defined in a relevant draft) for BGP VPN Flow Specification routes.
Run commit
The configuration is committed.
When the preceding configuration is complete, you can run the following commands to verify the configurations.
Run the display bgp flow vpnv4 vpn-instance vpn-instance-name peer [ [ ipv4-address ] verbose ] command to check information about BGP VPN Flow Specification peers.
Run the display bgp flow vpnv4 vpn-instance vpn-instance-name routing-table command to check information about BGP VPN Flow Specification routes.
Run the display bgp flow vpnv4 vpn-instance vpn-instance-name routing-table [ peer ipv4-address { advertised-routes | received-routes [ active ] } ] statistics command to check statistics about BGP VPN Flow Specification routes.