Advertisement
Coop3r

XRV-Config

Oct 1st, 2016
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. !! IOS XR Configuration 5.3.3
  2. !! Last configuration change at Tue Oct 4 16:44:00 2016 by virtual
  3. !
  4. hostname xrv
  5. vrf vrf-a
  6. address-family ipv4 unicast
  7. import route-target
  8. 65535:1
  9. 65535:3
  10. !
  11. export route-policy export-to-c
  12. export route-target
  13. 65535:1
  14. !
  15. !
  16. !
  17. vrf vrf-b
  18. address-family ipv4 unicast
  19. import route-target
  20. 65535:2
  21. 65535:3
  22. !
  23. export route-policy export-to-c
  24. export route-target
  25. 65535:2
  26. !
  27. !
  28. !
  29. vrf vrf-c
  30. address-family ipv4 unicast
  31. import route-target
  32. 65535:100
  33. !
  34. export route-policy export-from-c
  35. !
  36. !
  37. interface Loopback0
  38. ipv4 address 1.1.1.1 255.255.255.255
  39. !
  40. interface Loopback100
  41. vrf vrf-a
  42. ipv4 address 10.1.1.1 255.255.255.255
  43. !
  44. interface Loopback200
  45. vrf vrf-b
  46. ipv4 address 10.2.2.2 255.255.255.255
  47. !
  48. interface Loopback301
  49. vrf vrf-c
  50. ipv4 address 172.16.1.1 255.255.255.255
  51. !
  52. interface Loopback302
  53. vrf vrf-c
  54. ipv4 address 172.16.2.2 255.255.255.255
  55. !
  56. route-policy export-to-c
  57. if destination in (10.1.1.1/32, 10.2.2.2/32) then
  58. set extcommunity rt (65535:100) additive
  59. endif
  60. end-policy
  61. !
  62. route-policy export-from-c
  63. if destination in (172.16.1.1/32, 172.16.2.2/32) then
  64. set extcommunity rt (65535:3) additive
  65. endif
  66. end-policy
  67. !
  68. router bgp 65535
  69. address-family vpnv4 unicast
  70. !
  71. vrf vrf-a
  72. rd 65535:1
  73. address-family ipv4 unicast
  74. aggregate-address 10.0.0.0/8 as-set
  75. aggregate-address 172.16.0.0/21 as-set
  76. redistribute connected
  77. !
  78. !
  79. vrf vrf-b
  80. rd 65535:2
  81. address-family ipv4 unicast
  82. redistribute connected
  83. !
  84. !
  85. vrf vrf-c
  86. rd 65535:3
  87. address-family ipv4 unicast
  88. redistribute connected
  89. !
  90. !
  91. !
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement