Advertisement
Guest User

cn LAB 4 sTATIC NAT

a guest
Mar 24th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. NAT ROUTER
  2.  
  3.  
  4. System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
  5. Copyright (c) 2000 by cisco Systems, Inc.
  6. PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
  7.  
  8. Self decompressing the image :
  9. ########################################################################## [OK]
  10.  
  11. Restricted Rights Legend
  12.  
  13. Use, duplication, or disclosure by the Government is
  14. subject to restrictions as set forth in subparagraph
  15. (c) of the Commercial Computer Software - Restricted
  16. Rights clause at FAR sec. 52.227-19 and subparagraph
  17. (c) (1) (ii) of the Rights in Technical Data and Computer
  18. Software clause at DFARS sec. 252.227-7013.
  19.  
  20. cisco Systems, Inc.
  21. 170 West Tasman Drive
  22. San Jose, California 95134-1706
  23.  
  24.  
  25.  
  26. Cisco Internetwork Operating System Software
  27. IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
  28. Technical Support: http://www.cisco.com/techsupport
  29. Copyright (c) 1986-2005 by cisco Systems, Inc.
  30. Compiled Wed 27-Apr-04 19:01 by miwang
  31.  
  32. PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
  33. .
  34. Processor board ID PT0123 (0123)
  35. PT2005 processor: part number 0, mask 01
  36. Bridging software.
  37. X.25 software, Version 3.0.0.
  38. 4 FastEthernet/IEEE 802.3 interface(s)
  39. 2 Low-speed serial(sync/async) network interface(s)
  40. 32K bytes of non-volatile configuration memory.
  41. 63488K bytes of ATA CompactFlash (Read/Write)
  42.  
  43.  
  44. --- System Configuration Dialog ---
  45.  
  46. Continue with configuration dialog? [yes/no]: n
  47.  
  48.  
  49. Press RETURN to get started!
  50.  
  51.  
  52.  
  53. Router>no
  54. Translating "no"...domain server (255.255.255.255)
  55. % Unknown command or computer name, or unable to find computer address
  56.  
  57. Router>no
  58. Translating "no"...domain server (255.255.255.255)
  59. % Unknown command or computer name, or unable to find computer address
  60.  
  61. Router>
  62. Router>
  63. Router>enable
  64. Router#configure terminal
  65. Enter configuration commands, one per line. End with CNTL/Z.
  66. Router(config)#interface fastethernet0/0
  67. Router(config-if)#ip address 10.0.0.1 255.0.0.0
  68. Router(config-if)#no shutdown
  69.  
  70. Router(config-if)#
  71. %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
  72.  
  73. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
  74.  
  75. Router(config-if)#interface serial2/0
  76. Router(config-if)#ip address 20.0.02 255.0.0.0
  77. ^
  78. % Invalid input detected at '^' marker.
  79.  
  80. Router(config-if)#interface serial2/0
  81. Router(config-if)#ip address 20.0.0.2 255.0.0.0
  82. Router(config-if)#no shutdown
  83.  
  84. %LINK-5-CHANGED: Interface Serial2/0, changed state to down
  85. Router(config-if)#exit
  86. Router(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.1
  87. Router(config)#ip nat inside source static 10.0.0.2 50.0.0.1
  88. Router(config)#interface fastethernet0/0
  89. Router(config-if)#ip nat inside
  90. Router(config-if)#exit
  91. Router(config)#interface serial2/0
  92. Router(config-if)#ip nat outside
  93. Router(config-if)#exit
  94. Router(config)#
  95. %LINK-5-CHANGED: Interface Serial2/0, changed state to up
  96.  
  97. %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. Router con0 is now available
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Press RETURN to get started.
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. Router>enable
  129. Router#debug ip nat
  130. IP NAT debugging is on
  131. Router#
  132. NAT: s=30.0.0.2, d=50.0.0.1->10.0.0.2 [9]
  133.  
  134. NAT*: s=10.0.0.2->50.0.0.1, d=30.0.0.2 [16]
  135.  
  136. NAT: s=30.0.0.2, d=50.0.0.1->10.0.0.2 [10]
  137.  
  138. NAT*: s=10.0.0.2->50.0.0.1, d=30.0.0.2 [17]
  139.  
  140. NAT: s=30.0.0.2, d=50.0.0.1->10.0.0.2 [11]
  141.  
  142. NAT*: s=10.0.0.2->50.0.0.1, d=30.0.0.2 [18]
  143.  
  144. NAT: s=30.0.0.2, d=50.0.0.1->10.0.0.2 [12]
  145.  
  146. NAT*: s=10.0.0.2->50.0.0.1, d=30.0.0.2 [19]
  147.  
  148. NAT: expiring 50.0.0.1 (10.0.0.2) icmp 5 (5)
  149.  
  150. NAT: expiring 50.0.0.1 (10.0.0.2) icmp 6 (6)
  151.  
  152. NAT: expiring 50.0.0.1 (10.0.0.2) icmp 7 (7)
  153.  
  154. NAT: expiring 50.0.0.1 (10.0.0.2) icmp 8 (8)
  155.  
  156. Router#no debug ip net
  157. ^
  158. % Invalid input detected at '^' marker.
  159.  
  160. Router#no debug ip nat
  161. IP NAT debugging is off
  162. Router#
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171. Router con0 is now available
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. Press RETURN to get started.
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. //ANOTHER ROUTER
  191. System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)
  192. Copyright (c) 2000 by cisco Systems, Inc.
  193. PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
  194.  
  195. Self decompressing the image :
  196. ########################################################################## [OK]
  197.  
  198. Restricted Rights Legend
  199.  
  200. Use, duplication, or disclosure by the Government is
  201. subject to restrictions as set forth in subparagraph
  202. (c) of the Commercial Computer Software - Restricted
  203. Rights clause at FAR sec. 52.227-19 and subparagraph
  204. (c) (1) (ii) of the Rights in Technical Data and Computer
  205. Software clause at DFARS sec. 252.227-7013.
  206.  
  207. cisco Systems, Inc.
  208. 170 West Tasman Drive
  209. San Jose, California 95134-1706
  210.  
  211.  
  212.  
  213. Cisco Internetwork Operating System Software
  214. IOS (tm) PT1000 Software (PT1000-I-M), Version 12.2(28), RELEASE SOFTWARE (fc5)
  215. Technical Support: http://www.cisco.com/techsupport
  216. Copyright (c) 1986-2005 by cisco Systems, Inc.
  217. Compiled Wed 27-Apr-04 19:01 by miwang
  218.  
  219. PT 1001 (PTSC2005) processor (revision 0x200) with 60416K/5120K bytes of memory
  220. .
  221. Processor board ID PT0123 (0123)
  222. PT2005 processor: part number 0, mask 01
  223. Bridging software.
  224. X.25 software, Version 3.0.0.
  225. 4 FastEthernet/IEEE 802.3 interface(s)
  226. 2 Low-speed serial(sync/async) network interface(s)
  227. 32K bytes of non-volatile configuration memory.
  228. 63488K bytes of ATA CompactFlash (Read/Write)
  229.  
  230.  
  231. --- System Configuration Dialog ---
  232.  
  233. Continue with configuration dialog? [yes/no]: n
  234.  
  235.  
  236. Press RETURN to get started!
  237.  
  238.  
  239.  
  240. Router>enable
  241. Router#configure terminal
  242. Enter configuration commands, one per line. End with CNTL/Z.
  243. Router(config)#interface fastethernet0/0
  244. Router(config-if)#ip address 30.0.0.1 255.0.0.0
  245. Router(config-if)#no shutdown
  246.  
  247. Router(config-if)#
  248. %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
  249.  
  250. %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
  251.  
  252. Router(config-if)#interface serial2/0
  253. Router(config-if)#ip address 20.0.0.1 255.0.0.0
  254. Router(config-if)#clock rate 64000
  255. Router(config-if)#bandwidth 64
  256. Router(config-if)#no shutdown
  257.  
  258. Router(config-if)#
  259. %LINK-5-CHANGED: Interface Serial2/0, changed state to up
  260.  
  261. Router(config-if)#
  262. %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up
  263.  
  264. Router(config-if)#exit
  265. Router(config)#ip route 50.0.0.0 255.0.0.0 20.0.0.2
  266. Router(config)#exit
  267. Router#
  268. %SYS-5-CONFIG_I: Configured from console by console
  269.  
  270. Router#
  271. Router#
  272. Router#
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281. Router con0 is now available
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. Press RETURN to get started.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement