Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1. frr version 7.5.1
  2. frr defaults traditional
  3. hostname ga-router
  4. !
  5. ip router-id 10.0.26.1
  6. ip route 0.0.0.0/0 103.152.112.1 nexthop-vrf Hanataba
  7. ipv6 route ::/0 2602:feda:30:ae86::ae86 nexthop-vrf Hanataba
  8. ipv6 route 64:ff9b::/96 fe80::707b:b0ff:fed6:5266 eth1
  9. ipv6 route 2602:feda:30:ae86::ae86/128 eth0 nexthop-vrf Hanataba
  10. !
  11. vrf Hanataba
  12. ip route 0.0.0.0/0 103.152.112.1
  13. ip route 10.0.26.0/24 eth1 nexthop-vrf default
  14. ipv6 route ::/0 2602:feda:30:ae86::ae86
  15. exit-vrf
  16. !
  17. interface eth0 vrf Hanataba
  18. ipv6 address 2602:feda:30:ae86::3:22dc/64
  19. !
  20. interface BkGre
  21. ip address 10.0.26.1 peer 10.0.25.1/32
  22. ipv6 address fd29:22da:98ac:f37e:10:0:26:1/64
  23. !
  24. interface Cs
  25. ip address 10.0.26.1 peer 10.0.41.1/32
  26. ipv6 address fe80:a076:561e:c471:10:0:26:1/64
  27. !
  28. interface F
  29. ip address 10.0.26.1 peer 10.0.40.1/32
  30. ipv6 address fe80:b4a4:db58:29cc:10:0:26:1/64
  31. !
  32. interface Hs
  33. ip address 10.0.26.1 peer 10.0.0.1/32
  34. ipv6 address fe80:9d6f:1a9e:9596:10:0:26:1/64
  35. !
  36. interface La
  37. ip address 10.0.26.1 peer 10.0.1.1/32
  38. ip address 10.0.26.1 peer 10.0.11.1/32
  39. ipv6 address fe80:3552:b03a:a534:10:0:26:1/64
  40. !
  41. interface eth1
  42. ip address 10.0.26.1/24
  43. ipv6 address 2a0b:4340:a0:26::1/64
  44. no ipv6 nd suppress-ra
  45. !
  46. router bgp 65026
  47. no bgp ebgp-requires-policy
  48. no bgp default ipv4-unicast
  49. bgp default show-hostname
  50. bgp disable-ebgp-connected-route-check
  51. bgp confederation identifier 205532
  52. bgp confederation peers 65000 65025 65040 65041 65001
  53. no bgp network import-check
  54. neighbor 10.0.0.1 remote-as 65000
  55. neighbor 10.0.0.1 description Hs
  56. neighbor 10.0.0.1 bfd
  57. neighbor 10.0.0.1 bfd check-control-plane-failure
  58. neighbor 10.0.0.1 solo
  59. neighbor 10.0.0.1 capability dynamic
  60. neighbor 10.0.0.1 capability extended-nexthop
  61. neighbor 10.0.25.1 remote-as 65025
  62. neighbor 10.0.25.1 description Bk
  63. neighbor 10.0.25.1 bfd
  64. neighbor 10.0.25.1 bfd check-control-plane-failure
  65. neighbor 10.0.25.1 solo
  66. neighbor 10.0.25.1 capability dynamic
  67. neighbor 10.0.25.1 capability extended-nexthop
  68. neighbor fd29:22da:98ac:f37e:10:0:25:1 remote-as 65025
  69. neighbor fd29:22da:98ac:f37e:10:0:25:1 bfd
  70. neighbor fd29:22da:98ac:f37e:10:0:25:1 bfd check-control-plane-failure
  71. neighbor fd29:22da:98ac:f37e:10:0:25:1 capability dynamic
  72. neighbor fd29:22da:98ac:f37e:10:0:25:1 capability extended-nexthop
  73. neighbor fe80:3552:b03a:a534:10:0:1:1 remote-as 65001
  74. neighbor fe80:3552:b03a:a534:10:0:1:1 bfd
  75. neighbor fe80:3552:b03a:a534:10:0:1:1 bfd check-control-plane-failure
  76. neighbor fe80:3552:b03a:a534:10:0:1:1 interface La
  77. neighbor fe80:3552:b03a:a534:10:0:1:1 disable-connected-check
  78. neighbor fe80:3552:b03a:a534:10:0:1:1 capability dynamic
  79. neighbor fe80:3552:b03a:a534:10:0:1:1 capability extended-nexthop
  80. neighbor fe80:9d6f:1a9e:9596:10::1 remote-as 65000
  81. neighbor fe80:9d6f:1a9e:9596:10::1 description Hs
  82. neighbor fe80:9d6f:1a9e:9596:10::1 bfd
  83. neighbor fe80:9d6f:1a9e:9596:10::1 bfd check-control-plane-failure
  84. neighbor fe80:9d6f:1a9e:9596:10::1 interface Hs
  85. neighbor fe80:9d6f:1a9e:9596:10::1 disable-connected-check
  86. neighbor fe80:9d6f:1a9e:9596:10::1 capability dynamic
  87. neighbor fe80:9d6f:1a9e:9596:10::1 capability extended-nexthop
  88. neighbor fe80:a076:561e:c471:10:0:41:1 remote-as 65041
  89. neighbor fe80:a076:561e:c471:10:0:41:1 description Cs
  90. neighbor fe80:a076:561e:c471:10:0:41:1 bfd
  91. neighbor fe80:a076:561e:c471:10:0:41:1 bfd check-control-plane-failure
  92. neighbor fe80:a076:561e:c471:10:0:41:1 interface Cs
  93. neighbor fe80:a076:561e:c471:10:0:41:1 disable-connected-check
  94. neighbor fe80:a076:561e:c471:10:0:41:1 capability dynamic
  95. neighbor fe80:a076:561e:c471:10:0:41:1 capability extended-nexthop
  96. neighbor fe80:b4a4:db58:29cc:10:0:40:1 remote-as 65040
  97. neighbor fe80:b4a4:db58:29cc:10:0:40:1 bfd
  98. neighbor fe80:b4a4:db58:29cc:10:0:40:1 bfd check-control-plane-failure
  99. neighbor fe80:b4a4:db58:29cc:10:0:40:1 interface F
  100. neighbor fe80:b4a4:db58:29cc:10:0:40:1 disable-connected-check
  101. neighbor fe80:b4a4:db58:29cc:10:0:40:1 capability dynamic
  102. neighbor fe80:b4a4:db58:29cc:10:0:40:1 capability extended-nexthop
  103. !
  104. address-family ipv4 unicast
  105. network 10.0.26.0/24
  106. network 10.1.26.0/24
  107. neighbor 10.0.0.1 activate
  108. neighbor 10.0.0.1 next-hop-self force
  109. neighbor 10.0.0.1 soft-reconfiguration inbound
  110. neighbor 10.0.25.1 activate
  111. neighbor 10.0.25.1 next-hop-self force
  112. neighbor 10.0.25.1 soft-reconfiguration inbound
  113. neighbor fd29:22da:98ac:f37e:10:0:25:1 activate
  114. neighbor fd29:22da:98ac:f37e:10:0:25:1 next-hop-self force
  115. neighbor fd29:22da:98ac:f37e:10:0:25:1 soft-reconfiguration inbound
  116. neighbor fe80:3552:b03a:a534:10:0:1:1 activate
  117. neighbor fe80:3552:b03a:a534:10:0:1:1 next-hop-self force
  118. neighbor fe80:3552:b03a:a534:10:0:1:1 soft-reconfiguration inbound
  119. neighbor fe80:9d6f:1a9e:9596:10::1 activate
  120. neighbor fe80:9d6f:1a9e:9596:10::1 next-hop-self force
  121. neighbor fe80:9d6f:1a9e:9596:10::1 soft-reconfiguration inbound
  122. neighbor fe80:a076:561e:c471:10:0:41:1 activate
  123. neighbor fe80:a076:561e:c471:10:0:41:1 next-hop-self force
  124. neighbor fe80:a076:561e:c471:10:0:41:1 soft-reconfiguration inbound
  125. neighbor fe80:b4a4:db58:29cc:10:0:40:1 activate
  126. neighbor fe80:b4a4:db58:29cc:10:0:40:1 next-hop-self force
  127. neighbor fe80:b4a4:db58:29cc:10:0:40:1 soft-reconfiguration inbound
  128. exit-address-family
  129. !
  130. address-family ipv6 unicast
  131. network 64:ff9b::/96
  132. network 2a0b:4340:a0:26::/64
  133. neighbor 10.0.0.1 activate
  134. neighbor 10.0.0.1 next-hop-self force
  135. neighbor 10.0.0.1 soft-reconfiguration inbound
  136. neighbor 10.0.25.1 activate
  137. neighbor 10.0.25.1 next-hop-self force
  138. neighbor 10.0.25.1 soft-reconfiguration inbound
  139. neighbor fd29:22da:98ac:f37e:10:0:25:1 activate
  140. neighbor fd29:22da:98ac:f37e:10:0:25:1 next-hop-self force
  141. neighbor fd29:22da:98ac:f37e:10:0:25:1 soft-reconfiguration inbound
  142. neighbor fe80:3552:b03a:a534:10:0:1:1 activate
  143. neighbor fe80:3552:b03a:a534:10:0:1:1 next-hop-self force
  144. neighbor fe80:3552:b03a:a534:10:0:1:1 soft-reconfiguration inbound
  145. neighbor fe80:9d6f:1a9e:9596:10::1 activate
  146. neighbor fe80:9d6f:1a9e:9596:10::1 next-hop-self force
  147. neighbor fe80:9d6f:1a9e:9596:10::1 soft-reconfiguration inbound
  148. neighbor fe80:a076:561e:c471:10:0:41:1 activate
  149. neighbor fe80:a076:561e:c471:10:0:41:1 next-hop-self force
  150. neighbor fe80:a076:561e:c471:10:0:41:1 soft-reconfiguration inbound
  151. neighbor fe80:b4a4:db58:29cc:10:0:40:1 activate
  152. neighbor fe80:b4a4:db58:29cc:10:0:40:1 next-hop-self force
  153. neighbor fe80:b4a4:db58:29cc:10:0:40:1 soft-reconfiguration inbound
  154. import vrf Hanataba
  155. exit-address-family
  156. !
  157. router bgp 205532 vrf Hanataba
  158. no bgp ebgp-requires-policy
  159. no bgp default ipv4-unicast
  160. bgp default show-hostname
  161. bgp disable-ebgp-connected-route-check
  162. no bgp network import-check
  163. neighbor 2602:feda:30:ae86::ae86 remote-as 46997
  164. neighbor 2602:feda:30:ae86::ae86 interface eth0
  165. neighbor 2602:feda:30:ae86::ae86 disable-connected-check
  166. neighbor 2602:feda:30:ae86::ae86 capability dynamic
  167. neighbor 2602:feda:30:ae86::ae86 capability extended-nexthop
  168. !
  169. address-family ipv4 unicast
  170. neighbor 2602:feda:30:ae86::ae86 activate
  171. import vrf route-map UplinkVrf
  172. import vrf default
  173. exit-address-family
  174. !
  175. address-family ipv6 unicast
  176. network 2602:feda:20::/44
  177. network 2a0b:4340:a0::/44
  178. network 2a0b:4340:a0::/48
  179. neighbor 2602:feda:30:ae86::ae86 activate
  180. neighbor 2602:feda:30:ae86::ae86 next-hop-self force
  181. neighbor 2602:feda:30:ae86::ae86 soft-reconfiguration inbound
  182. neighbor 2602:feda:30:ae86::ae86 route-map PublicBgp out
  183. import vrf route-map UplinkVrf
  184. import vrf default
  185. exit-address-family
  186. !
  187. ip prefix-list PublicOut seq 10 deny 10.0.0.0/8
  188. ip prefix-list PublicOut seq 90 permit 0.0.0.0/0 ge 8 le 24
  189. ip prefix-list PublicOut seq 100 deny any
  190. !
  191. ipv6 prefix-list PublicOut seq 10 deny fd00::/8
  192. ipv6 prefix-list PublicOut seq 90 permit ::/0 ge 16 le 48
  193. ipv6 prefix-list PublicOut seq 100 deny any
  194. !
  195. bgp as-path access-list PublicOut permit 205532$
  196. bgp as-path access-list PublicOut permit 138037$
  197. bgp as-path access-list PublicOut permit 134575$
  198. bgp as-path access-list PublicOut permit ^$
  199. bgp as-path access-list PublicOut permit ^(\([(0-9 ]+\))?$
  200. !
  201. route-map PublicBgp permit 10
  202. match as-path PublicOut
  203. match ip address prefix-list PublicOut
  204. !
  205. route-map PublicBgp permit 20
  206. match as-path PublicOut
  207. match ipv6 address prefix-list PublicOut
  208. !
  209. route-map UplinkVrf permit 10
  210. match as-path PublicOut
  211. !
  212. line vty
  213. !
  214.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement