Advertisement
146f73

Automatic R1 config

May 22nd, 2017
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. Sleep(5000)
  2. Send("en{ENTER}")
  3. Sleep(500)
  4. Send("conf t{ENTER}")
  5. Sleep(500)
  6. Send("hostname R1{ENTER}")
  7. Sleep(500)
  8. Send("no ip domain-lookup{ENTER}")
  9. Sleep(500)
  10. Send("int gi0/2{ENTER}")
  11. Sleep(500)
  12. Send("no shut{ENTER}")
  13. Sleep(500)
  14. Send("int gi0/2.10{ENTER}")
  15. Sleep(500)
  16. Send("encapsulation dot1Q 10{ENTER}")
  17. Sleep(500)
  18. Send("ip address 192.168.200.193 255.255.255.224{ENTER}")
  19. Sleep(500)
  20. Send("int gi0/2.20{ENTER}")
  21. Sleep(500)
  22. Send("encapsulation dot1Q 20{ENTER}")
  23. Sleep(500)
  24. Send("ip address 192.168.200.1 255.255.255.128{ENTER}")
  25. Sleep(500)
  26. Send("int gi0/2.30{ENTER}")
  27. Sleep(500)
  28. Send("encapsulation dot1Q 30{ENTER}")
  29. Sleep(500)
  30. Send("ip address 192.168.200.225 255.255.255.248{ENTER}")
  31. Sleep(500)
  32. Send("int gi0/2.40{ENTER}")
  33. Sleep(500)
  34. Send("encapsulation dot1Q 40{ENTER}")
  35. Sleep(500)
  36. Send("ip address 192.168.200.233 255.255.255.248{ENTER}")
  37. Sleep(500)
  38. Send("exit{ENTER}")
  39. Sleep(500)
  40. Send("ntp server 192.168.200.226{ENTER}")
  41. Sleep(500)
  42. Send("ntp update-calendar{ENTER}")
  43. Sleep(500)
  44. Send("service timestamps log datetime msec{ENTER}")
  45. Sleep(500)
  46. Send("logging host 192.168.200.226{ENTER}")
  47. Sleep(500)
  48. Send("int s0/0/0{ENTER}")
  49. Sleep(500)
  50. Send("ip address 192.168.200.245 255.255.255.252{ENTER}")
  51. Sleep(500)
  52. Send("ip ospf message-digest-key 1 md5 r0ut1ng{ENTER}")
  53. Sleep(500)
  54. Send("clock rate 128000{ENTER}")
  55. Sleep(500)
  56. Send("no shut{ENTER}")
  57. Sleep(500)
  58. Send("exit{ENTER}")
  59. Sleep(500)
  60. Send("router ospf 1{ENTER}")
  61. Sleep(500)
  62. Send("network 192.168.200.192 0.0.0.31 area 0{ENTER}")
  63. Sleep(500)
  64. Send("network 192.168.200.0 0.0.0.127 area 0{ENTER}")
  65. Sleep(500)
  66. Send("network 192.168.200.224 0.0.0.7 area 0{ENTER}")
  67. Sleep(500)
  68. Send("network 192.168.200.232 0.0.0.7 area 0{ENTER}")
  69. Sleep(500)
  70. Send("network 192.168.200.244 0.0.0.3 area 0{ENTER}")
  71. Sleep(500)
  72. Send("area 0 authentication message-digest{ENTER}")
  73. Sleep(500)
  74. Send("exit{ENTER}")
  75. Sleep(500)
  76. Send("username admin privilege 15 secret t1tk0spa55{ENTER}")
  77. Sleep(500)
  78. Send("ip domain name cisco.com{ENTER}")
  79. Sleep(500)
  80. Send("crypto key generate rsa{ENTER}")
  81. Sleep(500)
  82. Send("yes{ENTER}")
  83. Sleep(500)
  84. Send("1024{ENTER}")
  85. Sleep(500)
  86. Send("ip ssh version 2{ENTER}")
  87. Sleep(500)
  88. Send("line vty 0 15{ENTER}")
  89. Sleep(500)
  90. Send("privilege level 15{ENTER}")
  91. Sleep(500)
  92. Send("transport input ssh{ENTER}")
  93. Sleep(500)
  94. Send("exec-timeout 5 0{ENTER}")
  95. Sleep(500)
  96. Send("login local{ENTER}")
  97. Sleep(500)
  98. Send("exit{ENTER}")
  99. Sleep(500)
  100. Send("access-list 100 permit ip 192.168.200.192 0.0.0.31 193.6.44.0 0.0.0.15{ENTER}")
  101. Sleep(500)
  102. Send("access-list 100 permit ip 192.168.200.0 0.0.0.127 193.6.44.0 0.0.0.15{ENTER}")
  103. Sleep(500)
  104. Send("access-list 100 permit ip 192.168.200.224 0.0.0.7 193.6.44.0 0.0.0.15{ENTER}")
  105. Sleep(500)
  106. Send("access-list 100 permit ip 192.168.200.232 0.0.0.7 193.6.44.0 0.0.0.15{ENTER}")
  107. Sleep(500)
  108. Send("license boot module c2900 technology-package securityk9 {ENTER}")
  109. Sleep(500)
  110. Send("yes{ENTER}")
  111. Sleep(500)
  112. ;Send("do reload{ENTER}")
  113. ;Sleep(500)
  114. ;Send("en{ENTER}")
  115. ;Sleep(500)
  116. ;Send("conf t{ENTER}")
  117. ;Sleep(500)
  118. Send("crypto isakmp policy 5{ENTER}")
  119. Sleep(500)
  120. Send("encryption aes 256{ENTER}")
  121. Sleep(500)
  122. Send("authentication pre-share{ENTER}")
  123. Sleep(500)
  124. Send("group 5{ENTER}")
  125. Sleep(500)
  126. Send("lifetime 86400{ENTER}")
  127. Sleep(500)
  128. Send("hash sha{ENTER}")
  129. Sleep(500)
  130. Send("exit{ENTER}")
  131. Sleep(500)
  132. Send("crypto isakmp key 4l4gut12 address 192.168.200.249{ENTER}")
  133. Sleep(500)
  134. Send("crypto ipsec transform-set VPN-SET esp-aes esp-sha-hmac{ENTER}")
  135. Sleep(500)
  136. Send("crypto map VPN-MAP 10 ipsec-isakmp {ENTER}")
  137. Sleep(500)
  138. Send("set peer 192.168.200.249{ENTER}")
  139. Sleep(500)
  140. Send("match address 100{ENTER}")
  141. Sleep(500)
  142. Send("set transform-set VPN-SET{ENTER}")
  143. Sleep(500)
  144. Send("exit{ENTER}")
  145. Sleep(500)
  146. Send("int s0/0/0{ENTER}")
  147. Sleep(500)
  148. Send("crypto map VPN-MAP{ENTER}")
  149. Sleep(500)
  150. Send("end{ENTER}")
  151. Sleep(500)
  152. Send("conf t{ENTER}")
  153. Sleep(500)
  154. Send("access-list 1 permit 192.168.200.234{ENTER}")
  155. Sleep(500)
  156. Send("line vty 0 15{ENTER}")
  157. Sleep(500)
  158. Send("access-class 1 in{ENTER}")
  159. Sleep(500)
  160. Send("exit{ENTER}")
  161. Sleep(500)
  162. Send("do cop ru sta{ENTER}")
  163. Sleep(500)
  164. Send("{ENTER}")
  165. Sleep(500)
  166. Send("exit{ENTER}")
  167. Sleep(500)
  168. Send("reload{ENTER}")
  169. Sleep(500)
  170. Send("{ENTER}")
  171. Sleep(500)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement