Advertisement
wavec022

hw6 config

Mar 14th, 2021 (edited)
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 KB | None | 0 0
  1. --------------R1 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.52.3.153 255.255.255.252
  17. no shutdown
  18. !
  19. interface GigabitEthernet0/1
  20. description TO SW
  21. no shutdown
  22. !
  23. interface GigabitEthernet0/1.10
  24. description VLAN 10
  25. encapsulation dot1q 10
  26. ip address 10.52.3.62 255.255.255.192
  27. !
  28. interface GigabitEthernet0/1.20
  29. description VLAN 20
  30. encapsulation dot1q 20
  31. ip address 10.52.3.142 255.255.255.240
  32. !
  33. interface GigabitEthernet0/1.30
  34. description VLAN 30
  35. encapsulation dot1q 30
  36. ip address 10.52.3.150 255.255.255.248
  37. !
  38. interface GigabitEthernet 0/1.40
  39. description VLAN 40
  40. encapsulation dot1q 40
  41. ip address 10.52.3.94 255.255.255.224
  42. !
  43. interface Loopback0
  44. description this is my ospf router id
  45. ip address 10.52.3.254 255.255.255.255
  46. !
  47. router ospf 10
  48. network 10.52.3.0 0.0.0.63 area 0
  49. network 10.52.3.128 0.0.0.15 area 0
  50. network 10.52.3.64 0.0.0.31 area 0
  51. network 10.52.3.152 0.0.0.3 area 0
  52. network 10.52.3.254 0.0.0.0 area 0
  53. !
  54. banner login # This is the remote login for R1 #
  55. banner motd # Welcome to R1 #
  56. !
  57. line con 0
  58. password cisco
  59. line vty 0 15
  60. password cisco
  61. login local
  62. transport input ssh
  63. end
  64.  
  65.  
  66. --------------R2 CONFIG-----------------------------
  67.  
  68. service password-encryption
  69. hostname R2
  70. enable secret cisco
  71. enable password cisco1
  72. username sshuser password 0 sshpassword
  73. !
  74. ip domain-name cy350.com
  75. crypto key generate rsa
  76. 1024
  77. ip ssh version 2
  78. !
  79. interface GigabitEthernet0/0
  80. description TO R1
  81. ip address 10.52.3.154 255.255.255.252
  82. no shutdown
  83. !
  84. interface GigabitEthernet0/1
  85. description TO IntUsers
  86. ip address 10.52.3.126 255.255.255.224
  87. no shutdown
  88. !
  89. interface Loopback0
  90. description this is my ospf router id
  91. ip address 10.52.3.253 255.255.255.255
  92. !
  93. router ospf 10
  94. network 10.52.3.96 0.0.0.31 area 0
  95. network 10.52.3.152 0.0.0.3 area 0
  96. network 10.52.3.253 0.0.0.0 area 0
  97. !
  98. banner login # This is the remote login for R2 #
  99. banner motd # Welcome to R2 #
  100. !
  101. line con 0
  102. password cisco
  103. line vty 0 15
  104. password cisco
  105. login local
  106. transport input ssh
  107. end
  108.  
  109.  
  110. --------------S1 CONFIG-----------------------------
  111.  
  112. service password-encryption
  113. hostname S1
  114. enable secret cisco
  115. enable password cisco1
  116. username sshuser password 0 sshpassword
  117. !
  118. ip domain-name cy350.com
  119. crypto key generate rsa
  120. 1024
  121. ip ssh version 2
  122. !
  123. vlan 10
  124. name Sales
  125. vlan 20
  126. name Admin
  127. vlan 30
  128. name Management
  129. vlan 40
  130. name HR
  131. !
  132. interface vlan 30
  133. description vlan self
  134. ip address 10.52.3.145 255.255.255.248
  135. no shutdown
  136. !
  137. interface FastEthernet0/1
  138. description to Sales1
  139. switchport mode access
  140. switchport access vlan 10
  141. !
  142. interface FastEthernet0/2
  143. description to HR1
  144. switchport mode access
  145. switchport access vlan 40
  146. !
  147. interface FastEthernet0/3
  148. description to Mg1
  149. switchport mode access
  150. switchport access vlan 30
  151. !
  152. interface FastEthernet0/22
  153. description to S3
  154. switchport mode trunk
  155. switchport trunk allowed vlan 20,30,40
  156. !
  157. interface FastEthernet0/23
  158. description to S2
  159. switchport mode trunk
  160. switchport trunk allowed vlan 10,20,30
  161. !
  162. interface FastEthernet0/24
  163. description to R1
  164. switchport mode trunk
  165. switchport trunk allowed vlan 10,20,30,40
  166. !
  167. ip default-gateway 10.52.3.150
  168. !
  169. banner login # This is the remote login for S1 #
  170. banner motd # Welcome to S1 #
  171. !
  172. line con 0
  173. password cisco
  174. line vty 0 15
  175. password cisco
  176. login local
  177. transport input ssh
  178. end
  179.  
  180.  
  181. --------------S2 CONFIG-----------------------------
  182.  
  183. service password-encryption
  184. hostname S2
  185. enable secret cisco
  186. enable password cisco1
  187. username sshuser password 0 sshpassword
  188. !
  189. ip domain-name cy350.com
  190. crypto key generate rsa
  191. 1024
  192. ip ssh version 2
  193. !
  194. vlan 10
  195. name Sales
  196. vlan 20
  197. name Admin
  198. vlan 30
  199. name Management
  200. vlan 40
  201. name HR
  202. !
  203. interface vlan 30
  204. description vlan self
  205. ip address 10.52.3.146 255.255.255.248
  206. no shutdown
  207. !
  208. interface FastEthernet0/1
  209. description to Sales2
  210. switchport mode access
  211. switchport access vlan 10
  212. !
  213. interface FastEthernet0/2
  214. description to Admin1
  215. switchport mode access
  216. switchport access vlan 20
  217. !
  218. interface FastEthernet0/3
  219. description to Mg2
  220. switchport mode access
  221. switchport access vlan 30
  222. !
  223. interface FastEthernet0/24
  224. description to S1
  225. switchport mode trunk
  226. switchport trunk allowed vlan 10,20,30
  227. !
  228. ip default-gateway 10.52.3.150
  229. !
  230. banner login # This is the remote login for S2 #
  231. banner motd # Welcome to S2 #
  232. !
  233. line con 0
  234. password cisco
  235. line vty 0 15
  236. password cisco
  237. login local
  238. transport input ssh
  239. end
  240.  
  241.  
  242. --------------S3 CONFIG-----------------------------
  243.  
  244. service password-encryption
  245. hostname S3
  246. enable secret cisco
  247. enable password cisco1
  248. username sshuser password 0 sshpassword
  249. !
  250. ip domain-name cy350.com
  251. crypto key generate rsa
  252. 1024
  253. ip ssh version 2
  254. !
  255. vlan 10
  256. name Sales
  257. vlan 20
  258. name Admin
  259. vlan 30
  260. name Management
  261. vlan 40
  262. name HR
  263. !
  264. interface vlan 30
  265. description vlan self
  266. ip address 10.52.3.147 255.255.255.248
  267. no shutdown
  268. !
  269. interface FastEthernet0/1
  270. description to Admin2
  271. switchport mode access
  272. switchport access vlan 20
  273. !
  274. interface FastEthernet0/24
  275. description to S1
  276. switchport mode trunk
  277. switchport trunk allowed vlan 20,30,40
  278. !
  279. ip default-gateway 10.52.3.150
  280. !
  281. banner login # This is the remote login for S3 #
  282. banner motd # Welcome to S3 #
  283. !
  284. line con 0
  285. password cisco
  286. line vty 0 15
  287. password cisco
  288. login local
  289. transport input ssh
  290. end
  291.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement