Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. 9.4.2.6
  2.  
  3. masalah 1 (192 dan 10)
  4. biasanya deny harus di permit
  5. urutan tidak boleh terbalik
  6. Current configuration : 1117 bytes
  7. !
  8. version 15.1
  9. no service timestamps log datetime msec
  10. no service timestamps debug datetime msec
  11. no service password-encryption
  12. !
  13. hostname R1
  14. !
  15. !
  16. !
  17. !
  18. !
  19. !
  20. !
  21. !
  22. ip cef
  23. no ipv6 cef
  24. !
  25. !
  26. !
  27. !
  28. license udi pid CISCO2911/K9 sn FTX15248TP2
  29. !
  30. !
  31. !
  32. !
  33. !
  34. !
  35. !
  36. !
  37. !
  38. !
  39. !
  40. spanning-tree mode pvst
  41. !
  42. !
  43. !
  44. !
  45. !
  46. !
  47. interface GigabitEthernet0/0
  48. ip address 10.0.0.1 255.0.0.0
  49. ip access-group 10_to_172 out
  50. duplex auto
  51. speed auto
  52. !
  53. interface GigabitEthernet0/1
  54. ip address 172.16.0.1 255.255.0.0
  55. ip access-group 172_to_192 in
  56. duplex auto
  57. speed auto
  58. !
  59. interface GigabitEthernet0/2
  60. ip address 192.168.0.1 255.255.255.0
  61. ip access-group 192_to_10 in
  62. duplex auto
  63. speed auto
  64. !
  65. interface Vlan1
  66. no ip address
  67. shutdown
  68. !
  69. ip classless
  70. !
  71. ip flow-export version 9
  72. !
  73. !
  74. ip access-list extended 10_to_172
  75. deny tcp 10.0.0.0 0.255.255.255 host 172.16.255.254 eq www
  76. permit ip any any
  77. ip access-list extended 172_to_192
  78. deny tcp 172.16.0.0 0.0.255.255 host 192.168.0.254 eq ftp
  79. permit ip any any
  80. ip access-list extended 192_to_10
  81. deny tcp 192.168.0.0 0.0.0.255 host 10.255.255.254
  82. !
  83. !
  84. !
  85. !
  86. !
  87. line con 0
  88. !
  89. line aux 0
  90. !
  91. line vty 0 4
  92. login
  93.  
  94. R1#conf t
  95. Enter configuration commands, one per line. End with CNTL/Z.
  96. R1(config)#ip access-list extended 192_to_10
  97. R1(config-ext-nacl)#permit ip an
  98. R1(config-ext-nacl)#permit ip any an
  99. R1(config-ext-nacl)#permit ip any any
  100. R1(config-ext-nacl)#end
  101. R1#
  102. %SYS-5-CONFIG_I: Configured from console by console
  103.  
  104. R1#sh r
  105. Building configuration...
  106.  
  107. Current configuration : 1136 bytes
  108. !
  109. version 15.1
  110. no service timestamps log datetime msec
  111. no service timestamps debug datetime msec
  112. no service password-encryption
  113. !
  114. hostname R1
  115. !
  116. !
  117. !
  118. !
  119. !
  120. !
  121. !
  122. !
  123. ip cef
  124. no ipv6 cef
  125. !
  126. !
  127. !
  128. !
  129. license udi pid CISCO2911/K9 sn FTX15248TP2
  130. !
  131. !
  132. !
  133. !
  134. !
  135. !
  136. !
  137. !
  138. !
  139. !
  140. !
  141. spanning-tree mode pvst
  142. !
  143. !
  144. !
  145. !
  146. !
  147. !
  148. interface GigabitEthernet0/0
  149. ip address 10.0.0.1 255.0.0.0
  150. ip access-group 10_to_172 out
  151. duplex auto
  152. speed auto
  153. !
  154. interface GigabitEthernet0/1
  155. ip address 172.16.0.1 255.255.0.0
  156. ip access-group 172_to_192 in
  157. duplex auto
  158. speed auto
  159. !
  160. interface GigabitEthernet0/2
  161. ip address 192.168.0.1 255.255.255.0
  162. ip access-group 192_to_10 in
  163. duplex auto
  164. speed auto
  165. !
  166. interface Vlan1
  167. no ip address
  168. shutdown
  169. !
  170. ip classless
  171. !
  172. ip flow-export version 9
  173. !
  174. !
  175. ip access-list extended 10_to_172
  176. deny tcp 10.0.0.0 0.255.255.255 host 172.16.255.254 eq www
  177. permit ip any any
  178. ip access-list extended 172_to_192
  179. deny tcp 172.16.0.0 0.0.255.255 host 192.168.0.254 eq ftp
  180. permit ip any any
  181. ip access-list extended 192_to_10
  182. deny tcp 192.168.0.0 0.0.0.255 host 10.255.255.254
  183. permit ip any any
  184. !
  185. !
  186. !
  187. !
  188. !
  189. line con 0
  190. !
  191. line aux 0
  192. !
  193. line vty 0 4
  194. login
  195. !
  196. !
  197. !
  198. end
  199.  
  200.  
  201. R1# conf t
  202. Enter configuration commands, one per line. End with CNTL/Z.
  203. R1(config)#int g0/0
  204. R1(config-if)#no ip access-group 10_to_172 out
  205. R1(config-if)#ip access-group 10_to_172 in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement