Advertisement
Guest User

Untitled

a guest
Apr 27th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. !
  2. ! Zebra configuration saved from vty
  3. ! 2012/04/13 18:16:06
  4. !
  5. hostname ASXXXXX
  6. password 123
  7. enable password 123
  8. log file /var/log/quagga/bgpd.log
  9. !
  10. router bgp XXXXX
  11. bgp router-id xxx.xxx.206.1
  12. bgp log-neighbor-changes
  13. network xxx.xxx.206.0/23
  14. network xxx.xxx.0.0/22
  15. neighbor xxx.xxx.20.189 remote-as YYYYY
  16. neighbor xxx.xxx.20.189 description PEER
  17. neighbor xxx.xxx.20.189 next-hop-self
  18. neighbor xxx.xxx.20.189 default-originate
  19. neighbor xxx.xxx.20.189 soft-reconfiguration inbound
  20. neighbor xxx.xxx.20.189 route-map PEER-in in
  21. neighbor xxx.xxx.20.189 route-map PEER-out out
  22. neighbor xxx.xxx.108.73 remote-as ZZZZZ
  23. neighbor xxx.xxx.108.73 description UAIX
  24. neighbor xxx.xxx.108.73 next-hop-self
  25. neighbor xxx.xxx.108.73 soft-reconfiguration inbound
  26. neighbor xxx.xxx.108.73 route-map UAIX-in in
  27. neighbor xxx.xxx.108.73 route-map UAIX-out out
  28. neighbor xxx.xxx.109.73 remote-as ZZZZZ
  29. neighbor xxx.xxx.109.73 description WORLD
  30. neighbor xxx.xxx.109.73 next-hop-self
  31. neighbor xxx.xxx.109.73 soft-reconfiguration inbound
  32. neighbor xxx.xxx.109.73 prefix-list default in
  33. neighbor xxx.xxx.109.73 route-map WORLD-in in
  34. neighbor xxx.xxx.109.73 route-map WORLD-out out
  35. !
  36. ip prefix-list bogons description bogus nets
  37. ip prefix-list bogons seq 20 permit 127.0.0.0/8 le 32
  38. ip prefix-list bogons seq 30 permit 10.0.0.0/8 le 32
  39. ip prefix-list bogons seq 35 permit 172.16.0.0/12 le 32
  40. ip prefix-list bogons seq 40 permit 192.168.0.0/16 le 32
  41. ip prefix-list bogons seq 45 permit 169.254.0.0/16 le 32
  42. ip prefix-list bogons seq 50 permit 224.0.0.0/4 le 32
  43. ip prefix-list bogons seq 55 permit 240.0.0.0/4 le 32
  44. ip prefix-list default description default route
  45. ip prefix-list default seq 10 permit 0.0.0.0/0
  46. ip prefix-list our-CIDR-blocks seq 5 permit xxx.xxx.0.0/22 le 32
  47. ip prefix-list our-CIDR-blocks seq 10 permit xxx.xxx.206.0/23 le 32
  48. ip prefix-list upstream-in seq 10 permit xxx.xxx.206.0/23
  49. ip prefix-list upstream-in seq 20 permit xxx.xxx.0.0/22
  50. ip prefix-list upstream-out seq 10 permit xxx.xxx.206.0/23
  51. ip prefix-list upstream-out seq 20 permit xxx.xxx.0.0/22
  52. ip prefix-list upstream-out seq 30 permit xxx.xxx.20.0/24
  53. ip prefix-list us-CIDR-blocks seq 5 permit xxx.xxx.20.0/24 le 32
  54. !
  55. ip as-path access-list 1 permit _6451[2-9]_
  56. ip as-path access-list 1 permit _645[2-9][0-9]_
  57. ip as-path access-list 1 permit _64[6-9][0-9][0-9]_
  58. ip as-path access-list 1 permit _65[0-9][0-9][0-9]_
  59. !
  60. route-map WORLD-in permit 5
  61. match ip address prefix-list default
  62. set local-preference 100
  63. !
  64. route-map WORLD-in deny 100
  65. match as-path 1
  66. !
  67. route-map WORLD-in deny 110
  68. match ip address prefix-list bogons
  69. !
  70. route-map WORLD-in deny 115
  71. match ip address prefix-list default
  72. !
  73. route-map WORLD-in deny 120
  74. match ip address prefix-list our-CIDR-blocks
  75. !
  76. route-map UAIX-in deny 100
  77. match as-path 1
  78. !
  79. route-map UAIX-in deny 110
  80. match ip address prefix-list bogons
  81. !
  82. route-map UAIX-in deny 115
  83. match ip address prefix-list default
  84. !
  85. route-map UAIX-in deny 120
  86. match ip address prefix-list our-CIDR-blocks
  87. !
  88. route-map UAIX-in permit 200
  89. set local-preference 500
  90. !
  91. route-map WORLD-out permit 100
  92. match ip address prefix-list upstream-out
  93. !
  94. route-map WORLD-out deny 200
  95. !
  96. route-map UAIX-out permit 100
  97. match ip address prefix-list upstream-out
  98. !
  99. route-map UAIX-out deny 200
  100. !
  101. route-map PEER-in permit 5
  102. match ip address prefix-list default
  103. set local-preference 50
  104. set as-path prepend XXXXX XXXXX XXXXX XXXXX XXXXX
  105. !
  106. route-map PEER-in deny 100
  107. match as-path 1
  108. !
  109. route-map PEER-in deny 110
  110. match ip address prefix-list bogons
  111. !
  112. route-map PEER-in permit 120
  113. match ip address prefix-list our-CIDR-blocks
  114. set local-preference 600
  115. !
  116. route-map PEER-in permit 200
  117. match ip address prefix-list us-CIDR-blocks
  118. set local-preference 600
  119. !
  120. route-map PEER-out permit 100
  121. match ip address prefix-list upstream-out
  122. !
  123. route-map PEER-out permit 110
  124. match ip address prefix-list default
  125. !
  126. route-map PEER-out deny 200
  127. !
  128. line vty
  129. !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement