Presentation is loading. Please wait.

Presentation is loading. Please wait.

Basic configuration of a switch in packet tracer

Similar presentations


Presentation on theme: "Basic configuration of a switch in packet tracer"— Presentation transcript:

1 Basic configuration of a switch in packet tracer
LAB - 6

2 Basic Switch Configuration
Switch Modes Some Basic Commands Changing Hostname Setting a Banner Display Running-Configuration Line Console Password Password for Privileged Mode Removing Line Console Password Removing Password for Privileged Mode How to Assign IP To Switch / How to Remove IP How to Connect Two or More Than Two Switches By Assigning IP VLAN / Multi-Switching VLAN – Trunk Port

3 Switch Modes User EXEC Switch > Privileged EXEC Switch #
Purpose Prompt Command to enter Command to exit User EXEC Allow you to connect with remote devices, perform basic tests, temporary change terminal setting, list system information Switch > Default mode after booting. Login with password, if configured. Use exit command Privileged EXEC Allow you to set operating parameters. It also includes high level testing and list commands like show, copy, debug. Switch # Use enable command from user exec mode Global Configuration Contain commands those affect the entire system Switch (config)# Use configure terminal command from privileged exec mode

4 Switch Modes Switch > Default mode after booting Switch > enable
Note: This command allows you to enter into privileged exec mode / enable mode, where you can configure a range of commands. This prompt for this command looks like this Switch # Switch # configure terminal Note: This command allows you tio enter into Global Configuration Mode, where you configure a wide range of commands which effect the entire system. This prompt for ths command looks like this Switch (config) # Note: This command to exit from current mode

5 Changing Hostname Switch > enable Switch # configure terminal
Switch (config ) # hostname GIFT GIFT ( config ) # exit GIFT #

6 Setting a Banner GIFT > enable GIFT # configure terminal
When someone connects to the Switch , the MOTD ( Message of the Day ) banner appears before the login prompt. GIFT > enable GIFT # configure terminal GIFT ( config ) # banner motd # WELCOME TO GIFT # GIFT ( config ) # exit GIFT > Note: # is a special character which is uses before starting and ending of a message. VERFICATION GIFT # exit GIFT con0 is now available Press RETURN to get started (Press ENTER key from keyboard) WELCOME TO GIFT GIFT >

7 Some Basic Switch Commands
Description Command ? Use to show commands in any mode Switch > ? Enable Use to enter into privileged mode Switch > enable Configure Terminal Use to enter into Global confi. Mode Switch # Configure Terminal Tab Use to complete the command Switch # confi term Show Version Use to show the Hardware Information Switch # show version Show-Mac-Table Use to show the MAC Address Table Switch # show mac-address-table Show IP Interfaces Brief Use to show the information about IP interfaces Switch # show ip interface brief Show Vlan Use to show information about VLANs Switch # show vlan Show running configuration Use to show information about running configuration Switch # show running-config

8 Display Running-Configuration
GIFT > enable GIFT # show running-config GIFT > enable GIFT # Write face FastEthernet0/15 ! interface FastEthernet0/16 interface FastEthernet0/17 interface FastEthernet0/18 interface FastEthernet0/19 interface FastEthernet0/20 interface FastEthernet0/21 interface FastEthernet0/22 interface FastEthernet0/23 interface FastEthernet0/24 interface GigabitEthernet1/1 interface GigabitEthernet1/2 interface Vlan1 no ip address shutdown banner motd ^C WELCOME TO GIFT SWITCH ^C line con 0 line vty 0 4 login line vty 5 15 end Building configuration... Current configuration : 1070 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption hostname GIFT spanning-tree mode pvst interface FastEthernet0/1 interface FastEthernet0/2 interface FastEthernet0/3 interface FastEthernet0/4 interface FastEthernet0/5 interface FastEthernet0/6 interface FastEthernet0/7 interface FastEthernet0/8 interface FastEthernet0/9 interface FastEthernet0/10 interface FastEthernet0/11 interface FastEthernet0/12 interface FastEthernet0/13 interface FastEthernet0/14 inter Write Command is use to save current configuration into NVRAM - Non-volatile

9 Switch Hardware Information
Switch > enable GIFT # show version Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(22)EA4, RELEASE SOFTWARE(fc1) Copyright (c) by cisco Systems, Inc. Compiled Wed 18-May-05 22:31 by jharirba Image text-base: 0x , data-base: 0x ROM: Bootstrap program is is C2950 boot loader Switch uptime is 17 seconds System returned to ROM by power-on Cisco WS-C2950T-24 (RC32300) processor (revision C0) with 21039K bytes of memory. Processor board ID FHK0610Z0WC Last reset from system-reset Running Standard Image 24 FastEthernet/IEEE interface(s) 2 Gigabit Ethernet/IEEE interface(s) 63488K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address: F Motherboard assembly number: Power supply part number: Motherboard serial number: FOC061004SZ Power supply serial number: DAB D Model revision number: C0 Motherboard revision number: A0 Model number: WS-C2950T-24 System serial number: FHK0610Z0WC Configuration register is 0xF

10 Mac Address Table GIFT > enable GIFT # show mac-address-table
Vlan Mac Address Type Ports a DYNAMIC Fa0/1 b.beea.5c DYNAMIC Fa0/2 e0.f d DYNAMIC Fa0/3 ac DYNAMIC Fa0/4 e0.8f9e DYNAMIC Fa0/5 Total 5 PCs are attach with this switch: By default all ports are enable and members of Vlan-1

11 Switch IP / Interface Status
Switch > enable GIFT # show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down FastEthernet0/ unassigned YES manual down down GigabitEthernet1/1 unassigned YES manual down down GigabitEthernet1/2 unassigned YES manual down down Vlan unassigned YES manual administratively down down

12 Line Console Password GIFT > enable GIFT # configure terminal
GIFT (config) # line console 0 GIFT (config-line) # password TEST123 GIFT (config-line) # login Note: Login command is used for checking enable password. GIFT (config-line) # exit GIFT (config ) # exit GIFT # exit VERIFICATION GIFT # exit GIFT con0 is now available    Press RETURN to get started WELCOME TO GIFT User Access Verification Password: TEST123 GIFT > enable  Note: if you type a wrong password, IOS of the device does not allow you to enter into user exec mode

13 Password for Privileged Mode
GIFT > enable GIFT # configure terminal GIFT (config) # enable password TEST123 GIFT (config ) # exit GIFT # VERIFICATION GIFT # exit GIFT con0 is now available Press RETURN to get started WELCOME TO GIFT User Access Verification Password: TEST123 GIFT > GIFT > enable GIFT #

14 Removing Line Console Password
GIFT > enable GIFT # configure terminal GIFT (config) # line console 0 GIFT (config-line) # no login GIFT (config-line) # no password GIFT (config-line) # end GIFT #

15 Removing Password for Privileged Exec Mode
GIFT > enable GIFT # configure terminal GIFT (config) # no enable password GIFT (config-line) # end GIFT #

16 How To Assign An IP To Switch
IP address is the address of device in network. Switch allows us to set IP address on interface level. IP address assigned on interface is used to manage that particular interface. To manage entire switch we have to assign IP address to VLAN1( Default VLAN of switch). Also set default gateway IP address from global configuration mode. In following example I would assign IP :  to VLAN1 Switch>enable Switch# configure terminal Switch(config)# interface vlan1 Switch(config-if)# ip address Switch(config-if)# no shutdown Switch(config-if)# exit

17 Create Topology & Assign IP

18 SWITCH CONFIGURATION To Assign An IP
Pc # 1 Pc # 2 Pc # 3 Pc # 4 Pc # 5 Switch1 > enable Switch1 # configure terminal Switch1(config) # interface vlan1 Switch1(config-if) # ip address Switch1(config-if) # no shutdown Switch1(config-if)# exit Switch1(config)# Switch2 > enable Switch 2# configure terminal Switch2(config) # interface vlan1 Switch2(config-if) # ip address Switch2(config-if) # no shutdown Switch2(config-if)# exit Switch2(config)#

19 VLAN Topology

20 VLAN Configuration Task Command Set Hostname Switch> enable
Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname GIFT Define Vlan Number & Its Name In this example define 3 Vlan with no and name GIFT(config)#vlan 5 GIFT(config-vlan)#name IT GIFT(config-vlan)#exit GIFT(config)#vlan 10 GIFT(config-vlan)#name HR GIFT(config)#vlan 20 GIFT(config-vlan)#name AC Add Interfaces in each Vlan GIFT(config)#interface range f0/1-10 GIFT(config-if-range)#switchport mode access GIFT(config-if-range)#switchport access vlan 5 GIFT(config-if-range)#exit GIFT(config)#interface range f0/11-20 GIFT(config-if-range)#switchport access vlan 10 GIFT(config)#interface range f0/21-24 GIFT(config-if-range)#switchport access vlan 20

