cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19717
Views
3
Helpful
7
Replies

How to configure VRF in IOS XR

Hello Folks,

I know this, is this correct?

Can we configure rd in ios xr? I am unable to find it.

I found somewhere that IOS XR by default uses vrf.

vrf vrf_cu1

interface interface-type1

interface interface-type2

addipv4 uni

route-target import 1:1

route-target export 1:1

Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid."       

3 Accepted Solutions

Accepted Solutions

Vivek Ruhil
Cisco Employee
Cisco Employee

Hi

RD is configured under BGP for a particular VRF.

Example:

router bgp 1

vrf ABC

  rd 1:!

!

For more information, check the below link:

http://www.cisco.com/en/US/docs/routers/asr9000/software/asr9k_r4.3/lxvpn/configuration/guide/vcasr9k43v3.html#wp1167357

Regards

View solution in original post

Harold Ritter
Spotlight
Spotlight

Hi Thanveer,

in IOS-XR the RD is not configured under the VRF definition as such but rather under BGP as follow:

router bgp 100

    !        

    vrf vpn1

    rd 100:1

    address-family ipv4 unicast

      redistribute connected

Hope this helps

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

Hi Thanveer,

This is more a VRF-lite (multiVRF) scenario. In such a scenario, you wouldn't even need an RD. RD is only required to make VPNv4 prefixes unique and there is no VPNv4 involved in this scenario.

Hope this helps

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

View solution in original post

7 Replies 7

Vivek Ruhil
Cisco Employee
Cisco Employee

Hi

RD is configured under BGP for a particular VRF.

Example:

router bgp 1

vrf ABC

  rd 1:!

!

For more information, check the below link:

http://www.cisco.com/en/US/docs/routers/asr9000/software/asr9k_r4.3/lxvpn/configuration/guide/vcasr9k43v3.html#wp1167357

Regards

Harold Ritter
Spotlight
Spotlight

Hi Thanveer,

in IOS-XR the RD is not configured under the VRF definition as such but rather under BGP as follow:

router bgp 100

    !        

    vrf vpn1

    rd 100:1

    address-family ipv4 unicast

      redistribute connected

Hope this helps

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thanks Harold and Vivek,

I dont know whether or not to ask but I have a small doubt

This is the case even when my pe to ce potocol is other than bgp, am i right?

Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid."

Correct. Even if you use another PE-CE routing protocol, you will still need to configure the VRF section under the BGP configuration.

Hope this helps

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Thanks Harold,

I have a creepy doubt now.

Think I have a scenario

             

                R4

                 |

                 |

R1------->R2<-------R3

                 |

                 |

                R5

Here I want R1 to communicate with R3

and             R4  to communicate with R5

I have put interfaces going to R1 and R3 in vrf_1

and th interfaces going to R4 and R5 in vrf_2 in R2

Now R2 has protocol for R1 and R3 as ospf

and for R4 and R5 also has the same.

R2 is bgp free and where do I have my RD configured? How the router R2 distinguishes between two vrfs

Does it do automatically?

For the Scenario in which I have bgp and If I donot configure RD, does the router take it automatically or  I  must and should configure RD?

I am unable to catch the point why We need to configure RD in bgp addressfamily for VRF

Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid."

Hi Thanveer,

This is more a VRF-lite (multiVRF) scenario. In such a scenario, you wouldn't even need an RD. RD is only required to make VPNv4 prefixes unique and there is no VPNv4 involved in this scenario.

Hope this helps

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hurray....!!!!

I got the point .

Thank you very much..

Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid."