Advertisement
PJO2

Cisco configuration

Feb 14th, 2020
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. csr-flex#sh run
  2. aaa new-model
  3. aaa authentication login default local
  4. aaa authorization exec default local
  5. aaa authorization network default local
  6. ip domain name sclab.space
  7.  
  8. username cisco privilege 15 password 0 cisco
  9.  
  10. crypto ikev2 authorization policy default
  11. pool FlexSpokes
  12. netmask 255.255.255.0
  13. route set interface
  14. !
  15. crypto ikev2 keyring FlexKeys
  16. peer Spokes
  17. identity email domain sclab.space
  18. pre-shared-key csr-flex
  19. !
  20. crypto ikev2 profile Flex_IKEv2
  21. match fvrf any
  22. match identity remote email domain sclab.space
  23. identity local fqdn hub.sclab.space
  24. authentication remote pre-share
  25. authentication local pre-share
  26. keyring local FlexKeys
  27. dpd 300 10 on-demand
  28. aaa authorization group psk list default default
  29. virtual-template 100
  30. !
  31. !
  32. crypto ipsec transform-set AES-SHA esp-aes esp-sha-hmac
  33. mode tunnel
  34.  
  35. crypto ipsec profile default
  36. set security-association lifetime kilobytes disable
  37. set transform-set AES-SHA
  38. set ikev2-profile Flex_IKEv2
  39. !
  40. !
  41. interface Loopback101
  42. ip address 172.30.0.254 255.255.255.0
  43. !
  44. interface GigabitEthernet5
  45. description -- To strongswan box --
  46. ip address 172.16.63.63 255.255.255.0
  47. !
  48. interface GigabitEthernet6
  49. description -- to the externale network --
  50. ip address 192.168.77.1 255.255.255.0
  51. !
  52. interface Virtual-Template100 type tunnel
  53. ip unnumbered Loopback101
  54. tunnel source GigabitEthernet5
  55. tunnel mode ipsec ipv4
  56. tunnel protection ipsec profile default
  57. !
  58. ip local pool FlexSpokes 172.30.0.1 172.30.0.199
  59.  
  60. -- Routing done by BGP not shown but working --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement