What is this file?

  • This file was made for a certain feature to work correctly on the website.
  • I recommend using Cisco IOS Commands instead.

User EXEC Commands

  • enable
  • exit
  • end

Privileged EXEC Commands

General

  • configure terminal
  • ping ip address
  • hostname hostname
  • copy running-config startup-config /write / write memory --> Saves running configuration to startup configuration
  • erase startup-config / write erase / erase nvram: --> Deletes the startup configuration

Clear

1. MAC Address Table

  • clear mac address-table
  • clear mac address-table dynamic --> Clears all dynamically learned MAC addresses
  • clear mac address-table dynamic address address --> Clears a specific dynamically learned MAC address
  • clear mac address-table dynamic interface interface --> Clear all dynamically learned MAC addresses on a specific interface

2. OSPF

  • clear ip ospf process --> Restarts the current OSPF process

3. NAT

  • clear ip nat translation * --> Clears all dynamic NAT translations in the NAT translation table

NTP Privileged

  • clock set hh:mm:ss day month year --> Sets the device’s software clock (day and month can be swapped around)
  • calendar set hh:mm:ss day month year --> Sets the device’s hardware clock (day and month can be swapped around)
  • clock update-calendar --> Syncs the calendar (hardware clock) to the clock’s (software clock) time
  • clock read-calendar --> Syncs the clock (software time) to the calendar’s (hardware clock) time

Syslog Privileged

  • terminal monitor --> Displays Syslog messages when connected through VTY (Telnet, SSH). Must be used every time a connection is established

VRF Privileged

  • ping vrf vrf-name ip-address --> Pings an IP address in the specified VRF

Show (Can Be Used in Global Config with ‘do’)

1. General Show

  • show item
  • show item | argument String --> Filters through the command’s output with selected argument (Arguments: include / section)
  • show running-config
  • show startup-config
  • show mac address-table / show mac-address-table (for older devices)
  • show logging --> Shows the device’s logs
  • show version --> Shows information about the current device’s version and OS
  • show file systems --> Shows the file systems of a Cisco IOS device
  • show flash --> Shows the contents of the system’s flash memory

2. Interfaces

  • show interfaces [interface-id | argument] --> Shows full interface information
  • show interfaces interface-id switchport --> Shows the interface’s switchport information.
  • show interfaces status --> Shows full interface(s) information on switches
  • show interfaces trunk --> Shows switchport trunk information for all interfaces
  • show interfaces interface-id trunk --> Shows switchport trunk information for a specific interface
  • show controllers serial port/number --> Shows information about the serial interface, mostly used to determine the DCE (Data Communications Equipment) and the DTE (Data Terminal Equipment)

3. IP Commands

  • show ip interface brief --> Shows short, concise interfaces’ information

4. VLANs

  • show vlan
  • show vlan brief --> Shows a brief list of VLANs and the access ports that are using them

5. VTP

  • show vtp status

6. Spanning Tree

  • show spanning-tree --> Shows general STP status and information
  • show spanning-tree vlan vlan-id --> Shows spanning-tree information for a specific VLAN
  • show spanning-tree detail --> Shows detailed STP information
  • show spanning-tree summary --> Shows a summary of the current STP configuration

7. EtherChannel

  • show etherchannel
  • show etherchannel summary --> Shows a summary of current EtherChannels
  • show etherchannel port-channel --> Like the summary command, but it shows the current EtherChannel protocol as well (LACP/PAgP)
  • show etherchannel load-balance --> Shows current EtherChannel load balancing method

8. Routes

8.1 General

  • show ip route [argument] --> Shows the router/switch’s routing table, optionally with an argument to filter for routes of a specific type
    • show ip protocols --> Shows routing protocol information

8.2 EIGRP Routes

  • show ip eigrp neighbors --> Shows information about EIGRP neighbors
  • show ip eigrp topology --> Shows all learned routes through EIGRP and their information. Includes routes that aren’t currently displayed in show ip route, and shows the EIGRP Feasible Distance and Reported Distance

8.3 OSPF Routes

  • show ip ospf database --> Shows all of the Link State Advertisements (LSA) in the Link State Database (LSDB)
  • show ip ospf neighbor --> Shows the router’s OSPF neighbors
  • show ip ospf interface [interface-id] --> Shows detailed information about all the interfaces running OSPF, or one specific interface if specified
    • show ip ospf interface brief --> Brief view of all OSPF interfaces

9. FHRP Protocols

9.1 HSRP

  • show standby --> Shows information about the running HSRP configuration on the router

10. IPv6

  • show ipv6 route --> Shows the IPv6 routing table.
  • show ipv6 interface brief --> Shows brief information about all IPv6 interfaces
  • show ipv6 interface interface-id --> Shows full IPv6 interface information
  • show ipv6 neighbor --> Shows the IPv6 equivalent of an ARP table

11. ACL

  • show access-lists --> Shows ALL configured access-lists on the router
  • show ip access-lists --> Shows IP related access-lists on the router

12. Layer 2 Discovery Protocols

12.1 CDP

  • show cdp --> Shows global CDP information, like the timer, holdtime, and advertisement version
  • show cdp traffic --> Shows CDP traffic statistics
  • show cdp interface --> Shows full CDP information about the interfaces running the CDP protocol, along with a basic summary at the end
  • show cdp interface interface-id --> Shows full CDP information about the specified interface running the CDP protocol
  • show cdp neighbors --> Shows brief information about all connected CDP neighbors
  • show cdp neighbors detail --> Shows detailed information about all connected CDP neighbors
  • show cdp entry host-name --> Similar to show cdp neighbors detail, but only shows detailed information for the specified host

12.2 LLDP

  • show lldp --> Shows global lldp information, like the timer, holdtime, and reinit timer
  • show lldp traffic --> Shows LLDP traffic statistics
  • show lldp interface --> Shows full LLDP information about the interfaces running the LLDP protocol, such as transmit and receive status and state
  • show lldp interface interface-id --> Shows full LLDP information about the specified interface running the LLDP protocol
  • show lldp neighbors --> Shows brief information about all connected LLDP neighbors
  • show lldp neighbors detail --> Shows detailed information about all connected LLDP neighbors
  • show lldp entry host-name --> Similar to show lldp neighbors detail, but only shows detailed information for the specified host

13. NTP

  • show clock --> Shows basic clock information
  • show clock detail --> Shows the time source (hardware calendar by default) and basic clock information
  • show ntp status --> Shows general NTP information like stratum level and IP address of the connected time syncing server
  • show ntp associations --> Shows the NTP servers the device is syncing to

14. DNS

  • show hosts --> Shows the configured hosts as well as hosts learned and cached through DNS

15. DHCP

  • show ip dhcp binding --> Shows all DHCP clients which are currently assigned IP addresses

16. SSH

  • show ip ssh --> Shows detailed information about the current SSH configuration

17. FTP & TFTP

  • show version --> Shows information about the current device’s version and OS
  • show file systems --> Shows the file systems of a Cisco IOS device
  • show flash --> Shows the contents of the system’s flash memory

18. NAT

  • show ip nat translations --> Shows information about IP addresses that have been translated through NAT
  • show ip nat statistics --> Shows statistics about the current NAT process

19. Power Policing

  • show power inline police interface-id --> Shows the power policing information of the specified interface

20. Port Security

  • show port-security --> Shows general port security information about the current configuration
  • show port-security interface interface-id --> Shows the port security configuration on the specified interface
  • show mac address-table secure --> Shows all configured Secure MAC addresses
  • show errdisable recovery --> Shows the current err-disable recovery settings

21. DHCP Snooping

  • show ip dhcp snooping binding --> Shows the DHCP snooping binding table

22. Dynamic ARP Inspection

  • show ip arp inspection --> Shows a summary of the Dynamic ARP Inspection configuration as well as statistics
  • show ip arp inspection interfaces --> Shows the status of Dynamic ARP Inspection on the switch’s interfaces

23. VRF

  • show ip vrf --> Shows all configured VRFs on the router.
  • show ip route vrf vrf-name --> Shows the IP routing table for a specific VRF (VRF routing tables do not show up in the normal show ip route command.)

Global Config Commands

