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
OSPF ^clear-ospf
clear ip ospf process --> Restarts the current OSPF process
NAT ^priv-clear-nat
clear ip nat translation * --> Clears all dynamic NAT translations in the NAT translation table
NTP ^priv-ntp
clock set hh:mm:ssday month year--> Sets the device’s software clock (day and month can be swapped around)
calendar set hh:mm:ssday 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 ^priv-syslog
terminal monitor --> Displays Syslog messages when connected through VTY (Telnet, SSH). Must be used every time a connection is established
VRF ^priv-vrf
ping vrf vrf-nameip-address--> Pings an IP address in the specified VRF
Show (Can be used in Global config with ‘do’)
General
show item
show item | argumentString--> 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
Interfaces: ^show-int
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 serialport/number--> Shows information about the serial interface, mostly used to determine the DCE (Data Communications Equipment) and the DTE (Data Terminal Equipment)
IP commands:
show ip interface brief --> Shows short, concise interfaces’ information
VLANs: ^show-vlan
show vlan
show vlan brief --> Shows a brief list of VLANs and the access ports that are using them
VTP: ^show-vtp
show vtp status
Spanning Tree: ^show-stp
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
EtherChannel ^show-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
Routes ^show-routes-main
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
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
OSPF Routes ^show-ospf
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
FHRP Protocols ^show-fhrp-protocols
HSRP
show standby --> Shows information about the running HSRP configuration on the router
IPv6 ^show-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
ACL ^show-acl
show access-lists --> Shows ALL configured access-lists on the router
show ip access-lists --> Shows IP related access-lists on the router
show flash--> Shows the contents of the system’s flash memory
NAT ^show-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
Power Policing ^show-power-police
show power inline police interface-id--> Shows the power policing information of the specified interface
Port Security ^show-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
DHCP Snooping ^show-dhcp-snooping
show ip dhcp snooping binding --> Shows the DHCP snooping binding table
Dynamic ARP Inspection ^show-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
VRF ^show-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-addressnetmask [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-typeline-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 sourcedestination--> Copies files from a source location to a destination location
delete file-path--> Deletes the specified file.
Service:
General
service password-encryption --> Enables Type 7 password encryption on all existing and future passwords, removing the service will NOT decrypt passwords. (not recommended)
Syslog Related ^global-service-syslog
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
vlan vlan-id--> Creates a new VLAN, or enters VLAN configuration mode
name name--> Changes the current VLAN’s name
ACL ^global-acl
General
access-list number remark description--> Gives the specified access list a remark/description
ip access-list resequence acl-name/acl-numberstarting-seq-numberincrement--> Modifies the access list’s sequencing numbers according to specified arguments
Standard
access-list number { deny|permit } ipwildcard-mask--> Configures a standard numbered ACL
ip access-list standard acl-name/acl-number--> Enters standard named ACL configuration mode
[entry-number] { deny|permit } ipwildcard-mask
Extended
access-list number { deny|permit } protocolsrc-ipdst-ip--> Configures an extended numbered ACL
ip access-list extended acl-name/acl-number--> Enters standard named ACL configuration mode
cdp holdtime seconds--> Sets the CDP message holdtime
cdp advertise-v2 --> Changes CDP version to V2
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-ntp
clock timezone timezone-namehours-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 startend [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 ^global-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-nameip-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-dhcp
ip dhcp excluded-address low-addresshigh-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 ^global-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-syslog
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 ^global-ssh-line-configuration
General
ip ssh version version { 1 | 2 }--> Sets the SSH version
exec-timeout minutesseconds--> 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
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)
VTY Line Configuration
line vty line-numberORlow-line-numberhigh-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 ^global-ftp-tftp
General / Related
boot systemfile-path--> Sets the Cisco device’s boot system IOS file
copysourcedestination--> Copies files from a source location to a destination location
ip ftp username username--> Sets the username for FTP authentication
ip ftp password password--> Sets the password for FTP authentication
NAT ^global-nat
Static NAT
ip nat inside source static inside-local-ipinside-global-ip--> Configures a one-to-one (Static NAT) IP address mapping
Dynamic NAT
access-list acl-id { permit / deny } arguments--> Creates an ACL with the specified arguments. Used to decide which addresses should be translated with NAT
ip nat pool pool-namestart-ipend-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 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-dhcp-snooping
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-arp-inspection
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
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: ^int-switchport
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)
Access ports:
switchport access vlan vlan-id--> Changes the access port’s VLAN to the specified VLAN ID
switchport voice vlanvlan-id--> Assigns VOIP (Voice over IP) traffic to be tagged with a specific VLAN ID (Done while the switchport is in access mode)
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)
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
[[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 ^int-acl
ip access-group number/name { in|out } --> Applies the specified access-list onto the interface, either inbound or outbound
cdp enable --> Enables CDP on the current interface
LLDP
lldp transmit --> Enables LLDP transmission on the current interface
lldp receive --> Enables LLDP receiving on the current interface
DHCP ^int-dhcp
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 ^int-nat
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 ^int-voip
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 ^int-power-police
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 ^int-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 ^int-dhcp-snooping
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 ^int-arp-inspection
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 ^int-vrf
ip vrf forwarding vrf-name--> Applies the specified VRF onto the interface
Router Commands
General ^router-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
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
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
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-addresswildcard-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
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
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
OSPF
clear ip ospf process --> Újraindítja a jelenlegi OSPF folyamatot
NAT
clear ip nat translation * --> Törli az összes dinamikus NAT fordítást a NAT fordítási táblából
NTP
clock set hh:mm:ssday month year--> Beállítja az eszköz szoftveres óráját (a nap és hónap felcserélhető)
calendar set hh:mm:ssday 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
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
ping vrf vrf-nameip-address--> Pingel egy IP-címet a megadott VRF-ben
Show (Globális konfigurációs módban a ‘do’ paranccsal használható)
Általános
show item
show item | argumentString--> 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
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 serialport/number--> Információt jelenít meg a soros (serial) interfészről, főként a DCE (Data Communications Equipment) és DTE (Data Terminal Equipment) meghatározására szolgál
IP parancsok:
show ip interface brief --> Rövid, összefoglaló információt jelenít meg az interfészekről
VLAN-ok:
show vlan
show vlan brief --> Megjeleníti a VLAN-ok rövid listáját és a hozzájuk rendelt access portokat
VTP:
show vtp status
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
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 (terheléselosztási) módszert
Útvonalak (Routes)
Á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
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
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
FHRP Protokollok
HSRP
show standby --> Információt jelenít meg a routeren futó HSRP konfigurációról
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 (Neighbor Discovery tábla)
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
Layer 2 Discovery Protokollok
CDP
show cdp --> Globális CDP információkat mutat, mint az időzítő (timer), 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 részletes adatait jeleníti meg
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 részletes adatait mutatja
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
DNS
show hosts --> Megjeleníti a konfigurált hostokat, valamint a DNS-en keresztül tanult és gyorsítótárazott hostokat
DHCP
show ip dhcp binding --> Megjeleníti az összes DHCP klienst, amely jelenleg IP-címet kapott
SSH
show ip ssh --> Részletes információt jelenít meg a jelenlegi SSH konfigurációról
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
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
Power Policing
show power inline police interface-id--> Megjeleníti a megadott interfész power policing információit
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
DHCP Snooping
show ip dhcp snooping binding --> Megjeleníti a DHCP snooping binding táblát
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
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-addressnetmask [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-typeline-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 sourcedestination--> 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):
Á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)
Syslog vonatkozású
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
Á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-numberstarting-seq-numberincrement--> Módosítja az access list sorszámozását a megadott paraméterek alapján
Standard
access-list number { deny|permit } ipwildcard-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 } ipwildcard-mask
Extended
access-list number { deny|permit } protocolsrc-ipdst-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
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
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
clock timezone timezone-namehours-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 startend [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 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-nameip-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
ip dhcp excluded-address low-addresshigh-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
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ó
Á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 minutesseconds--> 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)
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
VTY Vonalkonfiguráció
line vty line-numberORlow-line-numberhigh-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
Általános / Kapcsolódó
boot system file-path--> Beállítja a Cisco eszköz rendszerindító (boot system) IOS fájlját
copy sourcedestination--> Fájlokat másol a forrás helyről a cél helyre
delete file-path--> Törli a megadott fájlt
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
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-namestart-ipend-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 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
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
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
ip vrf vrf-name--> Létrehoz egy új VRF-et
Interfész Parancsok
Általános
show interfaces parancsok
ip address ip-addressnetmask
mac-address custom-mac-address
interface range interface-id-interface-idvagyinterface-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-idvagy interface lloopback-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
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:
Á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)
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ő)
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 serialport/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 (Data Communications Equipment) oldalon használatos
encapsulation protocol {ppp/hdlc} --> Módosítja a beágyazási (encapsulation) 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-addressnetmask--> 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
Általános
show spanning-tree parancsok
spanning-tree mode mode {mst/pvst/rapid-pvst}
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 vonatkozású
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 port-priority number--> Módosítja az interfész port priority értékét
Spanning Tree Link Típus
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
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
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
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
CDP
cdp enable --> Engedélyezi a CDP-t a jelenlegi interfészen
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
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
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
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
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
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-addresswildcard-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