Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. interface Loopback0
  2. ip address 192.168.0.1 255.255.255.0
  3. !
  4. interface GigabitEthernet0/0/0
  5. ip address 172.16.0.3 255.255.255.0
  6. ip nat inside
  7. ip policy route-map PBR_GI0/0/0
  8. !
  9. interface GigabitEthernet0/0/2
  10. ip address 2.2.201.201 255.255.255.252
  11. ip nat outside
  12. negotiation auto
  13. ip virtual-reassembly
  14. !
  15. interface GigabitEthernet0/0/3
  16. ip address 3.3.301.301 255.255.255.252
  17. ip nat outside
  18. negotiation auto
  19. ip virtual-reassembly
  20. !
  21.  
  22. router bgp 62323
  23. bgp log-neighbor-changes
  24. neighbor 2.2.200.200 remote-as 200
  25. neighbor 2.2.200.200 ttl-security hops 2
  26. neighbor 2.2.200.200 password 7 #####
  27. neighbor 2.2.200.200 timers 6 20
  28. neighbor 3.3.300.300 remote-as 300
  29. neighbor 3.3.300.300 ttl-security hops 2
  30. neighbor 3.3.300.300 password 7 ####
  31. neighbor 3.3.300.300 timers 7 22
  32. !
  33. address-family ipv4
  34. network 172.16.0.0 mask 255.255.255.0
  35. network 192.168.0.0
  36. network 192.168.120.0
  37. neighbor 2.2.200.200 activate
  38. neighbor 2.2.200.200 send-community both
  39. neighbor 2.2.200.200 route-map ISPA_IN in
  40. neighbor 2.2.200.200 route-map ISPA_OUT out
  41. neighbor 3.3.300.300 activate
  42. neighbor 3.3.300.300 send-community both
  43. neighbor 3.3.300.300 route-map ISPB_IN in
  44. neighbor 3.3.300.300 route-map ISPB_OUT out
  45. exit-address-family
  46. !
  47. ip as-path access-list 1 permit ^$
  48. ip as-path access-list 2 permit _200$
  49. ip as-path access-list 2 permit _300$
  50. !
  51. access-list 1 permit 192.160.120.0 0.0.0.255
  52. access-list 1 permit 192.168.0.0 0.0.0.255
  53.  
  54. ip route 192.168.100.0 255.255.255.0 172.16.0.254
  55. ip route 192.168.110.0 255.255.255.0 172.16.0.254 name SVR_SW
  56. ip route 192.168.120.0 255.255.255.0 172.16.0.254
  57.  
  58. ip access-list standard PRODUCTION_ACL
  59. permit 192.168.100.0 0.0.0.255
  60. permit 192.168.110.0 0.0.0.255
  61.  
  62. ip prefix-list TESTING_LAN seq 5 permit 192.168.120.0/24
  63.  
  64. route-map PBR_GI0/0/0 permit 10
  65. match ip address PRODUCTION_ACL
  66. set ip next-hop 172.16.0.1
  67. !
  68. route-map ISPA_IN permit 10
  69. match as-path 2
  70. !
  71. route-map ISPB_IN permit 10
  72. match as-path 2
  73. !
  74. route-map ISPA_OUT permit 20
  75. match ip address prefix-list TESTING_LAN
  76. match as-path 1
  77. !
  78. route-map ISPB_OUT permit 20
  79. match ip address prefix-list TESTING_LAN
  80. match as-path 1
  81. !
  82.  
  83. local router ID: 192.168.0.1
  84.  
  85. Network Next Hop Metric LocPrf Weight Path
  86. *> 192.168.120.0 172.16.0.254 0 32768 i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement