cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1049
Views
5
Helpful
2
Replies

VRF with Static routes

t00834720
Level 1
Level 1

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 2

swaroop.potdar
Level 7
Level 7

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

Hi, it worked smoothly...