Basic configuration of a switch in packet tracer

Slides:



Advertisements
Similar presentations
Configuring a Router Harold Hernandez, MS, CCNI. 3.1 Configuring a Router Name a router Set passwords Examine show commands Configure a serial interface.
Advertisements

1 Passwords and Banners Cisco Devices Packet Tracer.
CCNA2-1 Chapter 1 Introduction to Routing and Packet Forwarding CLI Configuration and Addressing.
Cisco Router. Overview Understanding and configuring the Cisco Internetwork Operating System (IOS) Connecting to a router Bringing up a router Logging.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
CCNA 2 v3.1 Module 2.
CSE 304 COMPUTER NETWORK LAB LECTURE 01 Md. Mamunur Rashid Akand Lecturer, Department of CSE, BUBT.
Routers A router is a computer Computers have four basic components:
1 Chapter 2 ROUTER FUNDAMENTALS By: Tassos Tassou.
Basic Router Configuration Warren Toomey GCIT. Introduction A Cisco router is simply a computer that receives packets and forwards them on based on what.
CISCO ROUTER.  The Cisco router IOS  Enhanced editing  Administrative functions  Hostnames  Banners  Passwords  Interface descriptions  Verifying.
Chapter 6 Router Configuration Sem 2V2. Configuration files can come from the console NVRAM TFTP server. The router has several modes:  privileged mode.
Configuring a network os
© Wiley Inc All Rights Reserved. CHAPTER 4: Introduction to the Cisco IOS CCNA: Cisco Certified Network Associate Study Guide.
Console Connectivity RJ-45 Connector Console Port Computer Rollover Cable RJ-45 to DB-9 Converter.
1. 2 Console Connectivity RJ-45 Connector Console Port Computer Rollover Cable RJ-45 to DB-9 Converter.
CCNA 3 Week 6 Switch Configuration. Copyright © 2005 University of Bolton Physical Details Available in variety of sizes –12 port, 16 port, up to 48 port.
Cisco S2 C4 Router Components. Configure a Router You can configure a router from –from the console terminal (a computer connected to the router –through.
2002 Networking Operating Systems (CO32010) 1. Operating Systems 2. Processes and scheduling 3.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
Ch.2 – Introduction to Routers
Release 16/07/2009Jetking Infotrain Ltd. Basic Router Configuration Chapter 5.
SW REVERSE JEOPARDY Chapter 1 CCNA2 SW Start-up Routing table Routing table Router parts Router parts Choosing a path Choosing a path Addressing Pot.
Command line Interface LA 1 LnP : are/release/12.1_11_yj4/command/reference/intro.html.
Module 3 Configuring a Router.
Routers and Routing Basics CCNA 2 Chapter 3 1.
Ch.2 – Introduction to Routers CCNA 2 version 3.0 Rick Graziani Cabrillo College.
Introduction to Routers
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Router Initialization steps.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Configuring a Router MM Clements. Copyright This Week Command line interface Router configuration Modes for configuration Interface.
Chapter 2: Configure a Network Operating System
Console Connectivity RJ-45 Connector Console Port Computer Rollover Cable RJ-45 to DB-9 Converter.
Configuring a Router Module 3 Semester 2. Router Configuration Tasks Name a router Set passwords Examine show commands Configure a serial interface Configure.
1 21-Mar-16 Configuring and testing CCNA Exploration Semester 1 Chapter 11.
CHAPTER 3 Router CLI Command Line Interface. Router User Interface User and privileged modes User mode --Typical tasks include those that check the router.
Chapter 6.  Upon completion of this chapter, you should be able to:  Configure switches  Configure VLANs  Verify configuration settings  Troubleshoot.
LAN Connections.
Instructor Materials Chapter 8 Configuring Cisco Devices
Managing a Cisco Devices Internetwork
INITIAL CONFIGURATION.
Instructor Materials Chapter 2: Configure a Network Operating System
Basic router configuration
Switch Commands.
Chapter 2: Configure a Network Operating System
CCNA 2 v3 JEOPARDY Module 2 CCNA2 v3 Module 2 K. Martin.
Introduction to Cisco IOS -(Internetwork Operating System)
Semester 2 5/6 JEOPARDY CHAPTERS 5 & 6 REVIEW S2C06 Jeopardy Review.
Router Startup and Setup
CCNA Configuration Journal Sample
Instructor & Todd Lammle
Chapter 5: Switch Configuration
Instructor & Todd Lammle
Introduction to Routing and Packet Forwarding
Net 412 (Practical Part) LAB 5-port security
Chapter 2: Configure a Network Operating System
Configuring a Router Module 3 Semester 2.
Chapter 5: Switch Configuration
Routers & Cisco IOS.
Chapter 2: Scaling VLANs
Fundamentals of Computer Networks
Fundamentals of Computer Networks
Router Startup and Setup
Router Basics รศ. ดร. อนันต์ ผลเพิ่ม Asso. Prof. Anan Phonphoem, Ph.D.
Introduction to Cisco IOS -(Internetwork Operating System)
Routers and Routing Basics Review
CCNA 2 2 Double JEOPARDY Midterm REVIEW S2C06 Jeopardy Review.
CCNA 2 JEOPARDY Module 3.
Presentation transcript:

Basic configuration of a switch in packet tracer LAB - 6

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

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

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

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

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 >

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

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

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) 1986-2005 by cisco Systems, Inc. Compiled Wed 18-May-05 22:31 by jharirba Image text-base: 0x80010000, data-base: 0x80562000 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 802.3 interface(s) 2 Gigabit Ethernet/IEEE 802.3 interface(s) 63488K bytes of flash-simulated non-volatile configuration memory. Base ethernet MAC Address: 0050.0F55.9580 Motherboard assembly number: 73-5781-09 Power supply part number: 34-0965-01 Motherboard serial number: FOC061004SZ Power supply serial number: DAB0609127D Model revision number: C0 Motherboard revision number: A0 Model number: WS-C2950T-24 System serial number: FHK0610Z0WC Configuration register is 0xF

