Ccna Commands
Ccna Commands
Ccna Commands
Requirement Command
The Banner message or motd banner Router(config)#banner motd type message here
Requirement Command
A specific amount of time using the command R(Config)# login block-for 120 attempts 2 within 60
This command will block login attempts for 120
seconds if there are two failed login attempts
within 60 seconds
SSH أربع خطوات العداد ال
Requirement Command
Requirement Command
Assigns address and subnet mask to interface Switch (config-if)#ip address 192.168.0.1
255.255.255.0
Requirement Command
To save the current configuration from DRAM Router# Copy running-config startup-config
(running-config) to NVRAM (startup-config)
To save the current configuration from DRAM Router# Copy running-config tftp:
to TFTP Server Address or name of remote host [ ]? 192.168.1. 0
VLAN
Requirement Command
Switch(config)#vlan 3
Creating Static VLANs Switch(config-vlan)#name Engineering
Switch(config-vlan)#exit
Assigning Ports to VLANs Switch(config)#interface fast Ethernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
the range Command Switch(config)#interface range fast Ethernet 0/1 – 9
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Puts the interface into permanent trunking mode Switch(config)#interface fast Ethernet 0/1
and negotiates to convert the link into a trunk Switch(config-if)#switchport mode trunk
link Switch(config-if)#switchport trunk native VLAN 99
Switch(config-if)#switchport trunk allowed VLAN
10,20,30,99
Switch Port Security VLAN
Requirement Command
Sets a maximum limit of four MAC addresses that Switch(config-if)#switchport port-security maximum
will be allowed on this port. 4
Removes port from VLAN 5 and reassigns it to VLAN Switch(config-if)#no switch port access vlan 5
1—the default VLAN.
Creates a DHCP pool named internal. The name can Router(config)#ip dhcp pool internal
be anything of your choosing.
Defines the range of addresses to be leased. Router(dhcp-config)#network 172.16.10.0
255.255.255.0
Defines the address of the default router for the Router(dhcp-config)#default router 172.16.10.1
client.
Defines the address of the Domain Name System Router(dhcp-config)#dns-server 172.16.10.10
(DNS) server for the client
Defines the domain name for the client. Router(dhcp-config)#domain-name cisco.com
Router(dhcp-config)#exit
Specifies the range of addresses not to be leased out to Router(config)#ip dhcp excluded-address 172.16.10.1
clients. 172.16.10.9
Moves to interface configuration mode.(Helper Address) Router(config)#interface gigabit Ethernet 0/0
VTP Configuration
Requirement Command
To configure an extended VLAN on a 2960 switch it must be set to VTP transparent mode. (By default 2960
switches do not support Extended range VLANs?)
Requirement Command
DTP Configuration
Requirement Command
Switch port mode access - interface becomes a S1(config)# Switchport mode access
no trunk interface.
Switchport mode dynamic auto - interface S1(config)# Switchport mode dynamic auto
becomes a trunk if the neighboring interface is
set to trunk or desirable mode.
Switchport mode dynamic desirable - interface S1(config)# Switchport mode dynamic desirable
becomes a trunk if the neighboring interface is
set to trunk, desirable, or dynamic auto mode.
Switchport mode trunk - interface becomes a S1(config)# Switchport mode trunk
trunk even if the neighboring interface is not a
trunk interface.
Switchport nonegotiate - prevents the S1(config)# Switchport nonegotiate
interface from generating DTP frames.
STP configuration
Requirement Command
• show interfaces
• show arp
• show ip route
• show protocols
• show version
When performing a trace from a router CLI, use the traceroute command.
On a Windows computer, the IP address of the default gateway can be viewed by using the
ipconfig command.
• The ipconfig /all command can be used to view the MAC address as well as other important
details regarding the Layer 3 addressing of the device.
• The ipconfig /displaydns command displays all of the cached DNS entries on a Windows computer
system.
On a Windows computer, the arp -a command lists all devices currently stored in the ARP cache of a
particular host.
The Arp cache can be cleared using the command arp-d
Show cdp neighbors detail
• To disable CDP globally, use the global configuration command no cdp run. To disable CDP on an
interface, use the interface command no cdp enable.
show ip route command to verify that the default route has been set.
لله رب العالمين
دعواتكم لي بالتوفيق