wavec022

hw4 router config

Feb 21st, 2021 (edited)
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. !
  9. ip domain-name cy350.com
  10. crypto key generate rsa
  11. 1024
  12. ip ssh version 2
  13. !
  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.3.126 255.255.255.128
  22. no shutdown
  23. !
  24. ip route 10.64.3.128 255.255.255.192 10.64.3.194
  25. ip route 0.0.0.0 0.0.0.0 g0/0
  26. !
  27. banner login # This is the remote login for R1 #
  28. banner motd # Welcome to R1 #
  29. !
  30. line con 0
  31. password cisco
  32. line vty 0 15
  33. password cisco
  34. login local
  35. transport input ssh
  36. end
  37.  
  38.  
  39. --------------RTR 2 CONFIG-----------------------------
  40.  
  41. service password-encryption
  42. hostname R2
  43. enable secret cisco
  44. enable password cisco1
  45. username sshuser password 0 sshpassword
  46. !
  47. ip domain-name cy350.com
  48. crypto key generate rsa
  49. 1024
  50. ip ssh version 2
  51. !
  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 EECSNET
  59. ip address 10.64.0.3 255.255.255.0
  60. no shutdown
  61. !
  62. interface FastEthernet0/0/1
  63. description TO S2
  64. ip address 10.64.3.190 255.255.255.192
  65. no shutdown
  66. !
  67. ip route 10.64.3.0 255.255.255.128 10.64.3.193
  68. ip route 0.0.0.0 0.0.0.0 g0/1
  69. !
  70. banner login # This is the remote login for R2 #
  71. banner motd # Welcome to R2 #
  72. !
  73. line con 0
  74. password cisco
  75. line vty 0 15
  76. password cisco
  77. login local
  78. transport input ssh
  79. end
  80.  
Add Comment
Please, Sign In to add comment