21 VLAN Verification Command: show vlan

22 Multi-Switching VLAN Topology / Trunk Port

23 Multi-VLAN Configuration
Switch> Switch>enable Switch#configure terminal Switch(config)#hostname SW-1 SW-1(config)#vlan 5 SW-1(config-vlan)#name IT SW-1(config-vlan)#exit SW-1(config)#vlan 10 SW-1(config-vlan)#name HR SW-1(config)#vlan 20 SW-1(config-vlan)#name AC SW-1(config)#interface range fastEthernet 0/1-10 SW-1(config-if-range)#switchport mode access SW-1(config-if-range)#switchport access vlan 5 SW-1(config-if-range)#exit SW-1(config)#interface range fastEthernet 0/11-20 SW-1(config-if-range)#switchport access vlan 10 SW-1(config)#interface range fastEthernet 0/21-24 SW-1(config-if-range)#switchport access vlan 20 SW-1(config)#exit SW-1#exit SW-1> SW-1>enable SW-1#configure terminal SW-1(config)#interface gigabitEthernet 1/1 SW-1(config-if)#switchport mode trunk SW-1(config-if)#exit SW-1# Switch>enable Switch#configure terminal Switch(config)#hostname SW-2 SW-2(config)#vlan 5 SW-2(config-vlan)#name IT SW-2(config-vlan)#exit SW-2(config)#vlan 10 SW-2(config-vlan)#name HR SW-2(config)#vlan 20 SW-2(config-vlan)#name AC SW-2(config)#interface range fastEthernet 0/1-10 SW-2(config-if-range)#switchport mode access SW-2(config-if-range)#switchport access vlan 5 SW-2(config-if-range)#exit SW-2(config)#interface range fastEthernet 0/11-20 SW-2(config-if-range)#switchport access vlan 10 SW-2(config)#interface range fastEthernet 0/21-24 SW-2(config-if-range)#switchport access vlan 20 SW-2(config)#exit SW-2#exit SW-2> SW-2>enable SW-2#configure terminal SW-2(config)#interface gigabitEthernet 1/1 SW-2(config-if)#switchport mode trunk SW-2(config-if)#exit SW-2# Multi-VLAN Configuration

24 Trunk Port Configuration
SW-1>enable SW-1#configure terminal SW-1(config)#interface gigabitEthernet 1/1 SW-1(config-if)#switchport mode trunk SW-1(config-if)#exit SW-1(config)#exit SW-1# SW-2>enable SW-2#configure terminal SW-2(config)#interface gigabitEthernet 1/1 SW-2(config-if)#switchport mode trunk SW-2(config-if)#exit SW-2(config)#exit SW-2#

25 VLAN Verification Command: show vlan

26 How to check trunk port : show interfaces trunk
SW-1#show interfaces trunk Port Mode Encapsulation Status Native vlan Gig1/ on q trunking Port Vlans allowed on trunk Gig1/ Port Vlans allowed and active in management domain Gig1/ ,5,10,20 Port Vlans in spanning tree forwarding state and not pruned Gig1/ none SW-2#show interfaces trunk Port Mode Encapsulation Status Native vlan Gig1/ on q trunking Port Vlans allowed on trunk Gig1/ Port Vlans allowed and active in management domain Gig1/ ,5,10,20 Port Vlans in spanning tree forwarding state and not pruned SW-2#

27 How To Place A Server In Your Packet Tracer Network
Check Connectivity PC>ping Pinging with 32 bytes of data: Reply from : bytes=32 time=1ms TTL=128 Reply from : bytes=32 time=0ms TTL=128 Reply from : bytes=32 time=12ms TTL=128 Ping statistics for : Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 12ms, Average = 3ms Access Web Interface

28 Add Facebook Server In Your Network

29 Access Your Facebook Server

30 FAROOQ AHMAD – IT SERVICES DEPARTMENT – GIFT UNIVERSITY
Microsoft Certified professional – MCP Microsoft Certified Solution Associate – MCSA Microsoft Certified Solution Expert – MCSE Cisco Certified Network Associate (CCNA) (Routing & Switching) – Training from Corvit Lahore


Download ppt "Basic configuration of a switch in packet tracer"

Similar presentations


Ads by Google