Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. !
  2. hostname HEADEND
  3. !
  4. vrf definition CORP
  5. rd 1:1
  6. !
  7. address-family ipv4
  8. exit-address-family
  9. !
  10. vrf definition FVRF-100
  11. !
  12. address-family ipv4
  13. exit-address-family
  14. !
  15. vrf definition FVRF-200
  16. !
  17. address-family ipv4
  18. exit-address-family
  19. !
  20. enable password cisco
  21. !
  22. username cisco privilege 15 password 0 cisco
  23. !
  24. interface Loopback0
  25. vrf forwarding CORP
  26. ip address 10.1.0.0 255.255.255.255
  27. !
  28. interface Tunnel100
  29. vrf forwarding CORP
  30. ip address 192.168.100.1 255.255.255.0
  31. no ip redirects
  32. ip mtu 1400
  33. ip nhrp authentication 100
  34. ip nhrp map multicast dynamic
  35. ip nhrp network-id 100
  36. ip nhrp holdtime 600
  37. ip nhrp redirect
  38. ip tcp adjust-mss 1360
  39. tunnel source Ethernet0/0
  40. tunnel mode gre multipoint
  41. tunnel key 100
  42. tunnel path-mtu-discovery
  43. tunnel vrf FVRF-100
  44. !
  45. interface Tunnel200
  46. vrf forwarding CORP
  47. ip address 192.168.200.1 255.255.255.0
  48. no ip redirects
  49. ip mtu 1400
  50. ip nhrp authentication 200
  51. ip nhrp map multicast dynamic
  52. ip nhrp network-id 200
  53. ip nhrp holdtime 600
  54. ip nhrp redirect
  55. ip tcp adjust-mss 1360
  56. tunnel source Ethernet0/1
  57. tunnel mode gre multipoint
  58. tunnel key 200
  59. tunnel path-mtu-discovery
  60. tunnel vrf FVRF-200
  61. !
  62. interface Ethernet0/0
  63. vrf forwarding FVRF-100
  64. ip address 100.0.0.1 255.255.255.0
  65. !
  66. interface Ethernet0/1
  67. vrf forwarding FVRF-200
  68. ip address 200.0.0.1 255.255.255.0
  69. !
  70. router bgp 1
  71. bgp router-id 10.1.0.0
  72. bgp log-neighbor-changes
  73. bgp listen range 192.168.200.0/24 peer-group T200-PEERS
  74. bgp listen range 192.168.100.0/24 peer-group T100-PEERS
  75. no bgp default ipv4-unicast
  76. !
  77. address-family ipv4 vrf CORP
  78. network 10.1.0.0 mask 255.255.255.255
  79. aggregate-address 10.1.0.0 255.255.0.0 summary-only
  80. neighbor T100-PEERS peer-group
  81. neighbor T100-PEERS remote-as 65335
  82. neighbor T100-PEERS send-community both
  83. neighbor T100-PEERS soft-reconfiguration inbound
  84. neighbor T100-PEERS route-map RMAP_T100-IN in
  85. neighbor T100-PEERS route-map RMAP_T100-OUT out
  86. neighbor T200-PEERS peer-group
  87. neighbor T200-PEERS remote-as 65335
  88. neighbor T200-PEERS send-community both
  89. neighbor T200-PEERS soft-reconfiguration inbound
  90. neighbor T200-PEERS route-map RMAP_T200-IN in
  91. neighbor T200-PEERS route-map RMAP_T200-OUT out
  92. exit-address-family
  93. !
  94. ip bgp-community new-format
  95. !
  96. route-map RMAP_T200-IN permit 10
  97. set as-path prepend 65200
  98. !
  99. route-map RMAP_T100-IN permit 10
  100. set as-path prepend 65100
  101. !
  102. route-map RMAP_T200-OUT permit 10
  103. set as-path prepend 65200
  104. set community 655361 additive
  105. !
  106. route-map RMAP_T100-OUT permit 10
  107. set as-path prepend 65100
  108. set community 655361 additive
  109. !
  110. event manager session cli username "cisco"
  111. event manager applet BGP-DETECT
  112. event syslog pattern ".*sent to neighbor .192.168.[12]00.[0-9]+ passive 2/2 .peer in wrong AS. 2 bytes [0-9]+"
  113. action 0.0 regexp "neighbor..([0-9\.]+)" "$_syslog_msg" ignore peer_ip
  114. action 0.1 regexp "[0-9]+\.[0-9]+\.([0-9]+)\.([0-9]+)" "$peer_ip" ignorevar peergroup_id site_id
  115. action 1.0 cli command "enable"
  116. action 1.1 cli command "conf t"
  117. action 2.0 cli command "router bgp 1"
  118. action 2.1 cli command " address-family ipv4 vrf CORP"
  119. action 2.2 cli command " neighbor $peer_ip remote-as $site_id"
  120. action 2.3 cli command " neighbor $peer_ip description AUTOPROVISIONED: SITE $site_id TUNNEL $peergroup_id"
  121. !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement