wavec022

router config example

Feb 4th, 2021 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. --------------this is my configs for RTR 1-----------------------------
  2.  
  3. service password-encryption
  4. hostname RTR1
  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 THIS IS MY CONN TO RTR2
  16. ip address 1.1.1.1 255.255.255.0
  17. no shutdown
  18. !
  19. interface GigabitEthernet0/1
  20. description THIS IS THE CONN TO THE USERS FOR RTR1
  21. ip address 10.10.10.254 255.255.255.0
  22. no shutdown
  23. !
  24. interface GigabitEthernet0/2
  25. no ip address
  26. description THIS INTERFACE IS NOT USED!!!
  27. shutdown
  28. !
  29. banner login # THIS IS RTR1 REMOTE CONN #
  30. banner motd # THIS IS RTR1 CONSOLE #
  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. --------------this is my configs for RTR 2-----------------------------
  42.  
  43. service password-encryption
  44. hostname RTR2
  45. enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
  46. enable password cisco1
  47. username sshuser password 0 sshpassword
  48. ----------------------need keys first----------------------
  49. ip domain-name cy350.com
  50. crypto key generate rsa
  51. 1024
  52. ip ssh version 2
  53. -----------interface configs------------------------------
  54. interface GigabitEthernet0/0
  55. description THIS IS MY CONN TO RTR1
  56. ip address 1.1.1.2 255.255.255.0
  57. no shutdown
  58. !
  59. interface GigabitEthernet0/2
  60. description THIS IS THE CONN TO THE USERS FOR RTR2
  61. ip address 10.10.11.254 255.255.255.0
  62. no shutdown
  63. !
  64. interface GigabitEthernet0/1
  65. description THIS IS MY CONN TO RTR3
  66. ip address 2.2.2.1 255.255.255.0
  67. no shutdown
  68. !
  69. banner login # THIS IS RTR2 REMOTE CONN #
  70. banner motd # THIS IS RTR2 CONSOLE #
  71. !
  72. line con 0
  73. password cisco
  74. line vty 0 15
  75. password cisco
  76. login local
  77. transport input ssh
  78. end
  79.  
  80.  
  81. --------------this is my configs for RTR 3-----------------------------
  82.  
  83. service password-encryption
  84. hostname RTR3
  85. enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
  86. enable password cisco1
  87. username sshuser password 0 sshpassword
  88. ----------------------need keys first----------------------
  89. ip domain-name cy350.com
  90. crypto key generate rsa
  91. 1024
  92. ip ssh version 2
  93. -----------interface configs------------------------------
  94. interface GigabitEthernet0/1
  95. description THIS IS MY CONN TO RTR2
  96. ip address 2.2.2.2 255.255.255.0
  97. no shutdown
  98. !
  99. interface GigabitEthernet0/2
  100. description THIS IS THE CONN TO THE USERS FOR RTR3
  101. ip address 10.10.12.254 255.255.255.0
  102. no shutdown
  103. !
  104. interface GigabitEthernet0/0
  105. description THIS INTERFACE IS NOT USED!!!
  106. no ip address
  107. shutdown
  108. !
  109. banner login # THIS IS RTR3 REMOTE CONN #
  110. banner motd # THIS IS RTR3 CONSOLE #
  111. !
  112. line con 0
  113. password cisco
  114. line vty 0 15
  115. password cisco
  116. login local
  117. transport input ssh
  118. end
  119.  
  120.  
Add Comment
Please, Sign In to add comment