![](/images/new-backgrounds/1206105/20610539x1.webp)
Dynamic
Inter-VRF communication via BGP
Dynamic
OSFP |
|
|
|
|
|
|
|
|
routerpeer |
|
|
|
|
|
|
|
|
|
| 1 |
|
| Redistribute BGP |
|
| |
| OSPF |
|
| from VRF red FIB |
|
| ||
|
|
|
|
|
|
| ||
|
|
| VRF |
|
|
|
|
|
Redistribute OSPF |
| red |
|
|
| Redistribute BGP | ||
| FIB |
|
|
|
| |||
from VRF red FIB |
|
|
|
|
| from VRF blue FIB | ||
|
|
|
|
|
| |||
BGP |
|
|
|
|
|
|
| |
address |
|
|
|
|
|
|
| |
family | - |
|
|
|
| VRF |
|
|
red |
|
|
|
| blue |
|
| |
|
|
| BGP | FIB |
| OSPF |
| |
|
|
|
|
| 2 | |||
|
|
| address |
|
|
| ||
|
| family | - |
|
|
|
| |
|
| blue |
|
|
|
|
| |
|
|
|
|
| Redistribute OSPF |
| OSFP | |
|
|
|
|
| from VRF blue FIB |
| routerpeer | |
BGP routes copied between BGP |
|
|
|
|
|
| VRF Device | |
|
|
|
|
|
|
|
| |
communication |
|
|
|
|
|
|
|
|
In the diagram above, the following is configured:
OSPF1 is configured in
OSPF2 is configured in
BGP is configured and contains BGP
Both BGP
Then route leakage of routes from VRF red to VRF blue occurs as follows:
1.OSPF1 selects appropriate OSPF routes learned from external VRF red OSPF peer and automatically adds them to red FIB route table.
2.OSPF1 routes are imported from red FIB route table into BGP
3.Via the
4.Appropriate BGP
5.OSPF2 then imports and redistributes the BGP routes (learned originally from VRF red OSPF peer) into OSPF2 from VRF blue FIB route table (via OSPF redistribute BGP command).
6.Those OSPF routes are then advertised to external VRF blue OSPF peer.
And the same process is used to leak routes from VRF blue to VRF red.
Page 20 Configure