Advertisement
Guest User

Untitled

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