Advertisement
kokusz19

Untitled

Aug 28th, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. R1#enable
  2. R1#conf t
  3. R1(config)#interface fa 0/0
  4. R1(config-if)#ip addres
  5. R1(config-if)#ip address dhcp
  6. R1(config-if)#ip nat outside
  7. R1(config-if)#no shutdown
  8. R1(config-if)#interface fa 0/1
  9. R1(config-if)#ip add
  10. R1(config-if)#ip address 10.10.10.1 255.255.255.0
  11. R1(config-if)#ip nat inside
  12. R1(config-if)#exit
  13. R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.30.1
  14. R1(config)#access-list 33 permit 10.10.10.0 0.0.0.255
  15. R1(config)#ip nat inside source LIST 33 INTERface fastEthernet 0/0 overload
  16. R1(config)#do write
  17. Building configuration...
  18. [OK]
  19. R1(config)#ip name-server 8.8.8.8
  20. R1(config)#ip domain-lookup
  21. R1(config)#ntp server 0.hu.pool.ntp.org
  22. R1(config)#logging on
  23. R1(config)#logging host 10.10.10.2
  24. R1(config)#logging trap informational
  25. R1(config)#logging facility local7
  26. R1(config)#service timestamps log
  27. R1(config)#username admin privil
  28. R1(config)#username admin privilege 15 secret asdQWE123
  29. R1(config)#do logout
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. R1 con0 is now available
  64.  
  65.  
  66.  
  67.  
  68.  
  69. Press RETURN to get started.
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. R1#
  77. R1#
  78. 00:31:30: %SYS-5-CONFIG_I: Configured from console by console
  79. R1#
  80. 00:31:31: %SYS-6-LOGGINGHOST_STARTSTOP: Logging to host 10.10.10.2 started - CLI initiated
  81. R1#do write
  82. ^
  83. % Invalid input detected at '^' marker.
  84.  
  85. R1#conf t
  86. Enter configuration commands, one per line. End with CNTL/Z.
  87. R1(config)#do write
  88. Building configuration...
  89. [OK]
  90. R1(config)#show ip interface brief
  91. ^
  92. % Invalid input detected at '^' marker.
  93.  
  94. R1(config)#do show ip interface brief
  95. Interface IP-Address OK? Method Status Protocol
  96. FastEthernet0/0 192.168.30.75 YES DHCP up up
  97. Serial0/0 unassigned YES unset administratively down down
  98. FastEthernet0/1 10.10.10.1 YES manual administratively down down
  99. Serial0/1 unassigned YES unset administratively down down
  100. NVI0 unassigned NO unset up up
  101. R1(config)#line con 0
  102. R1(config-line)#login local
  103. R1(config-line)#interface fa 0/1
  104. R1(config-if)#no shutdown
  105. R1(config-if)#line con 0
  106. 00:35:04: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up
  107. 00:35:05: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
  108. R1(config-if)#do logout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement