5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1095
The configured export RT is carried as an extended community in the MP-BGP format to the eBGP peer.
An RT is either:
•
2-byte ASN-related: Composed of an autonomous system number and an arbitraw number.
•
IP address-related: Composed of an IP address and an arbitrary number.
•
4-byte ASN related: Composed of of an 4-byte autonomous system number and an arbitrary
number.
Use the
no
command to remove the route target specified for a VRF instance.
Note:
This command is effective only if BGP is running on the router.
route-target {export | import | both} rt-ext-comm
no route-target {export | import | both} rt-ext-comm
Parameters
export
Exports routing information to the target VPN extended community.
import
Imports routing information from the target VPN extended community.
both
Exports/imports the routing information to/from the target VPN extended
community.
rt-ext-comm
The route-target extended community attributes to be added to the list of
import, export or both (import and export) route-target extended
communities.
The route target specifies a target VPN extended community. Like a
route distinguisher, the route-target extended community can be
specified in one of the following formats:
•
16-bit AS number: your 32-bit value (Ex : 100 :11)
•
32-bit IPv4 address: your 16-bit value (Ex : 10.1.1.1 :22)
•
4-byte AS number: your 32-bit value (Ex: 66666 :33)
Default
The default is VRF does not associate with any RT.
Command Mode
Virtual Router Config
Example
The following example shows how to configure route target extended community attributes for a VRF
instance in IPv4. The result of this command sequence is that VRF named Red has two export extended
communities (100:10 and 300:10) and two import extended communities (300:10 and 192.168.10.1:10).
(Router)(Config)#ip vrf Red
(Router)(Config-vrf-Red)#route-target export 100:10
(Router)(C0nfig-vrf-Red)#route-target import 192.168.10.1:10
(Router)(Config-vrf-Red)#route-target both 300:10
(Router)(Config-vrf-Red)#route-target export 88888:80
(Router)(Config-vrf-Red)#exit
Содержание 5000 Series
Страница 1: ...Draft 1 2 1 ...
Страница 141: ...5000 Series Layer 2 3 Managed Data Center Switch CLI Reference Guide 135 ...