Mac Address Table GIFT > enable GIFT # show mac-address-table ------------------------------------------- Vlan Mac Address Type Ports ---- ----------- -------- ----- 1 0006.2a17.7038 DYNAMIC Fa0/1 1 000b.beea.5c31 DYNAMIC Fa0/2 1 00e0.f978.213d DYNAMIC Fa0/3 1 0006.2ac6.3928 DYNAMIC Fa0/4 1 00e0.8f9e.2622 DYNAMIC Fa0/5 Total 5 PCs are attach with this switch: By default all ports are enable and members of Vlan-1

Switch IP / Interface Status Switch > enable GIFT # show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/1 unassigned YES manual down down FastEthernet0/2 unassigned YES manual down down FastEthernet0/3 unassigned YES manual down down FastEthernet0/4 unassigned YES manual down down FastEthernet0/5 unassigned YES manual down down FastEthernet0/6 unassigned YES manual down down FastEthernet0/7 unassigned YES manual down down FastEthernet0/8 unassigned YES manual down down FastEthernet0/9 unassigned YES manual down down FastEthernet0/10 unassigned YES manual down down FastEthernet0/11 unassigned YES manual down down FastEthernet0/12 unassigned YES manual down down FastEthernet0/13 unassigned YES manual down down FastEthernet0/14 unassigned YES manual down down FastEthernet0/15 unassigned YES manual down down FastEthernet0/16 unassigned YES manual down down FastEthernet0/17 unassigned YES manual down down FastEthernet0/18 unassigned YES manual down down FastEthernet0/19 unassigned YES manual down down FastEthernet0/20 unassigned YES manual down down FastEthernet0/21 unassigned YES manual down down FastEthernet0/22 unassigned YES manual down down FastEthernet0/23 unassigned YES manual down down FastEthernet0/24 unassigned YES manual down down GigabitEthernet1/1 unassigned YES manual down down GigabitEthernet1/2 unassigned YES manual down down Vlan1 unassigned YES manual administratively down down

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

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 #

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 #

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

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 :176.16.2.50 255.255.0.0 to VLAN1 Switch>enable Switch# configure terminal Switch(config)# interface vlan1 Switch(config-if)# ip address 172.16.2.50 255.255.0.0 Switch(config-if)# no shutdown Switch(config-if)# exit

Create Topology & Assign IP

SWITCH CONFIGURATION To Assign An IP Pc # 1 176.16.2.51 255.255.0.0 Pc # 2 176.16.2.52 Pc # 3 176.16.2.53 Pc # 4 176.16.2.54 Pc # 5 176.16.2.55 176.16.2.61 176.16.2.62 176.16.2.63 176.16.2.64 Switch1 > enable Switch1 # configure terminal Switch1(config) # interface vlan1 Switch1(config-if) # ip address 176.16.2.50 255.255.0.0 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 176.16.2.60 255.255.0.0 Switch2(config-if) # no shutdown Switch2(config-if)# exit Switch2(config)#

VLAN Topology

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 2. 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 3. 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

VLAN Verification Command: show vlan

Multi-Switching VLAN Topology / Trunk Port

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

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#

VLAN Verification Command: show vlan

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

How To Place A Server In Your Packet Tracer Network Check Connectivity PC>ping 12.2.0.100 Pinging 12.2.0.100 with 32 bytes of data: Reply from 12.2.0.100: bytes=32 time=1ms TTL=128 Reply from 12.2.0.100: bytes=32 time=0ms TTL=128 Reply from 12.2.0.100: bytes=32 time=12ms TTL=128 Ping statistics for 12.2.0.100: 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

Add Facebook Server In Your Network

Access Your Facebook Server

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