VRF with Static routes

Unanswered Question
Nov 13th, 2007

In a 3750 I have 3 vrf, each one with its associated vlans and each one with a static default route to each different gateway, now each vrf need to access a common Vlan (a new web service), how can I accomplish it?

Ip vrf external

rd 100:1

Int vlan 100

ip vrf forwarding external

ip add x.x.x.x

Ip vrf internal

rd 200:1

Int vlan 200

ip vrf forwarding internal

ip add y.y.y.y

Ip vrf partners

rd 300:1

Int vlan 300

ip vrf forwarding external

ip add z.z.z.z

ip route vrf internal 0 0 x.x.x.1

ip route vrf external 0 0 y.y.y.1

ip route vrf partner 0 0 z.z.z.1

int vlan 500 <-- Common vlan

ip add a.a.a.a

Thanks.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
swaroop.potdar Tue, 11/13/2007 - 08:55

You can include the common Vlan into a VRF (for eg : central services) run MPBGP for local inter vrf route distribution and you are all set to go.

Here is a sample config.

!

ip vrf A

rd 100:1

route-target export 100:1

route-target import 100:1

route-target import 100:3

!

ip vrf B

rd 100:2

route-target export 100:2

route-target import 100:2

route-target import 100:3

!

!

ip vrf Central

rd 100:3

route-target export 100:3

route-target import 100:2

route-target import 100:1

!

!

int vlan 500

ip vrf forwarding Central

!

router bgp 1

no synchronization

bgp log-neighbor-changes

no auto-summary

!

address-family ipv4 vrf B

redistribute connected

redistribute static

no synchronization

exit-address-family

!

address-family ipv4 vrf A

redistribute connected

redistribute static

no synchronization

exit-address-family

!

!

address-family ipv4 vrf Central

redistribute connected

redistribute static

no synchronization

exit-address-family

!

HTH-Cheers,

Swaroop

Actions

This Discussion