Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. 1. Starting configurations for R1, ISP, and R3. Paste to global config mode :
  2. hostname R1
  3. interface g0/1
  4. ip address 192.168.1.1 255.255.255.0
  5. no shut
  6. interface g0/0
  7. ip address 209.165.100.1 255.255.255.0
  8. no shut
  9. exit
  10. ip route 0.0.0.0 0.0.0.0 209.165.100.2
  11.  
  12. hostname ISP
  13. interface g0/1
  14. ip address 209.165.200.2 255.255.255.0
  15. no shut
  16. interface g0/0
  17. ip address 209.165.100.2 255.255.255.0
  18. no shut
  19. exit
  20.  
  21. hostname R3
  22. interface g0/1
  23. ip address 192.168.3.1 255.255.255.0
  24. no shut
  25. interface g0/0
  26. ip address 209.165.200.1 255.255.255.0
  27. no shut
  28. exit
  29. ip route 0.0.0.0 0.0.0.0 209.165.200.2
  30.  
  31. 2. Make sure routers have the security license enabled:
  32. license boot module c1900 technology-package securityk9
  33.  
  34. 3. Configure IPsec on the routers at each end of the tunnel (R1 and R3)
  35. !R1
  36. crypto isakmp policy 10
  37. encryption aes 256
  38. authentication pre-share
  39. group 5
  40. crypto isakmp key secretkey address 192.168.13.2
  41. crypto ipsec transform-set R1-R3 esp-aes 256 esp-sha-hmac
  42. crypto map IPSEC-MAP 10 ipsec-isakmp
  43. set peer 192.168.13.2
  44. set pfs group5
  45. set security-association lifetime seconds 86400
  46. set transform-set R1-R3
  47. match address 100
  48. interface GigabitEthernet0/0
  49. crypto map IPSEC-MAP
  50. access-list 100 permit ip 192.168.4.0 255.255.255.255 192.168.11.0 255.255.255.255
  51.  
  52. !R3
  53. crypto isakmp policy 10
  54. encryption aes 256
  55. authentication pre-share
  56. group 5
  57. !
  58. crypto isakmp key secretkey address 192.168.5.1
  59. !
  60. crypto ipsec transform-set R3-R1 esp-aes 256 esp-sha-hmac
  61. !
  62. crypto map IPSEC-MAP 10 ipsec-isakmp
  63. set peer 192.168.5.1
  64. set pfs group5
  65. set security-association lifetime seconds 86400
  66. set transform-set R3-R1
  67. match address 100
  68. !
  69. interface GigabitEthernet0/1
  70. crypto map IPSEC-MAP
  71. !
  72. access-list 100 permit ip 192.168.11.0 255.255.255.255 192.168.4.0 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement