CommandReference NET125 ITNv7
CommandReference NET125 ITNv7
Commands
NET125
Intro to Networks
V7
9 January 2020
CommandReference-NET125-ITNv7.docx Page 1 of 13
Configuration Commands by Module
Module 2 Configuring the Network Operating System
Exiting modes
Switch(config-if)# exit Move up one mode to Global
Switch(config)# exit Move up one mode Privilege Exec
Switch# exit Move up one mode to User exec
Switch>
Configuring a Hostname
Switch> enable
Switch# configure terminal
Switch(config)# hostname SW1 Sets the hostname to SW1
CommandReference-NET125-ITNv7.docx Page 2 of 13
SW1(config)# no hostname Resets the hostname back to default
Switch(config)#
Adding Descriptions to Interfaces
Router> enable
Router# configure terminal
Router(config)# interface fastethernet 0/0
Router(config-if)# description Link to SW1 LAN
Verification Commands
Router# show ip interface brief Displays status of all interfaces
Router# show interfaces Displays statistics for all interfaces
Router# show interface fastethernet 0/0 Displays statistics for specified interface
Router# show startup-config Displays saved config in NVRAM
Router# show running-config Displays current running config in RAM
Router# show version Displays operating system data
CommandReference-NET125-ITNv7.docx Page 6 of 13
Chapter 6: Network Layer
CommandReference-NET125-ITNv7.docx Page 7 of 13
R1(config)# interface gigabitethernet 0/0 Accessing interface G0/0
R1(config-if)# description Link to LAN-10 Optional configuration
R1(config-if)# ip address 192.168.1.1 255.255.255.0 Assigning an IP address to interface
R1(config-if)# no shutdown Enabling the interface
CommandReference-NET125-ITNv7.docx Page 8 of 13
Chapter 7: IP Addressing
CommandReference-NET125-ITNv7.docx Page 9 of 13
R1(config)# interface serial 0/0
R1(config-if)# ipv6 address fe80::1 link-local
R1(config-if)# exit
R1(config)# login block-for 180 attempts 3 within 60 After 3 failed attempts within 60 seconds, login is
blocked for 180 seconds
Router(config)# line console 0
Router(config-line)# exec-timeout 0 0 Close console session if idle for 0 mins 0 secs
Router(config-line)# exec-timeout 10 Close console session if idle for 10 mins 0 secs
Router(config)# line vty 0 5
Router(config-line)# exec-timeout 0 0 Disconnect session if idle for 0 mins 0 secs
Router(config-line)# exec-timeout 5 30 Disconnect session if idle for 5 mins 30 secs
** R1(config)# crypto key generate rsa Creates encryption with a key size of 1024 for PT
The name for the keys will: ccna.ccna.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
A few minutes.
CommandReference-NET125-ITNv7.docx Page 11 of 13
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable… [OK]
File System
Router# show file systems Lists available file systems
Router# dir Lists content of current directory (flash is default)
Router# cd nvram: Changes directory to NVRAM file system
Router# pwd Displays name of current directory
CommandReference-NET125-ITNv7.docx Page 12 of 13
Interface Range Command
S1(config)# interface range f0/1-5,f0/7-9,f0/11-24,g0/1-2 Range includes the interface ranges to be included
S1(config-if-range)# shutdown Shutdowns only the included interface ranges
Debug Information
Router# debug ip icmp Monitors and displays ICMP messages
Router# no debug ip icmp Turns off debug ICMP messages
Router# undebug ip icmp Turns off debug ICMP messages
Router# undebug all Turns off all debug messages
Router# debug all Turns on all debug system diagnostics and messages
Router# no debug all Turns off all debug system diagnostics
Various PC Commands
C:\> ping 10.0.0.1 Pings 10.0.0.1
C:\> ipconfig Displays Layer 3 address and data
C:\> ipconfig /all Displays all interface Layer 2 & 3 data on PC
C:\> nslookup Displays DNS data
C:\> netstat -r Displays PC routing table
C:\> netstat -tuna Displays current open port data
C:\> arp -a Displays PC ARP table
C:\> arp -d Deletes all ARP table data
CommandReference-NET125-ITNv7.docx Page 13 of 13