General

  • enable password password
  • enable secret password
  • no command-here --> To remove commands from the configuration
  • do command-here --> To execute Privileged EXEC commands in Global
  • ip route ip-address netmask [exit-interface &/ next-hop] [distance-metric]
  • ip routing --> Enables Layer 3 routing on a Multilayer switch
  • ip default-gateway ip-address --> Configures the switch’s default gateway
  • ipv6 unicast-routing --> Enables IPv6 routing on the router
  • username username secret password --> Configures a user and their password on the device. Usually used with login local
  • login --> Enables login, which prompts the user to enter a password only in order to access the Cisco IOS CLI
  • login local --> Enables local login, which prompts the user to enter a username and password in order to access the Cisco IOS CLI
  • line line-type line-number --> Enters the configuration mode for the specified line type (console, VTY, etc.) and the specified line’s number
  • boot system file-path --> Sets the Cisco device’s boot system IOS file
  • copy source destination --> Copies files from a source location to a destination location
  • delete file-path --> Deletes the specified file.

Service

1. General

  • service password-encryption --> Enables Type 7 password encryption on all existing and future passwords, removing the service will NOT decrypt passwords. (not recommended)
  • service sequence-numbers --> Enables sequence numbers to be displayed in Syslog messages
  • service timestamps log time-type { datetime | uptime } --> Enables timestamps to be displayed in Syslog messages

VLANs

  • vlan vlan-id --> Creates a new VLAN, or enters VLAN configuration mode
    • name name --> Changes the current VLAN’s name

ACL Global

1. General

  • access-list number remark description --> Gives the specified access list a remark/description
  • ip access-list resequence acl-name/acl-number starting-seq-number increment --> Modifies the access list’s sequencing numbers according to specified arguments

2. Standard

  • access-list number { deny | permit } ip wildcard-mask --> Configures a standard numbered ACL
  • ip access-list standard acl-name/acl-number --> Enters standard named ACL configuration mode
    • [entry-number] { deny | permit } ip wildcard-mask

3. Extended

  • access-list number { deny | permit } protocol src-ip dst-ip --> Configures an extended numbered ACL
  • ip access-list extended acl-name/acl-number --> Enters standard named ACL configuration mode
    • [entry-number] { deny | permit } protocol src-ip dst-ip
    • [entry-number] { deny | permit } protocol src-ip argument source-port-num dst-ip argument dst-port-num (Arguments: eq / gt / lt / neq / range )

Layer 2 Discovery Protocols Global

1. CDP

  • cdp run --> Enables CDP globally
  • cdp timer seconds --> Sets the CDP message timer
  • cdp holdtime seconds --> Sets the CDP message holdtime
  • cdp advertise-v2 --> Changes CDP version to V2

2. LLDP

  • lldp run --> Enables LLDP globally
  • lldp timer seconds --> Sets the LLDP message timer
  • lldp holdtime seconds --> Sets the LLDP message holdtime
  • lldp reinit seconds --> Sets the LLDP reinit timer

NTP Global

  • clock timezone timezone-name hours-offset [minutes-offset] --> Changes the clock’s timezone to a user specified timezone name with an hours offset, and an optional minutes offset
  • clock summer-time name recurring start end [offset] --> Sets the daylight saving time (summer time) configuration for the clock
    • (start and end each require the week (first, last or number), weekday, month and time)
  • ntp update-calendar --> Updates the calendar (hardware clock) using NTP
  • ntp server ip-address [prefer] --> Configures an NTP server that the client will sync to
  • ntp server ip-address key key-number --> Configures an NTP server that the client will sync to along with the authentication key number
  • ntp peer ip-address --> Sets up symmetric active peering mode with another NTP server
  • ntp peer ip-address key key-number --> Sets up symmetric active peering mode with another NTP server along with the authentication key number
  • ntp master [stratum-level] --> Configures the device as an NTP server with an optional stratum level argument (Defaults to stratum 8)
  • ntp source interface-id --> Changes the source of NTP messages to be that of the specified interface
  • ntp authenticate --> Enables NTP authentication
  • ntp authentication-key key-number md5 key/password --> Configures an NTP authentication key
  • ntp trusted-key key-number --> Trusts the NTP key number on the current device

DNS

  • ip dns server --> Configures the router to act as a DNS server
  • ip domain lookup / ip domain-lookup --> Enables the router to perform DNS queries (enabled by default)
  • ip host host-name ip-address --> Configures a host address mapping to be used for DNS queries
  • ip name-server ip-address --> Configures an external DNS server to query if a requested record isn’t available in the router’s host table
  • ip domain name domain-name / ip domain-name domain-name --> Configures the default domain name

DHCP Global

  • ip dhcp excluded-address low-address high-address --> Specifies the range of addresses that won’t be given to DHCP clients
  • ip dhcp pool pool-name --> Initiates a DHCP pool and enters DHCP pool configuration mode or enters DHCP pool configuration if the pool already exists
    • network ip-address { /prefix-length | subnet-mask } --> Specifies the subnet of addressed to be assigned to clients (Except the excluded addresses)
    • lease time { days hours minutes | infinite } --> Specifies the DHCP IP address lease time
    • default-router ip-address --> Specifies the default gateway that the DHCP clients should use
    • dns-server ip-address --> Specifies the DNS server that DHCP clients should use
    • domain-name domain-name --> Specifies the domain name of the network
    • option 43 ip ip-address --> Enables Option 43 for DHCP clients, which can be used to tell the APs the IP address of their WLC

SNMP

  • snmp-server contact contact-info --> Sets the SNMP server contact information
  • snmp-server location location-info --> Sets the SNMP server location information
  • snmp-server community password ro --> Sets the community password for read-only operations
  • snmp-server community password rw --> Sets the community password for read-write operations
  • snmp-server host ip-address version 2c community-string --> Specifies the NMS, version and community string
  • snmp-server enable traps trap-types --> Enables specific trap (notification) types

Syslog Global

  • logging console level --> Sets the Syslog logging level for console lines
  • logging monitor level --> Sets the Syslog logging level for VTY lines
  • logging buffered [size] level --> Sets the Syslog logging level for the buffer (RAM) (size is in Bytes)
  • logging trap trap-types --> Configures the Syslog level for an external Syslog server
  • logging ip-address --> Configures a Syslog server that will receive Syslog messages
  • logging host ip-address --> Configures a Syslog server that will receive Syslog messages
  • logging synchronous --> Causes a new line to be printed if your typing is interrupted by a message (Executed in line-configuration mode)

SSH / Line Configuration

1. General

  • ip ssh version version { 1 | 2 }--> Sets the SSH version
  • ip default-gateway ip-address --> Configures the switch’s default gateway
  • exec-timeout minutes seconds --> Sets a timeout timer that will log out the user from the current session after a specified period of inactivity
  • crypto key generate rsa --> Generates a RSA keys to be used for SSH authentication (requires a Domain Name)
  • show version --> Shows information about the current device’s version and OS

2. Console Line Configuration

  • line console 0 --> Enters console line configuration mode
  • password password --> Sets a password on the console line
  • login --> Enables login when connecting through the console line/port, which prompts the user to enter a password only, in order to access the Cisco IOS CLI
  • login local --> Enables local login when connecting through the console line/port, which prompts the user to enter a username and password in order to access the Cisco IOS CLI (used with Pass command)

3. VTY Line Configuration

  • line vty line-number OR low-line-number high-line-number --> Enters VTY line configuration mode. You can specify either one line to be configured (Ex. 0) or a range of lines (Ex. 0 15)
  • login --> Enables login when connecting through the VTY line(s), which prompts the user to enter a password only, in order to access the Cisco IOS CLI
  • login local --> Enables local login when connecting through the VTY line(s), which prompts the user to enter a username and password in order to access the Cisco IOS CLI (used with Pass command)
  • transport input connection-types { all | none | protocol(s) }--> Allows the specified connection type(s) to connect through the VTY line(s) (SSH, Telnet, etc.)
  • access-class acl-id in --> Applies an ACL inbound on the VTY line(s)

FTP & TFTP

  • boot system file-path --> Sets the Cisco device’s boot system IOS file
  • copy source destination --> Copies files from a source location to a destination location
  • delete file-path --> Deletes the specified file.

2. FTP

  • ip ftp username username --> Sets the username for FTP authentication
  • ip ftp password password --> Sets the password for FTP authentication

NAT Global

1. Static NAT

  • ip nat inside source static inside-local-ip inside-global-ip --> Configures a one-to-one (Static NAT) IP address mapping

