Collected CLI Commands from the Lab Guide
CLI Commands
Descriptions
‘address jp-adaress client-id string escil
Configures DHCP to reserve an IP address
for a DHCP client identified by the interface
name.
archive
Enters archive configuration mode.
archive config
‘Saves the running configuration file to the
configuration archive.
cip enable
Enables CIP on a VLAN.
configure terminal
To enter global configuration mode.
copy source-url destination-url
Copies the source file to the destination
file
copy running-config startup-config
‘Saves the current configuration to the
configuration file located on the device
fiash.
‘crypto key generate rsa
Generates RSA key pairs. Use this
command in global configuration mode.
delete filesystem: /file-ur
Deletes file from file system
default interface
Configures interface parameters to default
values.
deny | permit protocol (source [source-
wildcard] | host source | any)
(destination [destination-wildcard] | host
destination | any)
In access-list configuration mode, specifies
one or more conditions denied or permitted
to decide if the packet is forwarded or
dropped.
dir filesystem: /file-url
Displays a list of files and directories on the
specified file system.
disconnect
To disconnect a line
enable
‘Changes the privilege level for a CLI
session,
enable secret
Specifies an additional layer of security
over the enable password command,
hostname.
Specifies or modifies the host name for the
switch,
Enters interface configuration mode, and
specifies the Layer 3 VLAN to configure.
ip access-group (access-ist-number |
name) (in | out)
Controls access to the specified interface.
The out keyword is not supported for Layer
2 interfaces (port ACLs).
ip access-list extended name
Defines a standard IPv4 access list using 4
name.
ip address ip-address subnet-mask
ip default-gateway
Configures the IP address and IP subnet
mask.
| Configures a switch’s default gateway.
ip dhep pool poo! name
ABT-IMINS-TQRSO - October 2014
Creates a DHCP pool.‘CLI Commands.
Descriptions
lip dhep subscriber-id interface-name
ip dhcp use subscriber-id client-id
~ | Configures the DHCP server to globally
Configure a switch automatically to
generate a subscriber identifier based on
the short name of the interface.
use the subscriber identifier as the client
identifier on all incoming DHCP messages.
ip domain-name
Specifies the switch domain name. |
ip ssh version
login authentication
Specifies the version of SSH to be run ona |
switch. ey
Enables AAA authentication for logins.
macro apply
macro global apply
[Applies a macro to the interface
Enables a global macro.
network network-number mask
Configures the subnet network number and
mask of the DHCP address pool.
Specifies the location and filename prefix
for the files in the configuration archive.
onfigures a domain number for the PTP
clock.
ptp mode
| Configures the clock mode: There are three
| different modes:
| «Boundary: Act as a grandmaster clock
| and the parent clock to all connected
devices. Boundary enables the switch to
participate in selecting the most accurate
master clock.
E2etransparent: Synchronizes all switch
| ports with the master clock.
|» Forward: Allows the incoming PTP
packets to pass through the switch as.
normal multicast traffic.
pip priority value
ptp priority2 value
Overrides the default criteria (such as clock
quality and clock class) for the most
accurate master clock selection. Lower
values take precedence.
Breaks the tie between two switches that
match default criteria. For example, you
can use a priority 2 value to give a specific
‘switch priority over other identical switches.
reload
Reloads the operating system.
[rep segment segment-id
l
Enables the CISCO REP on the interface
and identifies a segment number.
ABT-IMINS-TOR90 - October 2014CLI Commands
Descriptions
scada modbus tep server
Enables MODBUS TCP on the switch.
service dhcp
Enables the DHCP server and relay agent.
show cip status
Displays information about the CIP subsystem.
show interfaces status
Displays the interface status or list of
interfaces.
show ip interface brief
Displays IP information.
show hosts
Displays the default domain name, the style of
name lookup service, a list of name server
hosts, and the cached list of hostnames and
addresses specific to a particular DNS
show ip interface brief
Lists a brief summary of the IP information and
status of an interface.
show ip route
Displays a routing table.
show mis gos interface
Displays QoS information at the port level
show parser macro brief
Displays Smartport macro names.
show parser macro name
Displays a specific Smariport macro
show ptp clock
Displays PTP clock information.
show ptp parent
Displays PTP parent properties.
show ptp port
Displays information about the PTP port
show rep topology
| Displays the CISCO REP topology information.
show running config
show scada modbus tcp server _
Displays the contents of the currently running
configuration file.
Displays the server information and statistics.
show spanning-tree vian vian-id
Displays spanning-tree information
show version
Displays information about the currently
loaded software along with hardware and
device information.
‘show vian
Displays VLAN information.
show vtp status
Displays VTP status information.
transport input
Defines which protocols to use for connecting
to a specific line of the switch.
vlan vian-id Creates a VLAN with a VLAN ID.
vip mode Configures VTP in transparent mode.
write erase Erases the startup configuration file.
ABT-IMINS-TQRSO - October 2014