Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. ---EX1---
  2.  
  3. !configurar pc's
  4. !host A 192.168.1.1 255.255.255.0
  5. !host B 192.168.4.1 255.255.255.0
  6.  
  7. ---R1----
  8.  
  9. !R1>show version
  10.  
  11. R1>enable
  12.  
  13. !R1#show running-config
  14. !R1#show startup-config
  15.  
  16. R1#configure terminal
  17. Enter configuration commands, one per line. End with Ctrl-Z
  18. R1(config)#
  19.  
  20. R1(config)#interface Ethernet0
  21. R1(config-if)#ip address 192.168.1.253 255.255.255.0
  22. R1(config-if)#no shutdown
  23. R1(config-if)#exit
  24. R1(config)#exit
  25.  
  26. R1(config)#interface FastEthernet0
  27. R1(config-if)#ip address 192.168.2.254 255.255.255.0
  28. R1(config-if)#no shutdown
  29. R1(config-if)#exit
  30. R1(config)#exit
  31.  
  32. !no router
  33. !ping 192.168.1.253
  34. !ping 192.168.2.254
  35.  
  36. ---R2----
  37.  
  38. !R2>show version
  39.  
  40. R2>enable
  41.  
  42. !R2#show running-config
  43. !R2#show startup-config
  44.  
  45. R2#configure terminal
  46. Enter configuration commands, one per line. End with Ctrl-Z
  47. R2(config)#
  48.  
  49. R2(config)#interface Ethernet0
  50. R2(config-if)#ip address 192.168.3.254 255.255.255.0
  51. R2(config-if)#no shutdown
  52. R2(config-if)#exit
  53. R2(config)#exit
  54.  
  55. R2(config)#interface FastEthernet0
  56. R2(config-if)#ip address 192.168.2.253 255.255.255.0
  57. R2(config-if)#no shutdown
  58. R2(config-if)#exit
  59. R2(config)#exit
  60.  
  61. !no router
  62. !ping 192.168.2.253
  63. !ping 192.168.3.254
  64.  
  65. ---R3----
  66.  
  67. !R3>show version
  68.  
  69. R3>enable
  70.  
  71. !R3#show running-config
  72. !R3#show startup-config
  73.  
  74. R3#configure terminal
  75. Enter configuration commands, one per line. End with Ctrl-Z
  76. R3(config)#
  77.  
  78. R3(config)#interface Ethernet0
  79. R3(config-if)#ip address 192.168.4.254 255.255.255.0
  80. R3(config-if)#no shutdown
  81. R3(config-if)#exit
  82. R3(config)#exit
  83.  
  84. R3(config)#interface FastEthernet0
  85. R3(config-if)#ip address 192.168.3.253 255.255.255.0
  86. R3(config-if)#no shutdown
  87. R3(config-if)#exit
  88. R3(config)#exit
  89.  
  90. !no router
  91. !ping 192.168.3.253
  92. !ping 192.168.4.254
  93.  
  94. ---------
  95.  
  96. !no pc
  97. !host A ping 192.168.4.1
  98. !host B ping 192.168.1.1
  99.  
  100.  
  101.  
  102. !Router>show interface ethernet0
  103. !Router#show ip interface ethernet0
  104. !Router#show ip interface brief
  105.  
  106. ---EX2---
  107.  
  108. ---R1----
  109.  
  110. R1#show ip route
  111.  
  112. ---R2----
  113.  
  114. R2#show ip route
  115.  
  116. ---R3----
  117.  
  118. R3#show ip route
  119.  
  120. ---------
  121.  
  122. ---EX3---
  123.  
  124. ---R1----
  125.  
  126. R1#configure terminal
  127. Enter configuration commands, one per line. End with Ctrl-Z
  128.  
  129. R1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.253
  130. R1(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.253
  131.  
  132. R1#show ip route
  133.  
  134. ---R2----
  135.  
  136. R2#configure terminal
  137. Enter configuration commands, one per line. End with Ctrl-Z
  138.  
  139. R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.254
  140. R2(config)#ip route 192.168.4.0 255.255.255.0 192.168.3.253
  141.  
  142. R2#show ip route
  143.  
  144. ---R3----
  145.  
  146. R3#configure terminal
  147. Enter configuration commands, one per line. End with Ctrl-Z
  148.  
  149. R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.254
  150. R3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.254
  151.  
  152. R3#show ip route
  153.  
  154. ---------
  155.  
  156. ---EX4---
  157.  
  158. ---R1----
  159.  
  160. R1#configure terminal
  161. Enter configuration commands, one per line. End with Ctrl-Z
  162.  
  163. R1(config)#no ip route 192.168.3.0 255.255.255.0 192.168.2.253
  164. R1(config)#no ip route 192.168.4.0 255.255.255.0 192.168.2.253
  165.  
  166. R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.253
  167.  
  168.  
  169. R1#show ip route
  170.  
  171. ---R2----
  172.  
  173. R2#configure terminal
  174. Enter configuration commands, one per line. End with Ctrl-Z
  175.  
  176. R2(config)#no ip route 192.168.1.0 255.255.255.0 192.168.2.254
  177. R2(config)#no ip route 192.168.4.0 255.255.255.0 192.168.3.253
  178.  
  179. R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.2.254
  180. R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.253
  181.  
  182. R2#show ip route
  183.  
  184. ---R3----
  185.  
  186. R3#configure terminal
  187. Enter configuration commands, one per line. End with Ctrl-Z
  188.  
  189. R3(config)#no ip route 192.168.1.0 255.255.255.0 192.168.3.253
  190. R3(config)#no ip route 192.168.2.0 255.255.255.0 192.168.3.253
  191.  
  192. R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.3.253
  193.  
  194. R3#show ip route
  195.  
  196. ---------
  197.  
  198. ---EX5---
  199.  
  200. ---R1----
  201.  
  202. R1#show ip route
  203.  
  204. R1#configure terminal
  205. Enter configuration commands, one per line. End with Ctrl-Z
  206.  
  207. R1(config)#no ip route 0.0.0.0 0.0.0.0 192.168.2.253
  208.  
  209. R1(config)#router rip
  210. R1(config-router)#version 2
  211. R1(config-router)#network 192.168.1.0
  212. R1(config-router)#network 192.168.2.0
  213. R1(config-router)#passive-interface Ethernet0
  214. R1(config-router)#exit
  215. R1#
  216.  
  217. R1#show ip route
  218.  
  219. ---R2----
  220.  
  221. R2#show ip route
  222.  
  223. R2#configure terminal
  224. Enter configuration commands, one per line. End with Ctrl-Z
  225.  
  226. R2(config)#no ip route 0.0.0.0 0.0.0.0 192.168.2.253
  227.  
  228. R2(config)#router rip
  229. R2(config-router)#version 2
  230. R2(config-router)#network 192.168.2.0
  231. R2(config-router)#network 192.168.3.0
  232. R2(config-router)#exit
  233. R2#
  234.  
  235. R2#show ip route
  236.  
  237. ---R3----
  238.  
  239. R3#show ip route
  240.  
  241. R3#configure terminal
  242. Enter configuration commands, one per line. End with Ctrl-Z
  243.  
  244. R3(config)#no ip route 0.0.0.0 0.0.0.0 192.168.2.253
  245.  
  246. R3(config)#router rip
  247. R3(config-router)#version 2
  248. R3(config-router)#network 192.168.3.0
  249. R3(config-router)#network 192.168.4.0
  250. R1(config-router)#passive-interface Ethernet0
  251. R3(config-router)#exit
  252. R3#
  253.  
  254. R3#show ip route
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement