cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

hardware:cisco:index.html



Cisco IOS, NX-OS CLI Commands

Corporate Site

Cisco IOS, NX-OS Command

Basic

Basic Operation #show ip route | i 192
Check Commands Host> show version
(SW Version, MAC Address, serial number, Uptime)
Host> show inventory
(Product Name, Serial Number, SFP Module)
Host> show inventory all
Configuration Host# ter len 0
Host# terminal length 0
Host# sh run
Host(config)# do sh run
Host(config)# do sh run int Gi1/0/1
Save Configuration
Host#copy running-config startup-config
Backup Configuration to TFTP Server
Host# copy running-config tftp://192.168.0.10/conf/aaa01-rt/aaa01-rt_20131115.txt
Host#copy startup-config tftp://192.168.0.10/conf/test-l2/test-l2_20151010.txt vrf VRFNAME


Hardware Management

crash
IOS Version Up


System Management

BASIC SETTING hostname
Host(config)# no ip domain-lookup
Host# terminal length 0
Login User and Password
(SSH, RADIUS)
RADIUS
Interface Host#sh int status | i xxx

How to configure an interface to default settings
Host(config)# default interface gi3/0/37
Host(config)# interface gi3/0/37
Host(config-if)#shutdown

How to specify interfaces by range
interface range GigabitEthernet 1/0/8 - 11
interface range gigabitethernet 1/0/13-14 , gigabitethernet 2/0/13-14
TIME(NTP, PTP) Host> show clock
Host> show ntp status
Host> show clock ptp
LOGGING switch#show logging
SNMP
DHCP


LAN Switching

MAC address Switch#show arp ← iOS
Switch#show ip arp ← Nexus
Switch#show mac-address-table
VLAN switch# show vlan brief
Access Port
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Trunk Port
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport nonegotiate

Switch(config-if)# switchport trunk allowed vlan add VLAN_NO
EtherChannel Switch# show etherchannel summary
Stack Switch>show version
Switch>show switch
SPAN & RSPAN (Switched Port Analyzer : mirror port)
STP
RSTP
Flex Link show interfaces switchport backup


IP Routing

ACL Router(config)#show ip access-list
NAT Router#show ip nat translations
PAT
Static Route Router#show ip route
Router# show ip route vrf all
Router#traceroute IPADDRESS ←- to stop [Ctrl]+[Shift]+[6]
RIP
OSPF
EIGRP (Cisco Protocol)
BGP router# show ip bgp
router# show bgp vrf XXX all summary
HSRP, MHSRP
(Cisco Protocol)
Router# show standby brief ← IOS
Router# show hsrp brief ← Nexus
VRRP
VRF Router# show vrf
Router# show ip interface brief vrf VRFNAME
Router# show ip route vrf VRFNAME
Router# ping vrf VRFNAME DESTINATION


VPN

etc

Cisco Wildcard Mask /24 = 255.255.255.0 = 0.0.0.255
/16 = 255.255.0.0 = 0.0.255.255
/8 = 255.0.0.0 = 0.255.255.255
multicast show ip igmp groups
show ip igmp groups vrf VRFNAME




References




hardware/cisco/index.html.txt · Last modified: 2022/04/12 by admin

Page Tools