Advertisement
Guest User

Untitled

a guest
Mar 30th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. prefix-set IPv4all
  2. 10.10.10.0/24,
  3. 192.168.2.0/24
  4. end-set
  5. !
  6. prefix-set V4-AS65000-Prefixes
  7. 10.10.10.0/24,
  8. 10.20.10.0/24
  9. end-set
  10. !
  11. as-path-set ASN-PR-65004
  12. ios-regex '_65004$'
  13. end-set
  14. !
  15. route-policy pass_all
  16. pass
  17. end-policy
  18. !
  19. route-policy IPv4-IN
  20. apply pass_all
  21. end-policy
  22. !
  23. route-policy IPv4-OUT-65000
  24. if (as-path in ASN-PR-65004) then
  25. prepend as-path 64000 3
  26. elseif destination in V4-AS65000-Prefixes then
  27. pass
  28. endif
  29. end-policy
  30. !
  31. route-policy IPv4-OUT
  32. if destination in IPv4all then
  33. pass
  34. endif
  35. end-policy
  36. !
  37. router static
  38. address-family ipv4 unicast
  39. 10.10.10.0/24 Null0 240
  40. 192.168.2.0/24 Null0 240
  41. 10.20.10.0/24 Null0 240
  42. !
  43. !
  44. router bgp 64000
  45. bgp router-id 1.1.1.1
  46. bgp log neighbor changes detail
  47. bgp bestpath as-path multipath-relax
  48. address-family ipv4 unicast
  49. maximum-paths eibgp 4
  50. advertise best-external labeled-unicast
  51. network 10.10.10.0/24 route-policy IPv4-OUT-65000
  52. network 10.20.10.0/24 route-policy IPv4-OUT-65000
  53. network 192.168.2.0/24 route-policy IPv4-OUT
  54. !
  55. neighbor 10.10.20.1
  56. remote-as 65000
  57. ebgp-multihop 255
  58. update-source Bundle-Ether98.570
  59. address-family ipv4 unicast
  60. route-policy IPv4-IN in
  61. route-policy IPv4-OUT-65000 out
  62. !
  63. !
  64. neighbor 192.168.20.1
  65. remote-as 63000
  66. ebgp-multihop 255
  67. update-source Bundle-Ether99.708
  68. address-family ipv4 unicast
  69. route-policy IPv4-IN in
  70. route-policy IPv4-OUT out
  71. !
  72. !
  73. !
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement