Got it

Which Views Can the preference Command Be Run?

Latest reply: May 4, 2017 08:53:39 1174 1 0 0 0

Hello everyone,

Which views can the preference command be run?

Please help me! Thank you!

  • x
  • convention:

Created May 4, 2017 08:53:39

An router learns a VPNv4 route from an MP-IBGP peer and then injects the VPNv4 route to the routing table of the VPN instance, and learns an OSPF route from OSPF multi-instance (CE). By default, the device selects the OSPF route. A customer, however, requires that the device should select the route to be crossed to the VPN instance. How to configure the device to select the VPNv4 route?

To configure the device to select the VPNv4 route, you need to set the value of local in the preference { externalinternallocal | route-policyroute-policy-name } command to make the preference value of the BGP route smaller than the preference value of the OSPF route so that the BGP route is preferred.

The views where the preference command can be run include the BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address view, BGP-VPN instance view, and BGP-VPNv6 instance view.

The preference command cannot be used in the BGP-VPNv4 address family view, because VPNv4 routes do not guide packet forwarding or take part in route selection. To change the results of VPN route selection, run the preference command in the BGP-VPN instance view.
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.