Configuring Static BGP VPNv6 Flow Specification
Static BGP VPNv6 Flow Specification allows BGP VPNv6 Flow Specification routes to be transmitted and traffic filtering policies to be generated. The policies improve security of devices in VPNs.
Usage Scenario
To deploy static BGP VPNv6 Flow Specification, create a BGP VPN IPv6 Flow Specification route first, and then establish a BGP VPNv6 Flow Specification peer relationship between the device on which the BGP VPN IPv6 Flow Specification route is created and the network ingress to transmit the BGP VPNv6 Flow Specification route.
In an AS with multiple ingresses, a BGP Flow route reflector (Flow RR) can be deployed to reduce the number of BGP VPNv6 Flow Specification peer relationships and save CPU resources.
If you want to filter traffic based on an address prefix and the BGP VPNv6 Flow Specification route carrying the filtering rule fails to be authenticated, disable the authentication of the BGP VPNv6 Flow Specification routes received from a specified peer.
Pre-configuration Tasks
Before configuring static BGP VPNv6 Flow Specification, configure a VPN instance and bind an interface to the VPN instance.
Procedure
- Create a BGP VPN IPv6 Flow Specification route.
- Establish a BGP VPNv6 Flow Specification peer relationship.
- (Optional) Configure a Flow RR.
Before configuring a Flow RR, establish a BGP VPNv6 Flow Specification peer relationship between the Flow RR and the device on which the BGP VPN IPv6 Flow Specification route is created, and between the Flow RR and the network ingress.
Checking the Configurations
Run the following commands to check the previous configuration.
Run the display bgp flow vpnv6 all peer [ [ ipv4-address ] verbose ] command to check information about all BGP VPNv6 Flow Specification peers.
Run the display bgp flow vpnv6 { all | route-distinguisher route-distinguisher } routing-table [ reindex ] command to check information about all BGP VPNv6 Flow Specification routes or about the BGP VPNv6 Flow Specification routes with a specified RD.
Run the display bgp flow vpnv6 { all | route-distinguisher route-distinguisher } routing-table statistics command to check statistics about all BGP VPNv6 Flow Specification routes or about the BGP VPNv6 Flow Specification routes with a specified RD.
# Run the display bgp flow vpnv6 all peer [ [ ipv4-address ] verbose ] command to check whether the BGP VPNv6 Flow Specification peer relationship is established.
<HUAWEI> display bgp flow vpnv6 all peer
BGP local router ID : 10.2.1.2
Local AS number : 200
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
10.2.1.1 4 200 1042 1051 0 15:07:49 Established 0
# Run the display bgp flow vpnv6 { all | route-distinguisher route-distinguisher } routing-table [ reindex ] command to check information about BGP VPNv6 Flow Specification routes.
<HUAWEI> display bgp flow vpnv6 all routing-table 536870913
BGP local router ID : 10.2.1.2
Local AS number : 200
ReIndex : 536870913
Order : 0
Dissemination Rules :
Src. Port : eq 159
BGP flow-vpnv6 routing table entry information of 536870913:
Route Distinguisher: 200:1
Match action :
apply deny
From: 0.0.0.0 (0.0.0.0)
Route Duration: 0d00h02m53s
Ext-Community: RT <111 : 1>
AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, pre 255
Advertised to such 1 peers:
10.2.1.1
# Run the display bgp flow vpnv6 { all | route-distinguisher route-distinguisher } routing-table statistics command on the network ingress to check statistics about the BGP VPNv6 Flow Specification routes received from the specified BGP VPNv6 Flow Specification peer.
<HUAWEI> display bgp flow vpnv6 route-distinguisher 200:1 routing-table statistics
Route Distinguisher: 200:1
Total Number of Routes: 1