The vpn-orf enable command enables Outbound Route Filtering(ORF).
The undo vpn-orf enable command disables ORF.
By default, ORF is not enabled.
Usage Scenario
To enable ORF in the L2VPN-AD address family view, run the vpn-orf enable command. If ORF is enabled in the L2VPN-AD address family, a BGP speaker filters the routes to be advertised to a peer by matching the local export route target (ERT) against the import route target (IRT) of the peer so that the peer receives only desired routes.
Precautions
The ipv4-family vpn-target command must also be run. If the vpn-orf enable command is run, but the ipv4-family vpn-target command is not, the BGP speaker does not advertise routes to the peer in the L2VPN-AD address family.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] ipv4-family vpn-target [*HUAWEI-bgp-af-vpn-target] commit [~HUAWEI-bgp-af-vpn-target] quit [*HUAWEI-bgp] l2vpn-ad-family [*HUAWEI-bgp-af-l2vpn-ad] peer 1.1.1.1 enable [*HUAWEI-bgp-af-l2vpn-ad] vpn-orf enable