This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
kb:cisco [2018/08/09 11:04] Dan Mundy ↷ Links adapted because of a move operation |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Cisco ====== | ||
- | |||
- | * [[cisco_config_templates|Cisco Config Templates]] | ||
- | * [[it:cisco_sg300]] | ||
- | * [[kb:cisco_switches]] | ||
- | * [[kb:cisco_snmp_monitoring]] | ||
- | |||
- | {{page>kb:ad&noeditbutton&nofooter}} | ||
- | |||
- | ===== Misc ===== | ||
- | |||
- | * [[http://www.subnetonline.com/pages/subnet-calculators/ipv4-wildcard-calculator.php|Wildcard mask calculator]] to convert a subnet mask into a wildcard mask required for ACLs | ||
- | |||
- | ===== Config / Firmware / etc ===== | ||
- | |||
- | * [[it:delete_sdm_from_cisco_flash]] | ||
- | * [[kb:cisco_password_recovery]] | ||
- | * [[it:setting_password_on_cisco_routers]] | ||
- | * [[it:upgrading_ios_on_cisco]] | ||
- | * [[it:clearing_configs_on_cisco_routers_and_switches]] | ||
- | * [[it:how_to_save_a_cisco_config_file]] | ||
- | * [[kb:reload_cisco_router]] | ||
- | |||
- | ===== Networking / Routing / etc ===== | ||
- | |||
- | * [[https://supportforums.cisco.com/docs/DOC-8313|dual internet links NATing with PBR and IP SLA]] | ||
- | * [[it:how_to_disable_stp]] | ||
- | * [[kb:vlans_in_cisco_routers]] | ||
- | |||
- | ===== Logging etc ===== | ||
- | |||
- | * [[https://supportforums.cisco.com/docs/DOC-4687|Router log timestamp entries are different from the system clock when the NTP is configured]] | ||
- | * [[it:date_and_time_on_cisco]] | ||
- | * [[it:cisco_logging_debugging_and_adsl_troubleshooting]] | ||
- | * [[it:netflow_in_cisco]] | ||
- | * [[it:stop_logging_messages_from_interrupting_your_configuration]] | ||
- | * [[kb:troubleshooting_cisco_cpu_utilisation]] | ||
- | |||
- | ===== Network Services ===== | ||
- | |||
- | * [[kb:cisco_router_as_a_dhcp_server]] | ||
- | * [[it:use_a_cisco_router_as_a_dns_server]] | ||
- | * [[it:running_an_ftp_server_behind_a_cisco_router_with_nat]] | ||
- | * [[kb:dhcp_relay_in_cisco_router]] | ||
- | * [[it:cisco_router_as_a_dhcp_client]] | ||
- | |||
- | ===== SSH ===== | ||
- | |||
- | * [[it:regenerate_ssh_keys_on_cisco]] | ||
- | * [[it:lock_down_ssh_on_cisco_routers]] | ||
- | * [[http://blog.pluralsight.com/configure-secure-shell-ssh-on-cisco-router|Configure SSH]] | ||
- | |||
- | ===== Scripting ===== | ||
- | |||
- | * [[it:cisco_scripts]] | ||
- | |||
- | Resources for scripting in cisco: | ||
- | |||
- | * [[http://blog.ioshints.info/2007/04/execute-multiple-commands-at-once.html|Execute multiple commands at once]] | ||
- | * [[http://blog.ioshints.info/2007/05/ios-tclsh-resources.html|IOS Tclsh resources]] | ||
- | * [[http://blog.ioshints.info/2007/08/example-tcl-script-with-command-line.html|Example: Tcl script with command-line parameters]] | ||
- | |||
- | ===== Security ===== | ||
- | |||
- | * [[kb:cisco_router_users]] | ||
- | |||
- | * [[kb:cisco_vpn]] | ||
- | |||
- | ===== Basic Commands ===== | ||
- | |||
- | When typing any command, you can press ? to show help information. This can show available commands, and also syntax for specific commands. You can also use TAB to complete commands. | ||
- | |||
- | * Clear the NAT translation tables: clear ip nat translation * | ||
- | * Go to beginning of line: CTRL+A, to end of line: CTRL+E | ||
- | * Delete the startup config (will show setup mode after reload): erase startup-config | ||
- | * Show host table: show hosts (temp = cached lookup, perm = host added with "ip host") | ||
- | * Disable console logging: no logging console | ||
- | * Turn off all debugging: "undebug all" or "un all" | ||
- | |||
- | Show the Running Config | ||
- | |||
- | * Turn off the annoying MORE behaviour:terminal length 0(term len 0) | ||
- | * Show the configuration:show running-config(show run) | ||
- | * Show the startup config:show startup-config(show start) | ||
- | * Revert changes from startup config:copy startup-config running-config(copy start run) - or just reboot the router | ||
- | * Commit changes to startup config:copy running-config startup-config(copy run start) | ||
- | * Another method (does the same thing):wr | ||
- | * Start displaying config at specific line containing word: show run | begin word | ||
- | * Display all lines with given word: show run | include word | ||
- | * show run | section word | ||
- | |||
- | Routing | ||
- | |||
- | * Show routes: show ip route | ||
- | |||
- | Interfaces | ||
- | |||
- | * List interfaces: show ip int brief | ||
- | * Show particular interface: show run interface Dialer0 | ||
- | * Show trunk ports: show interface trunk | ||
- | |||
- | Insert ACLs using Line Numbers | ||
- | |||
- | * To show ACL rules with line numbers: show ip access-list | ||
- | * To remove a line (eg. 50): no 50 | ||
- | * To add a rule at a line number (eg. 50): 50 permit udp any any eq domain | ||