Guiding Commands For CCNA Intro
- Engy Medhat
- Aug 24, 2016
- 2 min read
Engy Medhat's configuration Guide
(Switching)
1) switching modes:
in order to access a switch and deal with it ,there exists 3 main steps (i.e 3 main modes):
a.user mode------>this mode is automatically configured once i connect the switch (for example catalyst 3550) by my laptop or pc with a console cable and setup some standard settings through (right click my computer>manage>device manger>ports>COM"n">OK).
Switch>
b.enable mode------>from the previous mode once i typed "enable or en", it will takes me from the user mode into enable one.
Switch#
c.configuration mode------>from the previous mode once i typed "config t",it will takes me into a terminal mode.
Switch(config)#
Note: to return from one certain mode into a previous one you have to type "exit", however if you want to end the session (i.e return to intial mode"user mode") you have to type "end".
Note: Don't forget the console Password ------> switch(config)# username S1 secret XXX
S1(config)#line console 0
S1(config-line)#password XXX
S1(config-line)#login
S1(config-line)#end
2)Telnet\SSH login:
Both of telnet and ssh login required creating an account (username\password), this account may be a local one (i.e each server is manually configured by it's usernames and thier passwords) OR may be a server one ( AD server automatically saves all the usernames and thier passwords)
Note: Telnet's Password ----->clear text
SSH's password------->encrypted text
Commands:
Switch(Config)# line vty 0 15
Switch(Config-line)# login local
Switch(Config-line)# transport input {none, telnet, ssh, all}
3)VLANS:
vlans stands for virtual lans (i.e software lans ) ,inorder to cast the lan into independent lans and each group of lans can have a group of switch interface under a certain name (example: IT vlan , HR vlan, Admin vlan.....etc)
Commands:
S1(config)#vlan 10
S1(config-vlan)#name HR
S1(config)#interface fa0/1 Note: for a range "interface range fa0/1-5",for seperate group "interface range fa0/1,2,6"
S1(config-if)#switchport mode access//ACCESS MODE//
S1(config-if)#switchport access vlan 10 //ACCESS MODE//
S1(config-if)#end
S1(config)#interface fa0/5
S1(config-if)#switchport mode trunk //TRUNK MODE//
S1(config-if)#end
Note: " access mode" means for the interfaces which are under the access modes they can access the switch through thier vlans.
Note: "trunk mode" means all the interfaces that are allowed can access all the vlans within the switch .
Note: we have to type "end" inorder to save the prevoius commands OR we can type " do wr" .
4) VTP:
vtp stands for virtual tunneling protocol, inorder to set a vtp so many parameters have to be considered like:
domain name
password
mode(server\client\transperent)
commands :
S1(config)#vtp domain (name)
S1(config)#vtp password(password)
S1(config)#vtp mode(server/client/transperent)
5)Interface vlans' ips:
S1(config)#interface vlan 10
S1(config)#ip address 192.168.10.0 255.255.255.0
S1(config)#no shutdown
For checking :
1.#show vlan
2.#show vtp status
3.#show running-config
4.#show startup-config
5.#show run interface fa0/1
6.#show interface fa0/1
7.#show run | include domain
Comments