Allied Telesis C613-16164-00 REV E Network Card User Manual


 
Configure VRF-lite | Page 21
Dynamic inter-VRF communication explained
Using the route-target command
When BGP is used for inter-VRF communication, dynamic route leakage of BGP routes from
one VRF instance to another is achieved via the VRF route-target command.
There are three variations of the route-target command:
1. route-target export <ASN:VRFinstance>
for example:
ip vrf red
rd 100:1
route-target export 100:1
2. route-target import <ASN:VRFinstance>
for example:
ip vrf red
rd 100:1
route-target import 100:2
3. route-target both <ASN:VRFinstance>*
for example:
ip vrf red
rd 100:1
route-target export 100:1
route-target export 100:2
route-target export 100:3
route-target import 100:2
can be replaced with:
ip vrf red
rd 100:1
route-target export 100:1
route-target export 100:3
route-target both 100:2
*Use of the command route-target both is uncommon in a VRF-lite environment.
The command route-target export applies a BGP extended community attribute to each
BGP prefix stored in the BGP route table of the address-family associated with the VRF
instance. The content of this attribute is the (ASN) that was specified in the route-target
export command.