Guest User

R1

a guest
Jan 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. !
  2. log file /var/log/quagga/zebra.log
  3. log file /var/log/quagga/bgpd.log
  4. !
  5. service password-encryption
  6. !
  7. debug bgp
  8. debug bgp events
  9. debug bgp updates
  10. debug bgp filters
  11. debug bgp zebra
  12. !
  13. interface eth0
  14. description to ROUTER2
  15. ip address 192.168.200.1/28
  16. link-detect
  17. no multicast
  18. !
  19. interface eth1
  20. no link-detect
  21. !
  22. interface eth2
  23. description to SERVERS
  24. ip address 192.168.255.251/24
  25. link-detect
  26. no multicast
  27. !
  28. interface eth3
  29. no link-detect
  30. !
  31. interface eth4
  32. description to ISP_R1
  33. ip address 172.16.1.1/24
  34. link-detect
  35. no multicast
  36. !
  37. interface eth5
  38. no link-detect
  39. !
  40. interface eth6
  41. no link-detect
  42. !
  43. interface eth7
  44. no link-detect
  45. !
  46. interface lo
  47. ip address 192.168.56.2/32
  48. no link-detect
  49. !
  50. router bgp 64512
  51. bgp router-id 192.168.56.2
  52. redistribute connected
  53. redistribute static
  54. timers bgp 10 30
  55. neighbor 172.16.1.254 remote-as 65534
  56. neighbor 172.16.1.254 description ISP_R1
  57. neighbor 172.16.1.254 update-source 172.16.1.1
  58. neighbor 172.16.1.254 soft-reconfiguration inbound
  59. neighbor 172.16.1.254 route-map v4-default-only in
  60. neighbor 172.16.1.254 route-map v4-as65534-out out
  61. neighbor 192.168.56.3 remote-as 64512
  62. neighbor 192.168.56.3 description IBGP - ROUTER2
  63. neighbor 192.168.56.3 update-source 192.168.56.2
  64. neighbor 192.168.56.3 next-hop-self
  65. neighbor 192.168.56.3 soft-reconfiguration inbound
  66. neighbor 192.168.56.3 route-map v4-ibgp-in in
  67. neighbor 192.168.56.3 route-map v4-ibgp-out out
  68. !
  69. address-family ipv6
  70. exit-address-family
  71. exit
  72. !
  73. ip route 0.0.0.0/0 172.16.1.254 254
  74. ip route 192.168.56.3/32 192.168.200.2 254
  75. ip route 192.168.255.0/24 Null0
  76. !
  77. ip prefix-list v4-blackhole seq 500 deny any
  78. ip prefix-list v4-default-only seq 5 permit 0.0.0.0/0
  79. ip prefix-list v4-default-only seq 500 deny any
  80. ip prefix-list v4-loopback seq 5 permit 192.168.56.2/32
  81. ip prefix-list v4-loopback seq 10 permit 192.168.56.3/32
  82. ip prefix-list v4-loopback seq 500 deny any
  83. ip prefix-list v4-mycompany-nets seq 5 permit 192.168.255.0/24 le 32
  84. ip prefix-list v4-mycompany-nets seq 500 deny any
  85. !
  86. route-map DENY deny 1
  87. !
  88. route-map v4-default-only permit 100
  89. match ip address prefix-list v4-default-only
  90. set local-preference 200
  91. !
  92. route-map v4-default-only deny 500
  93. !
  94. route-map v4-as65534-out permit 200
  95. match ip address prefix-list v4-mycompany-nets
  96. set metric 100
  97. set origin igp
  98. !
  99. route-map v4-as65534-out deny 500
  100. !
  101. route-map v4-ibgp-in permit 500
  102. !
  103. route-map v4-ibgp-out permit 400
  104. match ip address prefix-list v4-default-only
  105. set local-preference 200
  106. set origin igp
  107. !
  108. route-map v4-ibgp-out permit 500
  109. match ip address prefix-list v4-loopback
  110. set origin igp
  111. !
  112. ip forwarding
  113. !
  114. line vty
  115. no login
  116. !
  117. end
Add Comment
Please, Sign In to add comment