Advertisement
J00ker

Untitled

Mar 5th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. ---[pc] ADAUGARE
  2. End Devices -> End Devices -> PC
  3. Change label ('INFO1')
  4. Change NIC to 1CGE
  5. Change host IP configuration
  6. INFO1 -> Desktop -> IP Configuration
  7. Examples:
  8. IP Address: 192.168.100.10
  9. Subnet Mask: auto
  10. Default Gateway: 192.168.100.1
  11. DNS Server: 172.16.30.254
  12. Change mail configuration
  13. INFO1 -> Desktop -> Email
  14. Examples:
  15. Name: INFO1
  16. Email Address: INFO1@ctl-fmi.ro
  17. In/Outbound Mail Server: 172.16.30.254
  18. User Name: INFO1
  19. Password: 123456
  20.  
  21. ---[switch] ADAUGARE
  22. Network Devices -> Switches -> 2960
  23. Change label ('SWINFO1')
  24.  
  25. ---[switch] ADAUGARE LAPTOP PENTRU CONFIGURARE
  26. End Devices -> End Devices -> Laptop
  27. Change label ('SERVICE')
  28. Connect to switch
  29. Connections -> Connections -> Console
  30. Laptop -> RS232, Switch -> Console
  31.  
  32. ---[switch] CONFIGURARE
  33. Connect through laptop
  34. Laptop -> Desktop -> Terminal
  35. Switch>enable
  36. Switch#configure terminal
  37. Switch(config)#no ip domain lookup
  38. Switch(config)#hostname SWINFO1
  39. SWINFO1(config)#service password-encryption
  40. SWINFO1(config)#enable secret cisco12345
  41. SWINFO1(config)#enable password cisco54321
  42. SWINFO1(config)#banner motd "Vineri la ora 14:00 va fi mentenanta"
  43. SWINFO1(config)#line console 0
  44. SWINFO1(config-line)#password ciscoconpass
  45. SWINFO1(config-line)#login
  46. SWINFO1(config-line)#logging synchronous
  47. SWINFO1(config-line)#exec-timeout 15 10
  48. SWINFO1(config-line)#exit
  49. SWINFO1(config)#line vty 0 15
  50. SWINFO1(config-line)#password ciscovtypass
  51. SWINFO1(config-line)#login
  52. SWINFO1(config-line)#logging synchronous
  53. SWINFO1(config-line)#exit
  54. SWINFO1(config)#exit
  55. SWINFO1#copy running-config startup-config
  56.  
  57. ---[switch] CONFIGURARE VLAN 1
  58. SWINFO1#configure terminal
  59. SWINFO1(config)#interface vlan 1
  60. SWINFO1(config-if)#description "Legatura cu CALC1"
  61. SWINFO1(config-if)#ip address 139.208.32.130 255.255.255.224
  62. SWINFO1(config-if)#no shutdown
  63. SWINFO1(config-if)#exit
  64. SWINFO1(config)#exit
  65. SWINFO1#copy running-config startup-config
  66.  
  67. ---[switch] CONFIGURARE TIMP SI SSH
  68. SWINFO1#clock set 16:28:00 31 MAR 2018
  69. SWINFO1#configure terminal
  70. SWINFO1(config)#ip domain name cti-info.ro
  71. SWINFO1(config)#username admin privilege 15 secret adminpass1
  72. SWINFO1(config)#line vty 0 15
  73. SWINFO1(config-line)#transport input ssh
  74. SWINFO1(config-line)#login local
  75. SWINFO1(config-line)#exit
  76. SWINFO1(config)#crypto key generate rsa
  77. The name for the keys will be: SWINFO1.cti-info.ro
  78. Choose the size of the key modulus in the range of 360 to 2048 for your
  79. General Purpose Keys. Choosing a key modulus greater than 512 may take
  80. a few minutes.
  81. How many bits in the modulus [512]: 1024
  82. SWINFO1(config)#exit
  83. SWINFO1#copy running-config startup-config
  84.  
  85. ---[switch|pc] CONECTARE SWITCH/PC
  86. Connections -> Connections -> Copper Straight-Through
  87. PC -> GigabitEthernet0, Switch -> GigabitEthernet0/2
  88.  
  89. ---[switch|pc] VERIFICARE CONEXIUNE
  90. PC -> Desktop -> Command Prompt
  91. ping [switch IP]
  92.  
  93. ---[switch|pc] CONECTARE TELNET
  94. PC -> Desktop -> Command Prompt
  95. telnet [switch IP]
  96. > ciscovtypass
  97.  
  98. ---[router] CONFIGURARE
  99. Router>enable
  100. Router#configure terminal
  101. Router(config)#no ip domain lookup
  102. Router(config)#hostname INFO1
  103. INFO1(config)#service password-encryption
  104. INFO1(config)#security password min-length 10
  105. INFO1(config)#login block-for 120 attempts 3 within 30
  106. INFO1(config)#enable secret cisco12345
  107. INFO1(config)#enable password cisco54321
  108. INFO1(config)#banner login "Accesul persoanelor neautorizate este strict interzis!"
  109. INFO1(config)#banner motd "Vineri la ora 14:00 serverul va intra in mentenanta"
  110. INFO1(config)#line console 0
  111. INFO1(config-line)#password ciscoconpass
  112. INFO1(config-line)#login
  113. INFO1(config-line)#logging synchronous
  114. INFO1(config-line)#exec-timeout 10 10
  115. INFO1(config-line)#exit
  116. INFO1(config)#line vty 0 15
  117. INFO1(config-line)#password ciscovtypass
  118. INFO1(config-line)#login
  119. INFO1(config-line)#logging synchronous
  120. INFO1(config-line)#exec-timeout 20 0
  121. INFO1(config-line)#exit
  122. INFO1(config)#exit
  123. INFO1#copy running-config startup-config
  124.  
  125. ---[router] CONFIGURARE TIMP SI SSH
  126. INFO1#clock set 16:42:00 31 MAR 2018
  127. INFO1#configure terminal
  128. INFO1(config)#ip domain name cti-info.ro
  129. INFO1(config)#username admin privilege 15 secret adminpass1
  130. INFO1(config)#line vty 0 15
  131. INFO1(config-line)#transport input ssh
  132. INFO1(config-line)#login local
  133. INFO1(config-line)#exit
  134. INFO1(config)#crypto key generate rsa
  135. The name for the keys will be: INFO1.cti-info.ro
  136. Choose the size of the key modulus in the range of 360 to 2048 for your
  137. General Purpose Keys. Choosing a key modulus greater than 512 may take
  138. a few minutes.
  139. How many bits in the modulus [512]: 1024
  140.  
  141. ---[switch|pc] CONECTARE SSH
  142. PC -> Desktop -> Command Prompt
  143. ssh -l admin [switch IP]
  144. > adminpass1
  145.  
  146. ---[router] SETAREA INTERFETEI GIGABITETHERNET
  147. INFO1(config)#configure terminal
  148. INFO1(config)#interface gigabitethernet 0/0
  149. INFO1(config-if)#description "Legatura realizata"
  150. INFO1(config-if)#ip address 139.208.32.129 255.255.255.224
  151. INFO1(config-if)#no shutdown
  152. INFO1(config-if)#
  153. INFO1(config-if)#exit
  154. INFO1(config)#exit
  155. INFO1#copy running-config startup-config
  156. ---[switch] SETAREA INTERFETEI GIGABITETHERNET
  157. INFO1(config)#interface gigabitethernet 0/1
  158. INFO1(config-if)#description "Legatura realizata"
  159. INFO1(config-if)#ip address 139.208.16.1 255.255.248.0
  160. INFO1(config-if)#no shutdown
  161. INFO1(config-if)#exit
  162. INFO1(config)#exit
  163. INFO1#copy running-config startup-config
  164. ---[] SETAREA INTERFETEI GIGABITETHERNET
  165. INFO1#configure terminal
  166. INFO1(config)#interface gigabitethernet 0/2
  167. INFO1(config-if)#description "Legatura realizata"
  168. INFO1(config-if)#ip address 139.208.32.181 255.255.255.252
  169. INFO1(config-if)#no shutdown
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement