wavec022

hw3 router config

Feb 15th, 2021 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. --------------RTR 1 CONFIG-----------------------------
  2.  
  3. service password-encryption
  4. hostname R1
  5. enable secret cisco
  6. enable password cisco1
  7. username sshuser password 0 sshpassword
  8. ----------------------need keys first----------------------
  9. ip domain-name cy350.com
  10. crypto key generate rsa
  11. 1024
  12. ip ssh version 2
  13. -----------interface configs------------------------------
  14. interface GigabitEthernet0/0
  15. description TO R2
  16. ip address 10.64.3.193 255.255.255.252
  17. no shutdown
  18. !
  19. interface GigabitEthernet0/1
  20. description TO S1
  21. ip address 10.64.1.254 255.255.254.0
  22. no shutdown
  23. !
  24. interface GigabitEthernet0/2
  25. description TO S2
  26. ip address 10.64.2.254 255.255.255.0
  27. no shutdown
  28. !
  29. banner login # This is the remote login for R1 #
  30. banner motd # Welcome to R1 #
  31. !
  32. line con 0
  33. password cisco
  34. line vty 0 15
  35. password cisco
  36. login local
  37. transport input ssh
  38. end
  39.  
  40.  
  41. --------------RTR 2 CONFIG-----------------------------
  42.  
  43. service password-encryption
  44. hostname R2
  45. enable secret cisco
  46. enable password cisco1
  47. username sshuser password 0 sshpassword
  48. ip domain-name cy350.com
  49. crypto key generate rsa
  50. 1024
  51. ip ssh version 2
  52. interface GigabitEthernet0/0
  53. description TO R1
  54. ip address 10.64.3.194 255.255.255.252
  55. no shutdown
  56. !
  57. interface GigabitEthernet0/1
  58. description TO S4
  59. ip address 10.64.3.190 255.255.255.192
  60. no shutdown
  61. !
  62. interface GigabitEthernet0/2
  63. description TO S3
  64. ip address 10.64.3.126 255.255.255.128
  65. no shutdown
  66. !
  67. banner login # This is the remote login for R2 #
  68. banner motd # Welcome to R2 #
  69. !
  70. line con 0
  71. password cisco
  72. line vty 0 15
  73. password cisco
  74. login local
  75. transport input ssh
  76. end
  77.  
Add Comment
Please, Sign In to add comment