This section describes how to add a BGP extended community, that is, the Color Extended Community, to a route through a route-policy, enabling the route to be recursed to an SR-MPLS TE Policy based on the color value and next-hop address in the route.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
A BGP peer is created.
Run ipv4-family unicast
The IPv4 unicast address family view is displayed.
Run peer { ipv4-address | group-name } route-policy route-policy-name { import | export }
A BGP import or export route-policy is configured.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
A BGP4+ 6PE peer is created.
Run ipv6-family unicast
The IPv6 unicast address family view is displayed.
Run peer { ipv4-address | group-name } route-policy route-policy-name { import | export }
A BGP4+ 6PE import or export route-policy is configured.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
A BGP peer is created.
Run ipv4-family vpnv4
The BGP VPNv4 address family view is displayed.
Run peer { ipv4-address | group-name } enable
The BGP VPNv4 peer relationship is enabled.
Run peer { ipv4-address | group-name } route-policy route-policy-name { import | export }
A BGP import or export route-policy is configured.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
A BGP peer is created.
Run ipv6-family vpnv6
The BGP VPNv6 address family view is displayed.
Run peer { ipv4-address | group-name } enable
The BGP VPNv6 peer relationship is enabled.
Run peer { ipv4-address | group-name } route-policy route-policy-name { import | export }
A BGP import or export route-policy is configured.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run bgp as-number
The BGP view is displayed.
The BGP EVPN address family view is displayed.
Run peer { ipv4-address | group-name } enable
The BGP EVPN peer relationship is enabled.
Run peer { ipv4-address | group-name } route-policy route-policy-name { import | export }
A BGP EVPN import or export route-policy is configured.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Run import route-policy policy-name
An import route-policy is configured for the VPN instance IPv4 address family.
Run export route-policy policy-name
An export route-policy is configured for the VPN instance IPv4 address family.
Run commit
The configuration is committed.
Run system-view
The system view is displayed.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv6-family
The VPN instance IPv6 address family view is displayed.
Run import route-policy policy-name
An import route-policy is configured for the VPN instance IPv6 address family.
Run export route-policy policy-name
An export route-policy is configured for the VPN instance IPv6 address family.
Run commit
The configuration is committed.