2. Dynamic NAT

  • access-list ACL-ID{ deny | permit } arguments --> Creates an ACL with the specified arguments. Used to decide which addresses should be translated with NAT
  • ip nat pool pool-name start-ip end-ip { prefix-length prefix-length | netmask subnet-mask } --> Creates a NAT pool to be used for dynamic NAT translations
  • ip nat inside source list acl-id pool pool-name --> Configures dynamic NAT on the router using the specified NAT pool and ACL
  • ip nat inside source list acl-id pool pool-name overload --> Configures dynamic PAT on the router using the specified NAT pool and ACL
  • ip nat inside source list acl-id interface interface-id overload --> Configures dynamic PAT on an interface using the specified NAT pool and ACL

ErrDisable (Port Security / DHCP Snooping / ARP Inspection)

  • errdisable recovery cause cause { psecure-violation | dhcp-rate-limit | arp-inspection } --> Enables err-disable recovery for the specified cause
  • errdisable recovery interval seconds --> Determines how long the switch should wait before enabling an err-disabled interface (if the err-disable recovery for that cause is enabled)

DHCP Snooping Global

  • ip dhcp snooping --> Enables the DHCP snooping functionality on the switch (needs to be enabled per VLAN as well)
  • ip dhcp snooping vlan vlan-id --> Enables DHCP snooping on the specified VLAN
  • no ip dhcp snooping information option --> Disables applying Option 82 for DHCP messages

Dynamic ARP Inspection Global

  • ip arp inspection vlan vlan-id --> Enables Dynamic ARP Inspection on the specified VLAN
  • ip arp inspection validate validation-method(s) ( src-mac | dst-mac | ip ) --> Configures the current ARP Inspection validation method(s)
    • (You can use multiple by specifying them in the same command)
  • arp access-list arp-acl-id --> Creates an ARP ACL and enters ARP ACL configuration mode
    • In configuration mode:
    • { permit | deny } ip host ip-address mac host mac-address
  • ip arp inspection filter arp-acl-id vlan vlan-id --> Applies an ARP ACL on the specified VLAN

VRF Global

  • ip vrf vrf-name --> Creates a new VRF

Interface Commands

General

  • ip address ip-address netmask
  • mac-address custom-mac-address
  • interface range interface-id - interface-id or interface-id, interface-id, interface-id
  • default interface interface-id --> Resets the interface to default settings
  • interface loopback loopback-interface-id or interface l loopback-interface-id --> Creates a loopback interface
  • description description --> Adds a description to the interface
  • speed mode / value { auto | speed-value } --> Changes the interface’s speed
  • duplex mode { full / half } --> Changes the interface’s duplex mode
  • bandwidth value (in Kbps) --> Changes the interface’s bandwidth (doesn’t affect interface speed)
  • ip mtu bytes --> Changes the MTU value on the interface

Switchport

1. General

  • switchport mode type { access / trunk / dynamic auto / dynamic desirable } --> Configures the switchport type for VLANs
  • switchport nonegotiate --> Disables Dynamic Trunking Protocol (DTP) requests between switches (setting the switch to access mode does the same thing)

2. Access Ports

  • switchport access vlan vlan-id --> Changes the access port’s VLAN to the specified VLAN ID
  • switchport voice vlan vlan-id --> Assigns VOIP (Voice over IP) traffic to be tagged with a specific VLAN ID (Done while the switchport is in access mode)

3. Trunk Ports

  • switchport trunk encapsulation mode {auto / negotiate / dot1q / isl}
  • switchport trunk allowed vlan argument {vlan-id/ add vlan-id / remove vlan-id / all / none / except vlan-id}
    (Multiple VLANs can be used in add, remove and except by putting a comma in between the vlan-IDs)
  • switchport trunk native vlan vlan-id

Serial

  • interface serial port/number --> Enters serial interface configuration mode
    • clock rate bits-per-second --> Changes the serial interface’s operating speed, used on the DCE (Data Communications Equipment) side
    • encapsulation protocol {ppp / hdlc} --> Changes the encapsulation mode. Must match on both sides of the serial connection

Sub-interface / ROAS

  • interface interface/id.sub-interface-id --> Initialize a sub-interface
    • Ex: interface G0/0.10
  • encapsulation dot1q vlan-id --> Set the sub-interface’s VLAN
  • encapsulation dot1q vlan-id native --> Sets the native VLAN for the sub-interface
  • ip address ip-address netmask --> Sets the IP address on the virtual sub-interface

Multilayer Switch and SVI

  • ip routing --> Enables Layer 3 routing on a Multilayer switch
  • no switchport --> Configures the interface as a Layer 3/routed port (Not a Layer 2/switchport)
  • interface vlan id --> Creates an switch virtual interface (SVI)

VTP

  • vtp mode type {server / client / transparent}
  • vtp domain domain-name
  • vtp version version-number (1 / 2 / 3)

Spanning Tree

1. General

  • spanning-tree mode mode {mst / pvst / rapid-pvst} (Versions)

2. Spanning Tree Portfast / BPDU Guard

  • spanning-tree portfast --> Enables portfast on the current interface.
  • spanning-tree portfast default --> Enables Portfast on all access ports by default.
  • spanning-tree bpduguard enable --> Enables BPDU Guard on the current interface.
  • spanning-tree portfast bpduguard default --> Enables BPDU Guard on all Portfast-enabled interfaces by default.
  • spanning-tree vlan vlan-id root primary --> Sets the STP bridge priority to 24576 (Or 4096 lower than the current lowest STP priority.)
  • spanning-tree vlan vlan-id root secondary --> Sets the STP bridge priority to 28672
  • spanning-tree vlan vlan-id cost number --> Changes the interface’s STP root cost
  • spanning-tree vlan vlan-id port-priority number --> Changes the interface’s port priority
  • spanning-tree link-type type { point-to-point / shared }

EtherChannel

  • interface port-channel etherchannel-group-number --> Enters EtherChannel group configuration mode (or creates an EtherChannel port if it doesn’t exist)
    • interface ponumber --> Shorter version of interface port-channel
  • channel-group etherchannel-group-number mode mode { desirable / auto / active / passive / on }
    • (active/passive are LACP modes, while desirable/auto are PAgP modes, on is static etherchannel)
  • channel-protocol protocol (lacp / pagp)
  • port-channel load-balance method { src-mac / dst-mac / src-dst-mac / src-ip / dst-ip / src-dst-ip } --> Changes the EtherChannel load balancing method

Routing Protocols’ Interfaces

1. OSPF

  • ip ospf cost cost --> Changes the interface’s cost value
  • ip ospf process-ID area area --> Enables OSPF directly on an interface
  • ip ospf priority priority --> Changes the interface’s OSPF priority, used for DR/BDR elections
  • ip ospf network network-type { broadcast / point-to-point / non-broadcast } --> Changes the OSPF network type used on the interface
  • ip ospf hello-interval seconds --> Changes the Hello message timer
  • ip ospf dead-interval seconds --> Changes the Dead message timer
  • ip ospf authentication --> Enables OSPF authentication on the current interface
  • ip ospf authentication-key password --> Sets the authentication key/password on the interface

FHRP Protocols

1. HSRP

  • standby version version {1 / 2} --> Changes HSRP version
  • standby group-number ip virtual-ip-address --> Sets the interface’s HSRP IP address in the specified group
  • standby group-number priority priority --> Sets the interface’s HSRP priority to a certain value in the specified group. Default is 100 and maximum is 255
  • standby group-number preempt --> Enables preemption on the HSRP interface

