Advertisement
d3phoenix

Simple Cisco Router Configuration

Nov 4th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ! This is a simple Cisco router configuration template
  2. ! that provides all of the basic functionality of a
  3. ! consumer grade router.
  4. !
  5. !
  6. hostname [MYROUTER]
  7. !
  8. aaa new-model
  9. aaa authentication login default local
  10. aaa authorization exec default local
  11. !
  12. ip dhcp excluded-address 192.168.20.1 192.168.20.100
  13. ip dhcp excluded-address 192.168.20.200 192.168.20.254
  14. !
  15. ip dhcp pool LAN
  16. network 192.168.20.0 255.255.255.0
  17. default-router 192.168.20.1
  18. dns-server 8.8.4.4 8.8.8.8
  19. domain-name [MYDOMAIN]
  20. !
  21. username [MYUSERNAME] privilege 15 secret [MYPASSWORD]
  22. !
  23. crypto key generate rsa general-keys modulus 1024
  24. !
  25. ip ssh version 2
  26. !
  27. interface FastEthernet0/0
  28. description LAN
  29. ip address 192.168.20.1 255.255.255.0
  30. ip nat inside
  31. !
  32. interface FastEthernet1/0
  33. description WAN
  34. ip address dhcp
  35. ip nat outside
  36. !
  37. ip route 0.0.0.0 0.0.0.0 dhcp
  38. !
  39. no ip http server
  40. no ip http secure-server
  41. !
  42. ip nat inside source list NAT-INTERNET interface FastEthernet1/0 overload
  43. !
  44. ip access-list standard NAT-INTERNET
  45. permit 192.168.20.0 0.0.0.255
  46. !
  47. line con 0
  48. exec-timeout 15 0
  49. privilege level 15
  50. logging synchronous
  51. login authenticiation default
  52. !
  53. line vty 0 4
  54. exec-timeout 15 0
  55. privilege level 15
  56. logging synchronous
  57. login authenticiation default
  58. transport input telnet ssh
  59. !
  60. line vty 5 15
  61. exec-timeout 15 0
  62. privilege level 15
  63. logging synchronous
  64. login authenticiation default
  65. transport input telnet ssh
  66. !
  67. ntp source FastEthernet1/0
  68. ntp server 0.pool.ntp.org prefer
  69. ntp server 1.pool.ntp.org
  70. ntp server 2.pool.ntp.org
  71. !
  72. end
  73.  
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement