Configuring
Static inter-VRF routing
Static
The following diagram illustrates use of static routing to achieve inter- VRF communication in
|
|
|
| 1 9 2 . 1 6 8 . 2 0 . 0/2 4 | 1 9 2 . 1 6 8 . 2 0 . 0/2 4 |
|
|
|
| ||
| 1 9 2 . 1 6 8 . 1 . 0/2 4 global default VRF domain |
| VRF green | 1 9 2 . 1 6 8 . 5 0 . 0/2 4 |
| ||||||
|
|
| VRF red |
|
|
|
|
| VRF blue |
|
|
|
|
|
|
|
| 192.168.20.6 |
|
|
| 192.168.50.10 |
|
|
|
| VLAN20 | VLAN10 |
| VLAN10 |
| VLAN30 |
| ||
192.168.1.5 |
|
| 192.168.20.5 |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Device A |
| Device B |
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
DEVICE A STATIC ROUTES CONFIGURATION | DEVICE B STATIC ROUTES CONFIGURATION |
|
|
ip route vrf red 192.168.20.0/24 vlan10 | ip route vrf blue 192.168.20.0/24 vlan10 |
From source vrf red, create a static route to | From source vrf blue, create a static route to 192.168.20.0/24 |
192.168.20.0/24 to access target vlan10. Target vlan is | to access target vlan10. Target vlan is required when |
required when performing static IVR. | performing static IVR. |
ip route 192.168.1.0/24 vlan20 | ip route vrf green 192.168.50.0/24 vlan30 | |
From the source global VRF domain, create a static route to | From the source vrf green, create a static route to | |
192.168.1.0/24 to access target vlan20. Target vlan is | 192.168.50.0/24 to access target vlan30. Target vlan is required | |
when performing static IVR. | ||
required when performing static IVR. | ||
| ||
|
|
ip route vrf red 192.168.50.0/24 192.168.20.6 vlan10 | ip route vrf blue 192.168.1.0/24 192.168.20.5 vlan10 |
From source vrf red, create a static route to | From source vrf blue, create a static route to 192.168.1.0/24 |
192.168.50.0/24 with a next hop of 192.168.20.6 | with a next hop of 192.168.20.5 egressing target vlan10. |
| |
egressing target vlan10. Target vlan is required when | Target vlan is required when performing static IVR. |
| |
performing static IVR. |
|
ip route 192.168.50.0/24 192.168.20.6 | ip route vrf green 192.168.1.0/24 192.168.20.5 | |
From the global VRF domain, create a static route to | From the source vrf green, create a static route to 192.168.1.0/ | |
192.168.50.0/24 with a next hop of 192.168.20.6. | 24 with a next hop of 192.168.20.5. Static routes to networks | |
within a VRF instance do not require the target vlan. | ||
Static routes to networks within a VRF instance do | ||
| ||
not require target vlan. |
| |
|
|
Configure