Delete configuration file
#delete nvram :startup-config
# delete flash ?
# delete flash vlan.dat file
Vlan
Create vlan
# vlan 10
#Name BBSR
If we want to create multiple vlan
#vlan 10,20,30
exit
Wr
IF WE WANT TO CREATE VLAN 11-20
# vlan 11-20
Exit
Wr
Delete vlan
Interface fa0/1
No switchport access vlan 10
Exit
Wr
Permanent delete vlan
Conf t
No vlan 10
Exit
Wr
Verify routing table
Show ip route
Starting routing
Ip route destination network id destination subnet mask next
hop ip address
Default routing
Ip route 0.0.0.0 .0.0.0.0 nxt hop ip address isp ip
Clear mac address
#clear mac- address table
Dynamically binding mac address table
Switchport port security mac address table sticky
Port security
Port security enable only on the static port
Int fa0/1
Switchport port security
Switchport port security maximum 2
#Spanning tree portfast
It will bypass the listening and learning state and immediate the
port forwarding
Delete ARP arp –d
check ARP arp –a
Keyboard Shortcuts
Several hotkeys exist to simplify using the IOS interface:
Keyboard Shortcut Result
CTRL-B (or Left-Arrow) Moves cursor back one character
CTRL-F (or Right-Arrow) Moves cursor forward one character
CTRL-A Moves cursor to beginning of a line
CTRL-E Moves cursor to end of a line
ESC-B Moves cursor back one word
ESC-F Moves cursor forward one word
CTRL-P (or Up-Arrow) Returns previous command(s) from history buffer
CTRL-N (or Down-Arrow) Returns next command from history buffer
CTRL-Z Exits out of the current mode
TAB Finishes an incomplete command (assuming it is
not ambiguous)
Router# clear mac-address table ,arp cashe
Clear AAA values and Clear Access list ?
and checks clear ?
Tommrow task
Router# clock
Router# configure
Router# connect
Router# copy
Router# debug
All commands throughout all guides on this site will be represented like the
above. The following is an explanation of each component of the above
command:
Router # show startup-config
Hostname Mode Command Argument-
Use this command for enable password and all password in decript mode..Router(config)#
service password–encryption
1. By default, all router interfaces are administratively shutdown. To take an
interface out of an administratively shutdown state:
Router(config)# interface fa 0/0
Router(config-if)# no shutdown
An additional secondary IP Address can be assigned to an interface:
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# ip address 192.168.1.2 255.255.255.0 secondary why secondary required ?
Telnet
It is possible to telnet from a router into a remote device, using either the
hostname or IP address of the remote device:
Router# telnet Router2
Router# telnet 172.17.1.2
To exit a telnet session:
Router2# exit
To return to the router you telnetted from, without exiting the session:
Hold CTRL+SHIFT+6 and then release
Type the character x
To view all open telnet sessions:
Router# show sessions
MAC Address command