Some Basic Commands of Cisco Packet Tracer
STUDY OF BASIC COMMANDS OF CISCO PACKET TRACER
- ENABLE: To enter privileged EXEC mode or any other security level set by a system administrator, use the enable EXEC command.
Syntax: >> enable [priviledge level]
---> privilege level: optional
- CONFIGURE TERMINAL/ config t: Enter the global configuration mode, when using the console part.
Eg. >> enable
>> config t
(config)#
- EXIT: To exit any configuration mode to the next highest mode in the CLI mode hierarchy, use the exit command in any configuration mode.
E.g. >>exit
- INT FA 0/0 OR 0/1: The notation is denoting that there are multiple NIC interfaces on the switch/ router. 'fa' indicates that the NIC port is most likely a fast ethernet type of connection.
E.g. >> int fa 0/0
- SWITCH PORT ACCESS: To set the access VLAN when the interface is in access mode.
Syntax >> switchport access -vlan id-
-vlan id- VLAN to set when the interface is in access mode.
The range is from 1 to 4094 except for the VLANs reserved
for external use.
CONNECTING PCS WITH SWITCH:
- First, take 4PCs and label them as PC 0, 1, 2, 3.
- Now, Connect these 4PCs through Copper Straight Through cable to switch ST2950T-24.
- Then, configure the IP Addresses of all the PCs by setting the IPs as 198.162.100.10/ 20/ 30/ 40.
- Now, open the CLI of the switch and tap ENTER. Now from here, we will be able to configure the switch.
- Then enter 'enable' in the CLI. [ (switch)# enable ]
- Enter 'config t' or 'config terminal' on CLI.
(switch)# enable
(switch)# config t
(config)#
- Now enter the vlan2 to make another virtual LAN other than default and name it as you want. Here we took CCE.
(config)# vlan2
(config-vlan)# name cce
- This will create your vlan2 (CCE).
- Now enter exit.
(config- vlan)# exit
(config) #
- Enter the int fa 0/0 to config the interface of fast ethernet 0/0.
(config)# int fa 0/0
(config-fa )#
- Now we will switch the port of PC0 from VLAN 1 to VLAN 2 by entering switchport access vlan2.
(config-fa)# switchport access vlan2
- CONFIGURE TERMINAL/ config t: Enter the global configuration mode, when using the console part.
Eg. >> enable
>> config t
(config)#
- EXIT: To exit any configuration mode to the next highest mode in the CLI mode hierarchy, use the exit command in any configuration mode.
E.g. >>exit
- INT FA 0/0 OR 0/1: The notation is denoting that there are multiple NIC interfaces on the switch/ router. 'fa' indicates that the NIC port is most likely a fast ethernet type of connection.
E.g. >> int fa 0/0
- SWITCH PORT ACCESS: To set the access VLAN when the interface is in access mode.
Syntax >> switchport access -vlan id-
-vlan id- VLAN to set when the interface is in access mode.
The range is from 1 to 4094 except for the VLANs reserved
for external use.
CONNECTING PCS WITH SWITCH:
- First, take 4PCs and label them as PC 0, 1, 2, 3.
- Now, Connect these 4PCs through Copper Straight Through cable to switch ST2950T-24.
- Then, configure the IP Addresses of all the PCs by setting the IPs as 198.162.100.10/ 20/ 30/ 40.
- Now, open the CLI of the switch and tap ENTER. Now from here, we will be able to configure the switch.
- Then enter 'enable' in the CLI. [ (switch)# enable ]
- Enter 'config t' or 'config terminal' on CLI.
(switch)# enable
(switch)# config t
(config)#
- Now enter the vlan2 to make another virtual LAN other than default and name it as you want. Here we took CCE.
(config)# vlan2
(config-vlan)# name cce
- This will create your vlan2 (CCE).
- Now enter exit.
(config- vlan)# exit
(config) #
- Enter the int fa 0/0 to config the interface of fast ethernet 0/0.
(config)# int fa 0/0
(config-fa )#
- Now we will switch the port of PC0 from VLAN 1 to VLAN 2 by entering switchport access vlan2.
(config-fa)# switchport access vlan2
Comments
Post a Comment