IPv6

  • [[Quartz Fix - Cisco IOS Commands#^global-ipv6-routing|ipv6 unicast-routing --> Enables IPv6 routing on the router]]
  • ipv6 address ipv6-address/prefix --> Assigns the interface an IPv6 address
  • ipv6 address ipv6-address/prefix eui-64 --> Assigns the interface an IPv6 address with the host portion being an EUI-64 generated address.
  • ipv6 address ipv6-address/prefix anycast --> Assigns the interface with an IPv6 address with anycast enabled
  • ipv6 enable --> Enables IPv6 on a single interface with an automatically generated EUI-64 Link-Local address
  • ipv6 address autoconfig --> Uses SLAAC (Stateless Address Auto-configuration) to generate an IPv6 address. Uses NDP to find the network prefix and EUI-64 to generate the interface identifier (could be chosen randomly as well).

ACL Interface

  • ip access-group number/name { in | out } --> Applies the specified access-list onto the interface, either inbound or outbound

Layer 2 Discovery Protocols Interface

1. CDP

  • cdp enable --> Enables CDP on the current interface

2. LLDP

  • lldp transmit --> Enables LLDP transmission on the current interface
  • lldp receive --> Enables LLDP receiving on the current interface

DHCP Interface

  • ip helper-address ip-address --> Configures the current interface as a DHCP relay agent (meant to be used on the interface that’s connected to the DHCP clients)
  • ip address dhcp --> Tells the router to get an IP address from the DHCP server for this specific interface

NAT Interface

  • ip nat inside --> Defines the ‘inside’ interface(s) connected to the internal network
  • ip nat outside --> Defines the ‘outside’ interface(s) connected to the external network

IP Phones / Voice VLAN

  • switchport voice vlan vlan-id --> Assigns VOIP (Voice over IP) traffic to be tagged with a specific VLAN ID (Done while the switchport is in access mode)

Power Policing / POE

  • power inline police --> Configures power policing on the interface with default settings, being: Disable the port and a send a Syslog message if a PD draws too much power
  • power inline police action err-disable --> Same function as power inline police
  • power inline police action log --> Configures power policing on the interface with these settings: Restart the interface and send a Syslog message when the PD draws too much power

Port Security

  • switchport port-security --> Enables port security on the current interface
  • switchport port-security maximum maximum-mac-addresses --> Configures the maximum amount of Secure MAC addresses allowed on the current port-security enabled interface
  • switchport port-security mac-address mac-address --> Manually configures an authorized port security MAC address
  • switchport port-security mac-address sticky --> Enables Sticky MAC address learning
  • switchport port-security mac-address sticky mac-address --> Manually adds a Sticky MAC address
  • switchport port-security violation violation-mode { shutdown | restrict | protect } --> Configures the violation mode for the port security enabled interface
  • switchport port-security aging static --> Enables aging for Secure Static MAC addresses
  • switchport port-security aging time minutes --> Configures the timer for Secure MAC addresses aging
  • switchport port-security aging type type { absolute | inactivity } --> Configures the type for Secure MAC addresses aging

DHCP Snooping Interface

  • ip dhcp snooping trust --> Configures the current interface as trusted for DHCP snooping
  • ip dhcp snooping limit rate packets-per-second --> Limits how many DHCP packets are allowed per second

Dynamic ARP Inspection Interface

  • ip arp inspection trust --> Configures the current interface as trusted for ARP inspections
  • ip arp inspection limit rate packets burst interval seconds --> Limits how many ARP packets are allowed per burst interval (Burst interval default is 1)

VRF Interface

  • ip vrf forwarding vrf-name --> Applies the specified VRF onto the interface

Router Commands

General

  • router routing-protocol
  • network arguments --> Enables the routing protocol on interfaces within that IP range
  • passive-interface interface-id --> Turns the interface into a passive interface that doesn’t send out protocol advertisements. The router will still continue to advertise the network prefix of the interface
  • passive-interface default --> Enables the Passive Interface mode on all interfaces by default
  • default-information originate --> Advertises the default route to all other neighbors
  • no router-id --> Resets the current Router ID on the router.
  • distance distance-value --> Changes the administrative distance (AD) of the routing protocol
  • maximum-paths path-value --> Changes the maximum amount of paths that Equal Cost Multi-Path (ECMP) can be done over

RIP

  • router rip --> Goes into RIP configuration mode
  • version 2 --> Switches RIP version to 2
  • no auto-summary --> Disables auto-summarization to stop routers from converting advertised classless addresses into classful addresses
  • network ip-address --> Enables RIP on all interfaces that are within the IP range

EIGRP

  • router eigrp autonomous-system-number --> Goes into EIGRP configuration mode in the specified autonomous system group
  • eigrp router-id a.b.c.d --> Changes the EIGRP router ID
  • no auto-summary --> Disables auto-summarization to stop routers from converting advertised classless addresses into classful addresses
  • network ip-address [wildcard-mask] --> Enables EIGRP on interfaces within the specified range. A wildcard mask can be used optionally

OSPF

  • router ospf process-id --> Goes into OSPF router configuration for the specified process
  • router-id a.b.c.d --> Changes the OSPF router ID
  • network ip-address wildcard-mask area area-number --> Enables OSPF on interfaces within the specified range and puts them in the specified area number.
  • auto-cost reference-bandwidth megabits-per-second --> Changes the default reference bandwidth that is used for calculating the metric/cost
  • shutdown --> Shuts down the current OSPF process when in OSPF process configuration mode

Mi ez a fájl?

  • Ez a fájl azért készült, hogy egy bizonyos funkció megfelelően működjön a weboldalon.
  • Javaslom inkább a Cisco IOS Commands fájl használatát.

User EXEC Parancsok

  • enable
  • exit
  • end

Privileged EXEC Parancsok

Általános

  • configure terminal
  • ping ip address
  • hostname hostname
  • copy running-config startup-config / write / write memory --> Elmenti a running configuration-t a startup configuration-ba
  • erase startup-config / write erase / erase nvram: --> Törli a startup configuration-t

Törlés (Clear)

1. MAC Address Tábla

  • clear mac address-table
  • clear mac address-table dynamic --> Törli az összes dinamikusan tanult MAC címet
  • clear mac address-table dynamic address address --> Töröl egy adott dinamikusan tanult MAC címet
  • clear mac address-table dynamic interface interface --> Törli az összes dinamikusan tanult MAC címet egy adott interfészen

2. OSPF

  • clear ip ospf process --> Újraindítja a jelenlegi OSPF folyamatot

3. NAT

  • clear ip nat translation * --> Törli az összes dinamikus NAT fordítást a NAT fordítási táblából

NTP Privileged

  • clock set hh:mm:ss day month year --> Beállítja az eszköz szoftveres óráját (a nap és hónap felcserélhető)
  • calendar set hh:mm:ss day month year --> Beállítja az eszköz hardveres óráját (a nap és hónap felcserélhető)
  • clock update-calendar --> Szinkronizálja a naptárat (hardveres óra) az óra (szoftveres óra) idejéhez
  • clock read-calendar --> Szinkronizálja az órát (szoftveres idő) a naptár (hardveres óra) idejéhez

Syslog Privileged

  • terminal monitor --> Megjeleníti a Syslog üzeneteket, ha VTY-n (Telnet, SSH) keresztül csatlakozunk. Minden új kapcsolat létesítésekor ki kell adni

VRF Privileged

  • ping vrf vrf-name ip-address --> Pingel egy IP-címet a megadott VRF-ben

Show (Globális konfigurációs módban a ‘do’ paranccsal használható)

1. Általános Show

  • show item
  • show item | argument String --> Szűri a parancs kimenetét a kiválasztott argumentummal (Argumentumok: include / section)
  • show running-config
  • show startup-config
  • show mac address-table / show mac-address-table (régebbi eszközökön)
  • show logging --> Megjeleníti az eszköz naplófájljait (logs)
  • show version --> Információt jelenít meg a jelenlegi eszköz verziójáról és operációs rendszeréről (OS)
  • show file systems --> Megjeleníti a Cisco IOS eszköz fájlrendszereit
  • show flash --> Megjeleníti a rendszer flash memóriájának tartalmát

2. Interfészek

  • show interfaces [interface-id | argument] --> Megjeleníti a teljes interfész-információt
  • show interfaces interface-id switchport --> Megjeleníti az interfész switchport információit
  • show interfaces status --> Megjeleníti a teljes interfész-információkat switcheken
  • show interfaces trunk --> Megjeleníti a switchport trunk információkat minden interfészre
  • show interfaces interface-id trunk --> Megjeleníti a switchport trunk információkat egy adott interfészre
  • show controllers serial port/number --> Információt jelenít meg a soros (serial) interfészről, főként a DCE és DTE meghatározására szolgál

3. IP Parancsok

  • show ip interface brief --> Rövid, összefoglaló információt jelenít meg az interfészekről

4. VLAN-ok

  • show vlan
  • show vlan brief --> Megjeleníti a VLAN-ok rövid listáját és a hozzájuk rendelt access portokat

5. VTP

  • show vtp status

6. Spanning Tree

  • show spanning-tree --> Megjeleníti az általános STP állapotot és információkat
  • show spanning-tree vlan vlan-id --> Megjeleníti az STP információkat egy adott VLAN-ra
  • show spanning-tree detail --> Részletes STP információkat jelenít meg
  • show spanning-tree summary --> Összefoglalást mutat a jelenlegi STP konfigurációról

7. EtherChannel

  • show etherchannel
  • show etherchannel summary --> Összefoglalást mutat a jelenlegi EtherChannel-ekről
  • show etherchannel port-channel --> Hasonló a summary parancshoz, de megjeleníti a használt EtherChannel protokollt is (LACP/PAgP)
  • show etherchannel load-balance --> Megjeleníti a jelenlegi EtherChannel load balancing módszert

8. Útvonalak (Routes)

8.1 Általános

  • show ip route [argument] --> Megjeleníti a router/switch routing tábláját, opcionálisan szűrve egy adott útvonaltípusra
  • show ip protocols --> Megjeleníti a routing protokoll információkat

8.2 EIGRP Útvonalak

  • show ip eigrp neighbors --> Információt jelenít meg az EIGRP szomszédokról (neighbors)
  • show ip eigrp topology --> Megjeleníti az összes EIGRP-n keresztül tanult útvonalat és azok adatait. Tartalmazza azokat az útvonalakat is, amelyek jelenleg nem láthatók a show ip route kimenetében, valamint mutatja az EIGRP Feasible Distance és Reported Distance értékeket

8.3 OSPF Útvonalak

  • show ip ospf database --> Megjeleníti az összes Link State Advertisement (LSA) bejegyzést a Link State Database-ben (LSDB)
  • show ip ospf neighbor --> Megjeleníti a router OSPF szomszédait (neighbors)
  • show ip ospf interface [interface-id] --> Részletes információt jelenít meg az összes OSPF-et futtató interfészről, vagy egy adott interfészről, ha meg van adva
  • show ip ospf interface brief --> Tömör áttekintés az összes OSPF interfészről

9. FHRP Protokollok

9.1 HSRP

  • show standby --> Információt jelenít meg a routeren futó HSRP konfigurációról

10. IPv6

  • show ipv6 route --> Megjeleníti az IPv6 routing táblát
  • show ipv6 interface brief --> Tömör információt jelenít meg az összes IPv6 interfészről
  • show ipv6 interface interface-id --> Megjeleníti a teljes IPv6 interfész-információt
  • show ipv6 neighbor --> Megjeleníti az ARP tábla IPv6-os megfelelőjét

11. ACL

  • show access-lists --> Megjeleníti az ÖSSZES konfigurált access-list-et a routeren
  • show ip access-lists --> Megjeleníti az IP-alapú access-list-eket a routeren

12. Layer 2 Discovery Protokollok

12.1 CDP

  • show cdp --> Globális CDP információkat mutat, mint az időzítő, holdtime és hirdetési verzió
  • show cdp traffic --> Megjeleníti a CDP forgalmi statisztikákat
  • show cdp interface --> Teljes CDP információt jelenít meg a CDP-t futtató interfészekről, a végén egy alapvető összefoglalóval
  • show cdp interface interface-id --> Teljes CDP információt jelenít meg a megadott, CDP-t futtató interfészről
  • show cdp neighbors --> Tömör információt jelenít meg az összes közvetlenül csatlakozó CDP szomszédról
  • show cdp neighbors detail --> Részletes információt jelenít meg az összes közvetlenül csatlakozó CDP szomszédról
  • show cdp entry host-name --> Hasonló a show cdp neighbors detail parancshoz, de csak a megadott host adatait jeleníti meg

12.2 LLDP

  • show lldp --> Globális LLDP információkat jelenít meg, mint az időzítő, holdtime és reinit időzítő
  • show lldp traffic --> Megjeleníti az LLDP forgalmi statisztikákat
  • show lldp interface --> Teljes LLDP információt jelenít meg az LLDP-t futtató interfészekről, például az adási és vételi állapotot
  • show lldp interface interface-id --> Teljes LLDP információt jelenít meg a megadott, LLDP-t futtató interfészről
  • show lldp neighbors --> Tömör információt jelenít meg az összes csatlakoztatott LLDP szomszédról
  • show lldp neighbors detail --> Részletes információt jelenít meg az összes csatlakoztatott LLDP szomszédról
  • show lldp entry host-name --> Hasonló a show lldp neighbors detail parancshoz, de csak a megadott host adatait mutatja

13. NTP

  • show clock --> Alapvető óra-információkat jelenít meg
  • show clock detail --> Megjeleníti az időforrást (alapértelmezetten hardveres naptár) és az alapvető óra-információkat
  • show ntp status --> Általános NTP információkat mutat, mint a stratum szint és a szinkronizációs szerver IP-címe
  • show ntp associations --> Megjeleníti azokat az NTP szervereket, amelyekhez az eszköz szinkronizál

14. DNS

  • show hosts --> Megjeleníti a konfigurált hostokat, valamint a DNS-en keresztül tanult és gyorsítótárazott hostokat

15. DHCP

  • show ip dhcp binding --> Megjeleníti az összes DHCP klienst, amely jelenleg IP-címet kapott

16. SSH

  • show ip ssh --> Részletes információt jelenít meg a jelenlegi SSH konfigurációról

17. FTP & TFTP

  • show version --> Információt jelenít meg a jelenlegi eszköz verziójáról és operációs rendszeréről (OS)
  • show file systems --> Megjeleníti a Cisco IOS eszköz fájlrendszereit
  • show flash --> Megjeleníti a rendszer flash memóriájának tartalmát

18. NAT

  • show ip nat translations --> Megjeleníti a NAT-on keresztül lefordított IP-címek adatait
  • show ip nat statistics --> Statisztikát mutat a jelenlegi NAT folyamatról

19. Power Policing

  • show power inline police interface-id --> Megjeleníti a megadott interfész power policing információit

20. Port Security

  • show port-security --> Általános port security információkat jelenít meg a jelenlegi konfigurációról
  • show port-security interface interface-id --> Megjeleníti a port security konfigurációt a megadott interfészen
  • show mac address-table secure --> Megjeleníti az összes konfigurált Secure MAC címet
  • show errdisable recovery --> Megjeleníti a jelenlegi err-disable helyreállítási (recovery) beállításokat

21. DHCP Snooping

  • show ip dhcp snooping binding --> Megjeleníti a DHCP snooping binding táblát

22. Dynamic ARP Inspection

  • show ip arp inspection --> Összefoglalót és statisztikákat jelenít meg a Dynamic ARP Inspection konfigurációról
  • show ip arp inspection interfaces --> Megjeleníti a Dynamic ARP Inspection állapotát a switch interfészein

23. VRF

  • show ip vrf --> Megjeleníti az összes konfigurált VRF-et a routeren
  • show ip route vrf vrf-name --> Megjeleníti az IP routing táblát egy adott VRF-hez (a VRF routing táblák nem jelennek meg a normál show ip route parancsban)

Global Config Parancsok

Általános

  • enable password password
  • enable secret password
  • no command-here --> Parancsok eltávolítása a konfigurációból
  • do command-here --> Privileged EXEC parancsok futtatása globális módban
  • ip route ip-address netmask [exit-interface &/ next-hop] [distance-metric]
  • ip routing --> Engedélyezi a Layer 3 routingot egy Multilayer switchen
  • ip default-gateway ip-address --> Beállítja a switch default gateway-ét
  • ipv6 unicast-routing --> Engedélyezi az IPv6 routingot a routeren
  • username username secret password --> Felhasználót és jelszót konfigurál az eszközön. Általában a login local paranccsal használják
  • login --> Engedélyezi a bejelentkezést, amely csak jelszó megadását kéri a Cisco IOS CLI eléréséhez
  • login local --> Engedélyezi a helyi bejelentkezést, amely felhasználónév és jelszó megadását kéri a Cisco IOS CLI eléréséhez
  • line line-type line-number --> Belép a megadott vonaltípus (console, VTY stb.) és a megadott vonalszám konfigurációs módjába
  • boot system file-path --> Beállítja a Cisco eszköz rendszerindító (boot system) IOS fájlját
  • copy source destination --> Fájlokat másol a forrás helyről a cél helyre
  • delete file-path --> Törli a megadott fájlt

Szolgáltatások (Service)

1. Általános

  • service password-encryption --> Bekapcsolja a Type 7 jelszótitkosítást minden meglévő és jövőbeli jelszóra; a szolgáltatás eltávolítása NEM fejti vissza a jelszavakat (nem ajánlott)
  • service sequence-numbers --> Engedélyezi a sorszámok (sequence numbers) megjelenítését a Syslog üzenetekben
  • service timestamps log time-type { datetime | uptime } --> Engedélyezi az időbélyegek (timestamps) megjelenítését a Syslog üzenetekben

VLAN-ok

  • show vlan brief
  • vlan vlan-id --> Új VLAN-t hoz létre, vagy belép a VLAN konfigurációs módba
    • name name --> Módosítja a jelenlegi VLAN nevét

ACL Global

1. Általános

  • access-list number remark description --> Megjegyzést/leírást rendel a megadott access list-hez
  • ip access-list resequence acl-name/acl-number starting-seq-number increment --> Módosítja az access list sorszámozását a megadott paraméterek alapján

2. Standard

  • access-list number { deny | permit } ip wildcard-mask --> Konfigurál egy számozott standard ACL-t
  • ip access-list standard acl-name/acl-number --> Belép a nevesített standard ACL konfigurációs módba
    • [entry-number] { deny | permit } ip wildcard-mask

3. Extended

  • access-list number { deny | permit } protocol src-ip dst-ip --> Konfigurál egy számozott extended ACL-t
  • ip access-list extended acl-name/acl-number --> Belép a nevesített extended ACL konfigurációs módba
    • [entry-number] { deny | permit } protocol src-ip dst-ip
    • [entry-number] { deny | permit } protocol src-ip argument source-port-num dst-ip argument dst-port-num (Argumentumok: eq / gt / lt / neq / range)

Layer 2 Discovery Protokollok Global

1. CDP

  • cdp run --> Globálisan engedélyezi a CDP-t
  • cdp timer seconds --> Beállítja a CDP üzenetidőzítőt (timer)
  • cdp holdtime seconds --> Beállítja a CDP üzenet várakozási idejét (holdtime)
  • cdp advertise-v2 --> Módosítja a CDP verzióját V2-re

2. LLDP

  • lldp run --> Globálisan engedélyezi az LLDP-t
  • lldp timer seconds --> Beállítja az LLDP üzenetidőzítőt (timer)
  • lldp holdtime seconds --> Beállítja az LLDP üzenet várakozási idejét (holdtime)
  • lldp reinit seconds --> Beállítja az LLDP reinit időzítőt

NTP Global

  • clock timezone timezone-name hours-offset [minutes-offset] --> Beállítja az óra időzónáját a megadott névre óra-eltolással és opcionális perc-eltolással
  • clock summer-time name recurring start end [offset] --> Beállítja a nyári időszámítás (daylight saving time) konfigurációját az órához
    • (a start és end megköveteli a hetet (first, last vagy szám), a hét napját, hónapot és időt)
  • ntp update-calendar --> Frissíti a naptárat (hardveres óra) NTP segítségével
  • ntp server ip-address [prefer] --> Beállít egy NTP szervert, amelyhez a kliens szinkronizálni fog
  • ntp server ip-address key key-number --> Beállít egy NTP szervert a kliens számára a hitelesítési kulcsszámmal együtt
  • ntp peer ip-address --> Beállítja a szimmetrikus aktív társközi (peering) módot egy másik NTP szerverrel
  • ntp peer ip-address key key-number --> Beállítja a szimmetrikus aktív peering módot egy másik NTP szerverrel a hitelesítési kulcsszámmal együtt
  • ntp master [stratum-level] --> Konfigurálja az eszközt NTP szerverként opcionális stratum szinttel (alapértelmezetten stratum 8)
  • ntp source interface-id --> Módosítja az NTP üzenetek forrását a megadott interfészre
  • ntp authenticate --> Engedélyezi az NTP hitelesítést
  • ntp authentication-key key-number md5 key/password --> Konfigurál egy NTP hitelesítési kulcsot
  • ntp trusted-key key-number --> Megbízhatónak jelöli az NTP kulcsszámot a jelenlegi eszközön

DNS

  • ip dns server --> Beállítja a routert, hogy DNS szerverként működjön
  • ip domain lookup / ip domain-lookup --> Engedélyezi a routernek a DNS lekérdezéseket (alapértelmezetten engedélyezve)
  • ip host host-name ip-address --> Beállít egy host-név - IP-cím összerendelést DNS lekérdezésekhez
  • ip name-server ip-address --> Beállít egy külső DNS szervert lekérdezésre, ha a kért rekord nem található a router host táblájában
  • ip domain name domain-name / ip domain-name domain-name --> Beállítja az alapértelmezett domain nevet

DHCP Global

  • ip dhcp excluded-address low-address high-address --> Meghatározza azon címek tartományát, amelyeket nem osztunk ki DHCP klienseknek
  • ip dhcp pool pool-name --> Létrehoz egy DHCP pool-t és belép a DHCP pool konfigurációs módba, vagy belép a meglévő pool beállításaiba
    • network ip-address { /prefix-length | subnet-mask } --> Meghatározza a klienseknek kiosztandó alhálózatot (kivéve a kizárt címeket)
    • lease time { days hours minutes | infinite } --> Meghatározza a DHCP IP-cím bérleti idejét (lease time)
    • default-router ip-address --> Meghatározza a DHCP kliensek által használandó default gateway-t
    • dns-server ip-address --> Meghatározza a DHCP kliensek által használandó DNS szervert
    • domain-name domain-name --> Meghatározza a hálózat domain nevét
    • option 43 ip ip-address --> Engedélyezi az Option 43-at a DHCP kliensek számára, amellyel megadható az AP-knek a WLC IP-címe

SNMP

  • snmp-server contact contact-info --> Beállítja az SNMP szerver kapcsolattartási adatait
  • snmp-server location location-info --> Beállítja az SNMP szerver helyadatait
  • snmp-server community password ro --> Beállítja a community jelszót csak olvasható (read-only) műveletekhez
  • snmp-server community password rw --> Beállítja a community jelszót írható-olvasható (read-write) műveletekhez
  • snmp-server host ip-address version 2c community-string --> Megadja az NMS-t, a verziót és a community stringet
  • snmp-server enable traps trap-types --> Engedélyezi az egyes trap (értesítési) típusokat

Syslog Global

  • logging console level --> Beállítja a Syslog naplózási szintet a console vonalakra
  • logging monitor level --> Beállítja a Syslog naplózási szintet a VTY vonalakra
  • logging buffered [size] level --> Beállítja a Syslog naplózási szintet a pufferhez (RAM) (a méret bájtban értendő)
  • logging trap trap-types --> Beállítja a Syslog szintet egy külső Syslog szerverhez
  • logging ip-address --> Beállít egy Syslog szervert a naplóüzenetek fogadására
  • logging host ip-address --> Beállít egy Syslog szervert a naplóüzenetek fogadására
  • logging synchronous --> Új sort nyomtat, ha a gépelést megszakítja egy üzenet (line-configuration módban futtatandó)

SSH / Line Konfiguráció

1. Általános

  • ip ssh version version { 1 | 2 }--> Beállítja az SSH verzióját
  • ip default-gateway ip-address --> Beállítja a switch default gateway-ét
  • exec-timeout minutes seconds --> Beállít egy időkorlátot (timeout), amely inaktivitás esetén kilépteti a felhasználót az aktuális munkamenetből
  • crypto key generate rsa --> RSA kulcsokat generál az SSH hitelesítéshez (Domain Name megadása szükséges)
  • show version --> Információt jelenít meg a jelenlegi eszköz verziójáról és operációs rendszeréről (OS)

2. Console Vonalkonfiguráció

  • line console 0 --> Belép a console vonal konfigurációs módjába
  • password password --> Jelszót állít be a console vonalon
  • login --> Engedélyezi a bejelentkezést a console porton keresztül, amely csak jelszó megadását kéri a Cisco IOS CLI eléréséhez
  • login local --> Engedélyezi a helyi bejelentkezést a console porton keresztül, amely felhasználónév és jelszó megadását kéri a Cisco IOS CLI eléréséhez

3. VTY Vonalkonfiguráció

  • line vty line-number OR low-line-number high-line-number --> Belép a VTY vonal konfigurációs módba. Megadható egyetlen vonal (pl. 0) vagy vonaltartomány (pl. 0 15)
  • login --> Engedélyezi a bejelentkezést a VTY vonal(ak)on keresztül, amely csak jelszót kér a Cisco IOS CLI eléréséhez
  • login local --> Engedélyezi a helyi bejelentkezést a VTY vonal(ak)on keresztül, amely felhasználónevet és jelszót kér a Cisco IOS CLI eléréséhez
  • transport input connection-types { all | none | protocol(s) }--> Engedélyezi a megadott kapcsolattípus(ok) csatlakozását a VTY vonal(ak)on keresztül (SSH, Telnet stb.)
  • access-class acl-id in --> Bemenő (inbound) irányban alkalmaz egy ACL-t a VTY vonal(ak)ra

FTP & TFTP

  • boot system file-path --> Beállítja a Cisco eszköz rendszerindító (boot system) IOS fájlját
  • copy source destination --> Fájlokat másol a forrás helyről a cél helyre
  • delete file-path --> Törli a megadott fájlt

2. FTP

  • ip ftp username username --> Beállítja a felhasználónevet az FTP hitelesítéshez
  • ip ftp password password --> Beállítja a jelszót az FTP hitelesítéshez

NAT Global

1. Statikus NAT

  • ip nat inside source static inside-local-ip inside-global-ip --> Egy-az-egyhez (Static NAT) IP-cím leképezést konfigurál

2. Dinamikus NAT

  • access-list acl-id { permit / deny } arguments --> Létrehoz egy ACL-t a megadott paraméterekkel. Annak eldöntésére szolgál, mely címeket kell lefordítani NAT-tal
  • ip nat pool pool-name start-ip end-ip { prefix-length prefix-length | netmask subnet-mask } --> Létrehoz egy NAT pool-t a dinamikus NAT fordításokhoz
  • ip nat inside source list acl-id pool pool-name --> Konfigurálja a dinamikus NAT-ot a routeren a megadott NAT pool és ACL használatával
  • ip nat inside source list acl-id pool pool-name overload --> Konfigurálja a dinamikus PAT-ot a routeren a megadott NAT pool és ACL használatával
  • ip nat inside source list acl-id interface interface-id overload --> Konfigurálja a dinamikus PAT-ot egy interfészen a megadott NAT pool és ACL használatával

ErrDisable (Port Security / DHCP Snooping / ARP Inspection)

  • errdisable recovery cause cause { psecure-violation | dhcp-rate-limit | arp-inspection } --> Engedélyezi az err-disable automatikus helyreállítását a megadott okra
  • errdisable recovery interval seconds --> Meghatározza, mennyi ideig várjon a switch egy err-disabled interfész újraengedélyezése előtt (ha az err-disable recovery az adott okra engedélyezve van)

DHCP Snooping Global

  • ip dhcp snooping --> Engedélyezi a DHCP snooping funkciót a switchen (VLAN-onként is engedélyezni kell)
  • ip dhcp snooping vlan vlan-id --> Engedélyezi a DHCP snoopingot a megadott VLAN-on
  • no ip dhcp snooping information option --> Letiltja az Option 82 hozzáadását a DHCP üzenetekhez

Dynamic ARP Inspection Global

  • ip arp inspection vlan vlan-id --> Engedélyezi a Dynamic ARP Inspection-t a megadott VLAN-on
  • ip arp inspection validate validation-method(s) ( src-mac | dst-mac | ip ) --> Konfigurálja a jelenlegi ARP Inspection ellenőrzési módszere(ke)t
    • (Több módszer is megadható ugyanabban a parancsban)
  • arp access-list arp-acl-id --> Létrehoz egy ARP ACL-t és belép az ARP ACL konfigurációs módba
    • Konfigurációs módban:
    • { permit | deny } ip host ip-address mac host mac-address
  • ip arp inspection filter arp-acl-id vlan vlan-id --> Alkalmazza az ARP ACL-t a megadott VLAN-on

VRF Global

  • ip vrf vrf-name --> Létrehoz egy új VRF-et

Interfész Parancsok

Általános

  • show interfaces parancsok
  • ip address ip-address netmask
  • mac-address custom-mac-address
  • interface range interface-id - interface-id vagy interface-id, interface-id, interface-id
  • default interface interface-id --> Visszaállítja az interfészt az alapértelmezett beállításokra
  • interface loopback loopback-interface-id vagy interface l loopback-interface-id --> Létrehoz egy loopback interfészt
  • description description --> Leírást (description) ad az interfészhez
  • speed mode / value { auto | speed-value } --> Módosítja az interfész sebességét
  • duplex mode { full / half } --> Módosítja az interfész duplex módját
  • bandwidth value (Kbps-ban) --> Módosítja az interfész sávszélességét (nem befolyásolja az interfész sebességét)
  • ip mtu bytes --> Módosítja az MTU értéket az interfészen

Switchport

1. Általános

  • switchport mode type { access / trunk / dynamic auto / dynamic desirable } --> Beállítja a switchport típusát a VLAN-okhoz
  • switchport nonegotiate --> Letiltja a Dynamic Trunking Protocol (DTP) kéréseket a switchek között (az access módba állítás ugyanezt eredményezi)

2. Access Portok

  • switchport access vlan vlan-id --> Módosítja az access port VLAN-ját a megadott VLAN ID-ra
  • switchport voice vlan vlan-id --> Beállítja, hogy a VoIP (Voice over IP) forgalom adott VLAN ID-val legyen felcímkézve (access módban lévő switchporton végzendő)

3. Trunk Portok

  • show interfaces trunk
  • switchport trunk encapsulation mode {auto / negotiate / dot1q / isl}
  • switchport trunk allowed vlan argument {vlan-id / add vlan-id / remove vlan-id / all / none / except vlan-id}
    (Több VLAN is megadható az add, remove és except kulcsszavaknál vesszővel elválasztva)
  • switchport trunk native vlan vlan-id

Soros (Serial)

  • show controllers serial INTERFACE-ID parancs
  • interface serial port/number --> Belép a soros interfész konfigurációs módba
    • clock rate bits-per-second --> Módosítja a soros interfész működési sebességét, a DCE oldalon használatos
    • encapsulation protocol {ppp / hdlc} --> Módosítja a beágyazási módot. Egyeznie kell a soros kapcsolat mindkét oldalán

Sub-interface / ROAS

  • interface interface/id.sub-interface-id --> Létrehoz egy sub-interface-t
    • Példa: interface G0/0.10
  • encapsulation dot1q vlan-id --> Beállítja a sub-interface VLAN-ját
  • encapsulation dot1q vlan-id native --> Beállítja a native VLAN-t a sub-interface számára
  • ip address ip-address netmask --> Beállítja az IP-címet a virtuális sub-interface-en

Multilayer Switch és SVI

  • ip routing --> Engedélyezi a Layer 3 routingot egy Multilayer switchen
  • no switchport --> Konfigurálja az interfészt Layer 3 / routed portként (nem Layer 2 / switchportként)
  • interface vlan id --> Létrehoz egy switch virtual interface-t (SVI)

VTP

  • show vtp status
  • vtp mode type {server / client / transparent}
  • vtp domain domain-name
  • vtp version version-number (1 / 2 / 3)

Spanning Tree

1. Általános

  • show spanning-tree parancsok
  • spanning-tree mode mode {mst / pvst / rapid-pvst}

2. Spanning Tree PortFast / BPDU Guard

  • spanning-tree portfast --> Engedélyezi a PortFast-ot a jelenlegi interfészen
  • spanning-tree portfast default --> Alapértelmezetten engedélyezi a PortFast-ot minden access porton
  • spanning-tree bpduguard enable --> Engedélyezi a BPDU Guard-ot a jelenlegi interfészen
  • spanning-tree portfast bpduguard default --> Alapértelmezetten engedélyezi a BPDU Guard-ot minden PortFast-engedélyezett interfészen
  • spanning-tree vlan vlan-id root primary --> Beállítja az STP bridge priority-t 24576-ra (vagy 4096-tal alacsonyabbra a jelenlegi legalacsonyabb STP prioritásnál)
  • spanning-tree vlan vlan-id root secondary --> Beállítja az STP bridge priority-t 28672-re
  • spanning-tree vlan vlan-id cost number --> Módosítja az interfész STP root cost értékét
  • spanning-tree vlan vlan-id port-priority number --> Módosítja az interfész port priority értékét
  • spanning-tree link-type type { point-to-point / shared }

EtherChannel

  • show etherchannel parancsok
  • interface port-channel etherchannel-group-number --> Belép az EtherChannel csoport konfigurációs módba (vagy létrehozza a port-channel-t, ha nem létezik)
    • interface ponumber --> Az interface port-channel rövidebb formája
  • channel-group etherchannel-group-number mode mode { desirable / auto / active / passive / on }
    • (az active/passive LACP módok, a desirable/auto PAgP módok, az on statikus EtherChannel)
  • channel-protocol protocol (lacp / pagp)
  • port-channel load-balance method { src-mac / dst-mac / src-dst-mac / src-ip / dst-ip / src-dst-ip } --> Módosítja az EtherChannel load balancing módszert

Routing protokollok interfészei

1. OSPF

  • show ip ospf parancsok
  • ip ospf cost cost --> Módosítja az interfész költségét (cost)
  • ip ospf process-ID area area --> Közvetlenül az interfészen engedélyezi az OSPF-et
  • ip ospf priority priority --> Módosítja az interfész OSPF priority értékét, amelyet a DR/BDR választásnál használ
  • ip ospf network network-type { broadcast / point-to-point / non-broadcast } --> Módosítja az interfészen használt OSPF hálózattípust
  • ip ospf hello-interval seconds --> Módosítja a Hello üzenet időzítőjét
  • ip ospf dead-interval seconds --> Módosítja a Dead üzenet időzítőjét
  • ip ospf authentication --> Engedélyezi az OSPF hitelesítést a jelenlegi interfészen
  • ip ospf authentication-key password --> Beállítja a hitelesítési kulcsot/jelszót az interfészen

FHRP Protokollok

1. HSRP

  • show standby parancs
  • standby version version {1 / 2} --> Módosítja a HSRP verziót
  • standby group-number ip virtual-ip-address --> Beállítja az interfész virtuális HSRP IP-címét a megadott csoportban
  • standby group-number priority priority --> Beállítja az interfész HSRP prioritását a megadott csoportban. Alapértelmezett: 100, maximum: 255
  • standby group-number preempt --> Engedélyezi a preemption funkciót a HSRP interfészen

IPv6

  • show ipv6 parancsok
  • ipv6 unicast-routing --> Engedélyezi az IPv6 routingot a routeren
  • ipv6 address ipv6-address/prefix --> IPv6 címet rendel az interfészhez
  • ipv6 address ipv6-address/prefix eui-64 --> IPv6 címet rendel az interfészhez, ahol a host rész egy EUI-64 által generált cím
  • ipv6 address ipv6-address/prefix anycast --> IPv6 címet rendel az interfészhez engedélyezett anycast funkcióval
  • ipv6 enable --> Engedélyezi az IPv6-ot egyetlen interfészen automatikusan generált EUI-64 Link-Local címmel
  • ipv6 address autoconfig --> SLAAC-ot (Stateless Address Auto-configuration) használ az IPv6 cím generálásához. NDP-t használ a hálózati prefix felderítéséhez és EUI-64-et az interfész-azonosító generálásához (véletlenszerűen is választható)

ACL Interface

  • ip access-group number/name { in | out } --> Alkalmazza a megadott access-list-et az interfészre, bemenő (inbound) vagy kimenő (outbound) irányban

Layer 2 Discovery Protokollok Interface

1. CDP

  • cdp enable --> Engedélyezi a CDP-t a jelenlegi interfészen

2. LLDP

  • lldp transmit --> Engedélyezi az LLDP adást a jelenlegi interfészen
  • lldp receive --> Engedélyezi az LLDP vételt a jelenlegi interfészen

DHCP Interface

  • ip helper-address ip-address --> Konfigurálja az interfészt DHCP relay agent-ként (a DHCP kliensekhez csatlakozó interfészen használandó)
  • ip address dhcp --> Utasítja a routert, hogy kérjen IP-címet a DHCP szervertől erre az interfészre

NAT Interface

  • ip nat inside --> Meghatározza a belső hálózathoz csatlakozó ‘inside’ interfész(eke)t
  • ip nat outside --> Meghatározza a külső hálózathoz csatlakozó ‘outside’ interfész(eke)t

IP Telefonok / Voice VLAN

  • switchport voice vlan vlan-id --> Beállítja, hogy a VoIP (Voice over IP) forgalom adott VLAN ID-val legyen felcímkézve (access módban lévő switchporton végzendő)

Power Policing / POE

  • power inline police --> Konfigurálja a power policing-ot az interfészen alapértelmezett beállításokkal: letiltja a portot és Syslog üzenetet küld, ha egy PD túl sok áramot vesz fel
  • power inline police action err-disable --> Ugyanaz a funkció, mint a power inline police
  • power inline police action log --> Konfigurálja a power policing-ot: újraindítja az interfészt és Syslog üzenetet küld, ha a PD túl sok áramot vesz fel

Port Security

  • switchport port-security --> Engedélyezi a port security-t a jelenlegi interfészen
  • switchport port-security maximum maximum-mac-addresses --> Beállítja a port-security engedélyezett interfészen maximálisan engedélyezett Secure MAC címek számát
  • switchport port-security mac-address mac-address --> Manuálisan rögzít egy engedélyezett port security MAC címet
  • switchport port-security mac-address sticky --> Engedélyezi a Sticky MAC címek dinamikus tanulását
  • switchport port-security mac-address sticky mac-address --> Manuálisan hozzáad egy Sticky MAC címet
  • switchport port-security violation violation-mode { shutdown | restrict | protect } --> Beállítja a megsértési módot (violation mode) a port security interfészen
  • switchport port-security aging static --> Engedélyezi az elévülést (aging) a statikus Secure MAC címekre
  • switchport port-security aging time minutes --> Beállítja a Secure MAC címek elévülési időzítőjét
  • switchport port-security aging type type { absolute | inactivity } --> Beállítja a Secure MAC címek elévülési típusát

DHCP Snooping Interface

  • ip dhcp snooping trust --> Megbízhatónak (trusted) jelöli az interfészt a DHCP snooping szempontjából
  • ip dhcp snooping limit rate packets-per-second --> Korlátozza a másodpercenként engedélyezett DHCP csomagok számát

Dynamic ARP Inspection Interface

  • ip arp inspection trust --> Megbízhatónak (trusted) jelöli az interfészt az ARP ellenőrzések szempontjából
  • ip arp inspection limit rate packets burst interval seconds --> Korlátozza a burst intervallumonként engedélyezett ARP csomagok számát (alapértelmezett burst interval: 1 mp)

VRF Interface

  • ip vrf forwarding vrf-name --> Alkalmazza a megadott VRF-et az interfészre

Router Parancsok

Általános

  • router routing-protocol
  • network arguments --> Engedélyezi a routing protokollt az adott IP tartományba eső interfészeken
  • passive-interface interface-id --> Passzív interfésszé alakítja az interfészt, amely nem küld ki routing hirdetéseket. A router továbbra is hirdeti az interfész hálózati prefixét
  • passive-interface default --> Alapértelmezetten engedélyezi a passzív interfész módot minden interfészen
  • default-information originate --> Hirdeti az alapértelmezett útvonalat (default route) az összes többi szomszéd felé
  • no router-id --> Visszaállítja a router aktuális Router ID-ját
  • distance distance-value --> Módosítja a routing protokoll adminisztratív távolságát (AD)
  • maximum-paths path-value --> Módosítja az Equal Cost Multi-Path (ECMP) során használható útvonalak maximális számát

RIP

  • router rip --> Belép a RIP konfigurációs módba
  • version 2 --> Átváltja a RIP verziót 2-re
  • no auto-summary --> Letiltja az auto-summarization-t, megakadályozva, hogy a routerek classless címeket classful címekké alakítsanak hirdetéskor
  • network ip-address --> Engedélyezi a RIP-et minden olyan interfészen, amely az IP tartományba esik

EIGRP

  • router eigrp autonomous-system-number --> Belép az EIGRP konfigurációs módba a megadott autonóm rendszer (AS) csoportban
  • eigrp router-id a.b.c.d --> Módosítja az EIGRP Router ID-t
  • no auto-summary --> Letiltja az auto-summarization-t, megakadályozva, hogy a routerek classless címeket classful címekké alakítsanak hirdetéskor
  • network ip-address [wildcard-mask] --> Engedélyezi az EIGRP-t a megadott tartományba eső interfészeken. Opcionálisan wildcard mask is használható

OSPF

  • router ospf process-id --> Belép az OSPF router konfigurációba a megadott folyamathoz
  • router-id a.b.c.d --> Módosítja az OSPF Router ID-t
  • network ip-address wildcard-mask area area-number --> Engedélyezi az OSPF-et a megadott tartományba eső interfészeken, és hozzárendeli őket a megadott area számhoz
  • auto-cost reference-bandwidth megabits-per-second --> Módosítja a metrika/költség számításához használt alapértelmezett reference bandwidth értéket
  • shutdown --> Leállítja az aktuális OSPF folyamatot OSPF konfigurációs módban