Cisco Packet Tracer Labs Commands 1
Cisco Packet Tracer Labs Commands 1
To increase the password security we can encrypt it with cisco’s encryption algorithm 7
Router(config)# show running-config this command displays the current, active config file
Router(config)# show startup-config this command displays the saved configuration file which will be
loaded if the device is restarted.
Router(config)# write or Router(config)# write memory this command will save the configuration
Router(config)# copy running-config startup-config this command will copy the running-configurations
to startup-configurations
Router(config)# no this command will removes the command, for ex. Router(config)# no service
password-encryption
Router(config)# interface fa0/0 this command will get you inside the interface configuration.
Router(config-if)# ip address 10.0.0.1 255.0.0.0 this will configure the IP address to the respective
interface.
Router(config-if)# description ## connected to SW1 ## this command will set description for fa0/0
interface that it is connected to Switch 1.
Router(config-if)# no shutdown this command to activate a selected interface and make it operational
so it can transmit data.
Router interfaces have the shutdown command applied by default i.e. it will be in the administratively
down/down state by default.
Switch interface do not have the shutdown command applied by default i.e. it will be in the up/up state
if connected to another device OR in the down/down state if not connected to another device.
SW1# conf t
SW1(config-if)#speed ?
SW1(config-if)# duplex ?
SW1(config-if)#description ## to R1 ##
SW1(config-if)#description ## to SW2 ##
Here instead of configuring description for each interfaces, we can use interface range command.
SW1(config-if-range)# shutdown
Later if we want to enable the interfaces like f0/5, f0/6, f0/9 to f0/12 then we can do the similar
command.
SW1(config-if-range)# int range f0/5 – 6, f0/9 – 12
SW1(config-if-range)# no shutdown
Duplex refers to whether a device can send and receive data at the same time.
Full duplex: The device can send and receive data at the same time. Devices attached to Switch can
operate at full duplex.
Half duplex: The device cannot send and receive data at the same time. If it is receiving a frame, it must
wait before sending the frame. Used in Hubs i.e. devices attached to Hub can operate at half duplex as a
result collision domain happens due to packet collision at Hub due to ‘cannot send and receive data at
the same time’ condition.
Interfaces that can run at different speeds(10/100 or 10/100/1000) have default settings of speed auto
and duplex auto.
Interfaces advertise their capabilities to the neighbouring devices and they negotiate the best speed
and duplex settings they are both capable of.
For speed: The switch will try to sense the speed that the other device is operating at. If it fails to
sense the speed, it will use the slowest supported speed i.e. 10 Mbps on a 10/100/1000 interface.
For duplex: If the speed is 10 or 100 Mbps, the switch will use half duplex. I f the speed is 1000 Mbps or
greater, use full duplex.
Interface Errors:
Interfaces takes count of certain parameters which should be observed. For that we need to use show
interfaces f0/1 on the switch.
Runts: Frames that are smaller than the minimum frame size of 64 bytes.
Giants: Frame that are larger than the maximum frame size of 1518 bytes.
CRC: Frame that failed the CRC (Cyclic Redundancy Check) check (in the Ethernet FCS Trailer)
Output errors: Frames that switch tried to send, but failed due to an error.