linkxs

Working Cisco single-port router and switch config 12/5

Dec 5th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. ROUTER:
  2. Building configuration...
  3.  
  4. Current configuration : 1189 bytes
  5. !
  6. version 12.1
  7. no service single-slot-reload-enable
  8. service timestamps debug uptime
  9. service timestamps log uptime
  10. no service password-encryption
  11. !
  12. hostname rt
  13. !
  14. enable password To053cret
  15. !
  16. !
  17. !
  18. !
  19. !
  20. no ip subnet-zero
  21. ip dhcp excluded-address 172.17.7.1 172.17.7.2
  22. ip dhcp excluded-address 172.17.7.3 172.17.7.4
  23. ip dhcp excluded-address 172.17.7.5
  24. !
  25. ip dhcp pool VLAN200
  26. network 172.17.7.0 255.255.255.0
  27. default-router 172.17.7.1
  28. dns-server 8.8.8.8
  29. !
  30. ip audit notify log
  31. ip audit po max-events 100
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. interface Ethernet0/0
  40. no ip address
  41. !
  42. interface Ethernet0/0.100
  43. encapsulation dot1Q 100
  44. ip address 172.16.7.15 255.255.255.0
  45. ip nat outside
  46. !
  47. interface Ethernet0/0.200
  48. encapsulation dot1Q 200
  49. ip address 172.17.7.1 255.255.255.0
  50. ip nat inside
  51. !
  52. ip nat inside source list 1 interface Ethernet0/0.100 overload
  53. ip nat inside source static tcp 172.17.7.103 22 interface Ethernet0/0.100 22
  54. ip nat inside source static tcp 172.17.7.103 8080 interface Ethernet0/0.100 80
  55. ip classless
  56. ip route 0.0.0.0 0.0.0.0 172.16.7.1
  57. ip http server
  58. ip http port 8080
  59. !
  60. access-list 1 permit 172.17.7.0 0.0.0.255
  61. !
  62. !
  63. line con 0
  64. line aux 0
  65. line vty 0 4
  66. password To053cret
  67. login
  68. !
  69. end
  70.  
  71.  
  72. SWITCH:
  73. Building configuration...
  74.  
  75. Current configuration:
  76. !
  77. version 11.2
  78. no service pad
  79. no service udp-small-servers
  80. no service tcp-small-servers
  81. !
  82. hostname sw
  83. !
  84. enable password Oh5053cret
  85. !
  86. !
  87. no spanning-tree vlan 100
  88. no spanning-tree vlan 200
  89. ip subnet-zero
  90. ip name-server 8.8.8.8
  91. !
  92. !
  93. interface VLAN1
  94. ip address 172.17.7.7 255.255.255.0
  95. no ip route-cache
  96. shutdown
  97. !
  98. interface VLAN100
  99. no ip route-cache
  100. shutdown
  101. !
  102. interface VLAN200
  103. ip address 172.17.7.7 255.255.255.255
  104. no ip route-cache
  105. !
  106. interface FastEthernet0/1
  107. switchport access vlan 100
  108. spanning-tree portfast
  109. !
  110. interface FastEthernet0/2
  111. switchport trunk encapsulation dot1q
  112. switchport mode trunk
  113. !
  114. interface FastEthernet0/3
  115. switchport access vlan 200
  116. spanning-tree portfast
  117. !
  118. interface FastEthernet0/4
  119. switchport access vlan 200
  120. spanning-tree portfast
  121. !
  122. interface FastEthernet0/5
  123. switchport access vlan 200
  124. spanning-tree portfast
  125. !
  126. interface FastEthernet0/6
  127. switchport access vlan 200
  128. spanning-tree portfast
  129. !
  130. interface FastEthernet0/7
  131. switchport access vlan 200
  132. spanning-tree portfast
  133. !
  134. interface FastEthernet0/8
  135. switchport access vlan 200
  136. spanning-tree portfast
  137. !
  138. interface FastEthernet0/9
  139. switchport access vlan 200
  140. spanning-tree portfast
  141. !
  142. interface FastEthernet0/10
  143. switchport access vlan 200
  144. spanning-tree portfast
  145. !
  146. interface FastEthernet0/11
  147. switchport access vlan 200
  148. spanning-tree portfast
  149. !
  150. interface FastEthernet0/12
  151. switchport access vlan 200
  152. spanning-tree portfast
  153. !
  154. interface FastEthernet0/13
  155. switchport access vlan 200
  156. spanning-tree portfast
  157. !
  158. interface FastEthernet0/14
  159. switchport access vlan 200
  160. spanning-tree portfast
  161. !
  162. interface FastEthernet0/15
  163. switchport access vlan 200
  164. spanning-tree portfast
  165. !
  166. interface FastEthernet0/16
  167. switchport access vlan 200
  168. spanning-tree portfast
  169. !
  170. interface FastEthernet0/17
  171. switchport access vlan 200
  172. spanning-tree portfast
  173. !
  174. interface FastEthernet0/18
  175. switchport access vlan 200
  176. spanning-tree portfast
  177. !
  178. interface FastEthernet0/19
  179. switchport access vlan 200
  180. spanning-tree portfast
  181. !
  182. interface FastEthernet0/20
  183. switchport access vlan 200
  184. spanning-tree portfast
  185. !
  186. interface FastEthernet0/21
  187. switchport access vlan 200
  188. spanning-tree portfast
  189. !
  190. interface FastEthernet0/22
  191. switchport access vlan 200
  192. spanning-tree portfast
  193. !
  194. interface FastEthernet0/23
  195. switchport access vlan 200
  196. spanning-tree portfast
  197. !
  198. interface FastEthernet0/24
  199. switchport access vlan 200
  200. spanning-tree portfast
  201. !
  202. ip default-gateway 172.17.7.1
  203. ip http port 8080
  204. !
  205. line con 0
  206. stopbits 1
  207. line vty 0 4
  208. password Oh5053cret
  209. login
  210. line vty 5 9
  211. login
  212. !
  213. end
Advertisement
Add Comment
Please, Sign In to add comment