Configure IPv6 Route Preferences

Configure IPv6 route preferences to give preference to routes learned for a specific protocol.

Before you begin

Important

Important

Changing route preferences can affect system performance and network accessibility while you perform the procedure. Change a prefix list or a routing protocol before you activate the protocols.

Procedure

  1. Enter either Global Configuration mode or VRF Router Configuration mode for a specific VRF context:

    enable

    configure terminal

    Optional: router vrf WORD<1-16>

  2. Configure the route preference:

    ipv6 route preference protocol <static|ebgp|ibgp|ospfv3-intra|ospfv3-inter|ospfv3-extern1|ospfv3-extern2|ripng|spbm-level1> <0-255>

  3. Confirm that the configuration is correct:

    show ipv6 route preference [vrf WORD<1–16> | vrfids WORD<0–512>]

Example

Configure the route preference to RIPng and confirm the configuration is correct.

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#ipv6 route preference protocol ripng 10
Switch:1(config)#show ipv6 route preference 
==========================================================================================
                                IPv6 Route Preference - GlobalRouter
==========================================================================================
PROTOCOL        DEFAULT    CONFIG    
------------------------------------------------------------------------------------------
LOCAL           0          0         
STATIC          5          5         
SPBM_L1         7          7         
OSPFv3_INTRA    20         20        
OSPFv3_INTER    25         25        
EBGP            45         45        
RIPNG           100        100       
OSPFv3_E1       120        120       
OSPFv3_E2       125        125       
IBGP            175        175  

Variable definitions

Use the data in the following table to use the ipv6 route preference and the show ipv6 route preference commands.

Variable

Value

<0-255>

Assigns a route preference value.

ebgp

Configures the preference for protocol type EBGP.

ibgp

Configures the preference for protocol type IBGP.

ospfv3-extern1

Configures the preference for protocol type OSPFv3 external type 1.

ospfv3-extern2

Configures the preference for protocol type OSPFv3 external type 2.

ospfv3-intra

Configures the preference for protocol type OSPFv3 intra-area.

ospfv3-inter

Configures the preference for protocol type OSPFv3 inter-area.

ripng

Configures the preference for protocol type RIPng.

spbm-level1

Configures the preference for protocol type spbm-level1.

static

Configures the preference for protocol type static.