Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

VRF with Static routes

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.

2 REPLIES

Re: VRF with Static routes

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

New Member

Re: VRF with Static routes

Hi, it worked smoothly...

576
Views
5
Helpful
2
Replies