Treinamento HPn-Hk644s.b.00 Lab

download Treinamento HPn-Hk644s.b.00 Lab

of 142

Transcript of Treinamento HPn-Hk644s.b.00 Lab

  • HP LAN Switching Installation and Administration

    Lab Guide

    HK644S B.00

  • HP LAN Switching Installation and Administration

    Lab Guide

    HK644S B.00 Use of this material to deliver training without prior written permission from HP is prohibited.

  • Copyright 2011 Hewlett-Packard Development Company, L.P.

    The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. This is an HP copyrighted work that may not be reproduced without the written permission of HP. You may not use these materials to deliver training to any person outside of your organization without the written permission of HP. UNIX is a registered trademark of The Open Group.

    Export Compliance Agreement

    Export Requirements. You may not export or re-export products subject to this agreement in violation of any applicable laws or regulations.

    Without limiting the generality of the foregoing, products subject to this agreement may not be exported, re-exported, otherwise transferred to or within (or to a national or resident of) countries under U.S. economic embargo and/or sanction including the following countries:

    Cuba, Iran, North Korea, Sudan and Syria.

    This list is subject to change.

    In addition, products subject to this agreement may not be exported, re-exported, or otherwise transferred to persons or entities listed on the U.S. Department of Commerce Denied Persons List; U.S. Department of Commerce Entity List (15 CFR 744, Supplement 4); U.S. Treasury Department Designated/Blocked Nationals exclusion list; or U.S. State Department Debarred Parties List; or to parties directly or indirectly involved in the development or production of nuclear, chemical, or biological weapons, missiles, rocket systems, or unmanned air vehicles as specified in the U.S. Export Administration Regulations (15 CFR 744); or to parties directly or indirectly involved in the financing, commission or support of terrorist activities.

    By accepting this agreement you confirm that you are not located in (or a national or resident of) any country under U.S. embargo or sanction; not identified on any U.S. Department of Commerce Denied Persons List, Entity List, US State Department Debarred Parties List or Treasury Department Designated Nationals exclusion list; not directly or indirectly involved in the development or production of nuclear, chemical, biological weapons, missiles, rocket systems, or unmanned air vehicles as specified in the U.S. Export Administration Regulations (15 CFR 744), and not directly or indirectly involved in the financing, commission or support of terrorist activities.

    Printed in US HP LAN Switching Installation and Administration Lab guide December 2011

  • Contents

    Lab Precautions ..........................................................................................L1 - 1 Initial Notes ...............................................................................................L1 - 2 Lab 1 - Basic System Configuration ...............................................................L1 - 3

    Overview ............................................................................................L1 - 3 Console ..............................................................................................L1 - 4 Management Interface..........................................................................L1 - 6 Telnet..................................................................................................L1 - 7 SSH with Password Authentication ......................................................... L1 - 11 SSH with Public-key Authentication........................................................ L1 - 13 Configuration File Management ........................................................... L1 - 17 TFTP Client Configuration ......................................................................L1 - 18

    Lab 2 - Port and Link Management............................................................... L2 - 1 Overview ........................................................................................... L2 - 1 MAC Address Table ............................................................................ L2 - 2 Manual Port Groups ............................................................................ L2 - 3 Bridge Aggregation Groups ................................................................. L2 - 4

    Lab 3 - VLANs........................................................................................... L3 - 1 Overview ........................................................................................... L3 - 1 Port-based VLANs ............................................................................... L3 - 2 Protocol-based VLANs ......................................................................... L3 - 3 IP Subnet-based VLANs ....................................................................... L3 - 5 MAC Address-based VLANs ................................................................. L3 - 6 Basic QinQ ........................................................................................ L3 - 9

    Lab 4 Layer 2 Topology Management Technologies .................................... L4 - 1 Overview ........................................................................................... L4 - 1 MSTP................................................................................................. L4 - 2 RRPP.................................................................................................. L4 - 5 SmartLink ........................................................................................... L4 - 8

    Lab 5 - IPv4 Basics..................................................................................... L5 - 1 Overview ........................................................................................... L5 - 1 IP Interfaces........................................................................................ L5 - 2 DHCP Client and Server....................................................................... L5 - 4 DHCP Relay ....................................................................................... L5 - 6

    Lab 6 - IPv4 Routing ................................................................................... L6 - 1 Overview ........................................................................................... L6 - 1 Static Routes ....................................................................................... L6 - 3 RIPv2 ................................................................................................. L6 - 5

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. i

  • HP LAN Switching Installation and Administration Professional Training

    OSPF Single Area ............................................................................ L6 - 6 OSPF Case 2: Multi-Area ..................................................................... L6 - 8 OSPF with BFD ..................................................................................L6 - 13 VRRP ................................................................................................L6 - 19

    Lab 7 - IPv4 Multicast Routing ..................................................................... L7 - 1 Overview ........................................................................................... L7 - 1 IGMP................................................................................................. L7 - 2 PIM-DM ............................................................................................. L7 - 6 Multicast VLAN................................................................................... L7 - 9

    Lab 8 - Quality of Service ........................................................................... L8 - 1 Overview ........................................................................................... L8 - 1 Priority Mapping ................................................................................. L8 - 2 Queue Scheduling .............................................................................. L8 - 3 Rate Limiting ....................................................................................... L8 - 3 Traffic Policies ..................................................................................... L8 - 4 Traffic Filtering .................................................................................... L8 - 7 Traffic Mirroring .................................................................................. L8 - 8

    Lab 9 - Security ......................................................................................... L9 - 1 Overview ........................................................................................... L9 - 1 Securing Telnet ................................................................................... L9 - 2 802.1X with Local Authentication........................................................... L9 - 4 Local MAC Authentication .....................................................................L9 - 6

    Lab 10 - Network Management .................................................................. L10 - 1 Overview .......................................................................................... L10 - 1 Local Port Mirroring ............................................................................ L10 - 2 Remote Port Mirroring ......................................................................... L10 - 4 LLDP ................................................................................................. L10 - 7

    Lab 11 IRFv2 ......................................................................................... L11 - 1 HP A5500-EI/A5800 Series................................................................ L11 - 1 HP A7500/A9500/A12500 Series .................................................... L11 - 11

    ii 2011 Hewlett-Packard Development Company, L.P. hk644s b.00

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 1

    Lab Precautions

    ! CAUTION: Electrostatic discharge (ESD) can damage static-sensitive devices on modules. Follow these precautions when you handle a module.

    Do not remove a module from its antistatic bag until you are ready to inspect or install it.

    Handle the module by the faceplate only.

    Use proper grounding techniques when you install a module. These techniques include wearing a grounded static discharge wrist strap, or touching a grounded source just before you handle the module.

    WARNING: Do not look into the end of a fiber optic cable or fiber optic port.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 2

    Initial Notes

    1. Groups Unless stated differently in the instructions of a particular exercise, students will work in groups of two.

    Each group will work with one Switch A5500 and one A7500 2. Port numbering

    As the actual port numbers in switches and modules used can vary from class to class.

    In these switches the notation for the ethernet ports is: s/ss/n, where

    s is the slot number (always 1) ss is the subslot number (always 0) n is the port number within the slot/subslot

    In this LAB Guide you will need to replace the slot number in the given instructions.

    3. System prompt In this guide a generic system prompt will be used:

    and [switch]

    and it will correspond to

    and [A5500] or and [A7500]

    respectively.

    4. Example: The following LAB Guide instruction: [switch]interface gig s/0/10

    must be written in a switch:

    [A5500]interface GigabitEthernet 1/0/10 or

    [A7500]interface GigabitEthernet 1/0/10

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 3

    Lab 1 - Basic System Configuration

    Overview

    In this lab, you will:

    Connect to the switchs management interface using the console port

    Configure the management interfaces IP address

    Configure and test Telnet

    SSH in Password Authentication Mode

    SSH in Public Key Authentication Mode

    Save the configuration and manage the Configuration File

    PC1 Switch 1

    Et he gi

    Ethernet Cable

    Serial port

    Console Cable Console

    port

    PC2 Et he Ethernet Cable

    Switch 2

    g

    Serial port

    Console Cable Console port

    Figure 2.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 4

    Console

    1) Connect the console cable a) cables RJ45 connector switchs console port b) cables DB9 connector PCs serial port

    Note: - If the PC does not have a serial port, you need to use a USB-Serial adapter cable

    2) Configure the terminal emulation program Notes: - The following instructions are for Windows HyperTerminal. - If you want to use a different terminal emulation utility, please locate its configuration menu

    and enter the parameters detailed in Table 2.1. a) Open HyperTerminal b) In the File menu select: Properties c) In the Configure Using box select the COM port you will use and click on the

    Configure button

    d) Complete the COM Properties configuration form using the parameters shown in Table 2.1:

    Switch SA7500

    Baud Rate 9600

    Data Bits 8

    Parity None

    Stop Bits 1

    Flow Control None

    Table 2.1 Console Port Parameters

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 5

    e) click on the OK button f) close the Properties window

    3) Turn on the Switch and observe the messages that appear on the screen. Wait until the following prompt appears:

    Press enter to start

    4) Press enter i) No login is necessary by default ii) the prompt will appear

    b) Enter the system view

    system [switch]

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 6

    Management Interface

    1) Configure the IP addresses and parameters of the devices using the values shown in Table 2.2

    IP address Mask Length Default Gateway

    Switch 1 10.0.1.1 24

    PC1 10.0.1.101 24 10.0.1.1

    Switch 2 10.0.1.2 24

    PC2 10.0.1.102 24 10.0.1.2

    Table 2.2

    a) Switchs management interface (VLAN 1) [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.n 24 where n is the Switch number

    b) PCs: follow the standard procedure to configure the IP parameters

    c) Verify [switch]display ip interface

    d) Test i) Open a command line window (cmd) in windows ii) Enter: c:\>ping 10.0.1.n where n is the Switch number

    iii) Leave the cmd window open and return to HyperTerminal

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 7

    Telnet

    1) Enable telnet [switch]telnet server enable

    2) Configure Password authentication a) Set the authentication mode for telnet [switch]user-interface vty 0 4 [switch-ui-vty0-4]authentication-mode password

    [switch-ui-vty0-4]set authentication password simple pass [switch-ui-vty0-4]user privilege level 0

    [switch-ui-vty0-4]quit

    3) Verify [switch]display user-interface vty 0

    4) Test a) In the command line window (cmd) enter: c:\>telnet 10.0.1.n

    where n is the Switch number

    b) Login by entering the password password: pass

    c) at the system prompt try to enter the system view system

    what happened?

    d) Logout and close the telnet session quit

    e) Leave the cmd window open and return to HyperTerminal

    5) Configure the super password with privilege level 3 [switch]super password level 3 simple super

    a) Test i) In the command line window (cmd) enter: c:\>telnet 10.0.1.n where n is the Switch number

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 8

    b) Login by entering the password

    password: pass

    c) Switch to super level super at the prompt enter the super password: super

    d) Try to enter the system view system what happened?

    e) Return to user view, logout and close the telnet session

    [switch]quit quit

    f) Leave the cmd window open and return to HyperTerminal

    6) Configure Local Scheme authentication

    a) Change the authentication mode [switch]user-interface vty 0 4 [switch-ui-vty0-4]authentication-mode scheme

    [switch-ui-vty0-4]display this [switch-ui-vty0-4]quit [switch]display user-interface vty 0

    b) Create a new user: i) username: level0 ii) password: 12345 iii) user level: 0 [switch]local-user level0 New local user added [switch-luser-level0]service-type telnet

    [switch-luser-level0]authorization-attribute level 0 [switch-luser-level0]password simple 12345 [switch-luser-level0]quit NOTE: depending on the software release

    The following commands: [switch-luser-level0]service-type telnet [switch-luser-level0]authorization-attribute level 0

    Must be replaced by: [switch-luser-level0]service-type telnet level 0

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 9

    c) Create a new user:

    i) username: level3

    ii) password: 12345 iii) user level: 3 [switch]local-user level3 New local user added [switch-luser-level3]service-type telnet

    [switch-luser-level3]authorization-attribute level 3 [switch-luser-level3]password simple 12345 [switch-luser-level3]quit NOTE: depending on the software release

    The following commands: [switch-luser-level0]service-type telnet [switch-luser-level0]authorization-attribute level 3

    Must be replaced by: [switch-luser-level0]service-type telnet level 3

    d) Test i) In the command line window (cmd) enter: c:\>telnet 10.0.1.n where n is the Switch number

    ii) Login as user level3 username: level3 password: 12345

    iii) Try to enter the system view system what happened?

    iv) Return to user view, logout and close the telnet session [switch]quit quit

    v) In the command line window (cmd) enter: c:\>telnet 10.0.1.n where n is the Switch number

    vi) Login as user level0 username: level0 password: 12345

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 10

    vii) Try to enter system view system

    what happened?

    viii) Switch to super level super at the prompt enter the super password: super

    ix) Enter system view system what happened?

    x) Return to user view, logout and close the telnet session [switch]quit quit

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 11

    SSH with Password Authentication

    1) Configure SSH using password authentication a) Enable SSH Server and define the inbound protocol of VTYs 0-4 as SSH only

    [switch]ssh server enable Info: Enable SSH server.

    [switch]user-interface vty 0 4 [switch-ui-vty0-4]authentication-mode scheme [switch-ui-vty0-4]protocol inbound ssh [switch-ui-vty0-4]quit

    b) Create the public key [switch]public-key local create rsa The range of public key size is (512 ~ 2048). NOTES: If the key modulus is greater than 512, It will take a few minutes. Press CTRL+C to abort. Input the bits of the modulus[default = 1024]: Generating Keys...

    c) Create a local user [switch]local-user sshu New local user added. [switch-luser-sshu]service-type ssh

    [switch-luser-sshu]authorization-attibute level 3 [switch-luser-sshu]password simple sshu [switch-luser-sshu]quit

    NOTE: depending on the software release The following commands: [switch-luser-level0]service-type ssh [switch-luser-level0]authorization-attribute level 3

    Must be replaced by: [switch-luser-level0]service-type ssh level 3

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 12

    d) Define the service type of the user as telnet with password authentication

    Note: the same configuration can be user for SFTP

    [switch]ssh user sshu service-type stelnet authentication-type password

    e) Start the SSH Client, i) enter the server IP address (Host Name), ii) select SSH and iii) click Open

    Figure 10.2

    iv) Ignore the following Alert window

    Figure 10.3

    v) and Login as user: sshu with password: sshu

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 13

    SSH with Public-key Authentication 1) Configure SSH using public key authentication

    a) undo the ssh user [switch]undo ssh user sshu

    b) Generate an RSA key pair (using the client software) on the client, save the public key in a file named key.pub, and then upload the file to the SSH server through FTP or TFTP

    c) Run PuTTYGen.exe, choose SSH-2 RSA and click Generate.

    Figure 10.4

    d) While generating the key pair, you must move the mouse continuously and keep the mouse off the green process bar.

    e) After the key pair is generated

    Figure 10.5

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 14

    i) click Save public key to save the key in a file: key.pub in the desktop folder ii) click Save private key to save the key in a file: private.ppk in the desktop folder iii) Close Puttygen.exe

    f) Transfer the key.pub file to the switch using TFTP i) Open the 3CServer in PC1 and point it to the folder in which you saved the SSH

    keys (desktop).

    ii) Go to the user view and get the file: [switch] quit tftp 10.0.1.100 get key.pub

    iii) Verify: dir Directory of flash:/ 0 -rw- 10319701 Apr 30 2008 09:44:16

    s7900eg-cmw520-r2101.bin 1 -rw- 294 Apr 26 2000 13:08:30 key.pub

    g) Return to system view system

    h) Import the remote public key from the file key.pub. [switch] public-key peer client import sshkey key.pub

    i) Specify the authentication type for user sshu as publickey, and assign the public key client for the user.

    [switch]ssh user sshu service-type stelnet authentication-type publickey assign publickey client

    j) Connect PC 1:

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 15

    i) and click open:

    Figure 10.6

    Figure 10.7

    k) Disconnect the SSH session (the SSH window will close automatically) quit

    2) Delete the public key file [switch]quit delete /unreserved key.pub The contents cannot be restored!!! Delete flash:/key.pub?[Y/N]:y

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 16

    Deleting a file permanently will take a long time. Please wait..... %Delete file flash:/key.pub...Done.

    3) And reboot the switch.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 17

    Configuration File Management

    1) Display the current and saved configuration (any view) display startup display saved-configuration

    display current-configuration

    2) Save the current configuration and activate it save test.cfg dir

    display startup startup saved-configuration test.cfg

    display startup display saved-configuration

    3) Test the saved configuration a) Reboot the switch

    reboot

    b) Login

    c) Display the current configuration (any view)

    dir display current-configuration

    d) Ping the switch from your PC

    e) Reset the configuration (return the switch to factory default) reset saved-configuration

    f) Test the saved configuration i) Reboot the switch reboot

    ii) Login

    iii) Display the current configuration (any view) dir display current-configuration

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 18

    TFTP Client Configuration

    1) Return both switches to factory default

    gig s/0/1

    Figure 12.2

    a) Configure the IP addresses according to table 12.1

    Device Interface IP Address

    Mask Length

    Switch VLAN 1 10.0.1.1 24

    PC Ethernet 10.0.1.100 24

    Table 12.1

    b) Configure the IP address of VLAN 1s interface [switch]interface vlan 1 [switch-vlan1-interface]ip address 10.0.1.1 24

    c) Configure the IP address of the PC (test by sending pings to the switch)

    d) Generate the Diagnostics File display diagnostic-information

    Note: this file contains all the current information of the switch, and it is especially useful when requesting technical support.

    i) Answer yes to the Save or display ... prompt. ii) Accept the default file name: default.diag

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 19

    e) Start the TFTP Server in the PC

    i) If you dont have one, ask the instructor to provide the 3CServer.exe ii) Ensure that the TFTP server is enabled

    iii) Configure the TFTP Server to store the received file on the desktop.

    f) Copy the diagnostics file to the PC using tftp tftp 10.0.1.100 put default.diag

    g) Verify : i) Go to the TFTP server window and that the transmission finishes successfully. ii) In the PC, open the file using WordPad.

    h) Delete the diagnostics file delete /unreserved default.diag

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L1 - 20

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 1

    Lab 2 - Port and Link Management

    Overview

    In this lab, you will:

    Analyze the MAC address table and create MAC address blackholes

    Configure Manual Port Groups and perform group-wide configurations

    Create Manual and Static Link Aggregation Groups

    Switch 1 Switch 2

    gig s/0/1 gig s/0/10

    gig s/0/10

    gig s/0/1

    PC1 PC2

    Figure 3-1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 2

    MAC Address Table

    1) Configure the IP addresses of the PCs and Switches according to Table 3.1

    Device Interface IP address Mask Length Def. Gw. Switch 1 VLAN 1 10.0.1.1 24

    Switch 2 VLAN 1 10.0.1.2 24

    PC1 Ethernet 10.0.1.101 24 10.0.1.1 PC2 Ethernet 10.0.1.102 24 10.0.1.1

    Table 3.1

    2) MAC address table (using the console) a) Display the MAC address table (in system view)

    [switch]display mac-address

    b) Run pings from each PC to the other PC and to the Switchs management address C:\>ping 10.0.1.1 C:\>ping 10.0.1.2

    c) Display the MAC address table (in system view) and find the MAC address of each PC: [switch]display mac-address

    mac-add-pc1 : :

    mac-add-pc2 : :

    3) MAC address blackhole a) Create a blackhole for PC 2s MAC Address

    [switch]mac-address blackhole vlan 1 [switch]mac-address blackhole vlan 1

    b) Test sending Pings from PC 1 to PC 2

    c) Undo the blackholes [switch]undo mac-address blackhole vlan 1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 3

    Manual Port Groups

    4) Manual Port Groups a) Create a manual port group

    i) Name: group1 ii) Members: gig s/0/5-6 [switch]display interface gig s/0/5 [switch]display interface gig s/0/6 [switch]port-group manual group1 [switch-port-group-manual-group1]group-member gig s/0/5 to gig

    s/0/6

    b) Verify [switch-port-group-manual-group1]display this [switch-port-group-manual-group1]display port-group manual name group1

    c) Test the group mechanism by changing some port settings [switch-port-group-manual-group1]broadcast-suppression 50 [switch-port-group-manual-group1]jumboframe enable 2000 [switch-port-group-manual-group1]quit [switch]display interface gig s/0/5 [switch]display interface gig s/0/6

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 4

    Bridge Aggregation Groups

    PC 1 Switch 1 Switch 2 PC 2

    gig s/0/1 gig s/0/1

    1) Create a static aggregation group with ports gig s/0/8-gig s/0/10 [switch]interface bridge-aggregation 1 [switch-Bridge-Aggregation]quit [switch]interface gig s/0/8 [switch-gigs/0/8]port link-aggregation group 1

    [switch-gigs/0/8]interface gig s/0/9 [switch-gigs/0/9]port link-aggregation group 1 [switch-gigs/0/9]interface gig s/0/10 [switch-gigs/0/10]port link-aggregation group 1

    [switch-gigs/0/10]quit

    d) Test i) When step d) has been completed at both switches ii) Connect ports 8, 9 and 10 on one switch to ports 8, 9 and 10 on the other switch iii) Verify [switch]display link-aggregation summary [switch]display link-aggregation verbose

    iv) Discuss with your lab partner the following two commands: [switch]display link-aggregation load-sharing mode [switch]link-aggregation load-sharing mode ?

    e) Disconnect all links between the switches and undo the Manual Aggregation group [switch]undo interface bridge-aggregation 1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 5

    2) Create a dynamic aggregation group with the same ports [switch]interface bridge-aggregation 1 [switch-Bridge-Aggregation]link-aggregation mode dynamic [switch-Bridge-Aggregation]quit [switch]interface gig s/0/8 [switch-gigs/0/8]port link-aggregation group 1 [switch-gigs/0/8]interface gig s/0/9 [switch-gigs/0/9]port link-aggregation group 1

    [switch-gigs/0/9]interface gig s/0/10 [switch-gigs/0/10]port link-aggregation group 1

    f) Test i) When step d) has been completed at both switches ii) Connect ports 8, 9 and 10 on one switch to ports 8, 9 and 10 on the other switch iii) Verify [switch]display link-aggregation summary [switch]display link-aggregation verbose

    g) Disconnect all links between the switches and undo the Manual Aggregation group [switch] undo interface bridge-aggregation 1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L2 - 6

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 1

    1 gig

    0/10 gi

    Lab 3 - VLANs

    Overview

    In this lab, you will:

    Create Port-based VLANs

    Create Protocol-based VLANs

    Create IP-subnet-based VLANs

    Create MAC-address-based VLANs

    Configure Basic QinQ

    Switch 1 Switch 2

    gig s/0/ s/0/10 gig s/ g s/0/1

    PC1 PC2 gig s/0/5 gig s/0/5

    Figure 4.1

    Device Interface IP address Mask Length Def. Gw. Switch 1 VLAN 1 10.0.1.1 24

    Switch 2 VLAN 1 10.0.1.2 24

    PC1 Ethernet 10.0.1.101 24 10.0.1.1 PC2 Ethernet 10.0.1.102 24 10.0.1.1

    Table 4.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 2

    Port Link-Type Switch 1 Switch 2

    gig s/0/1 Access Port VLAN 1 VLAN 1

    gig s/0/5 Access Port VLAN 2 VLAN 2

    gig s/0/10

    Trunk Port

    VLAN 1 Untagged VLAN 1 Untagged

    VLAN 2 Tagged VLAN 2 Tagged

    Port-based VLANs

    Table 4.2

    1) Create Port Based VLANs according to figure 4.1, table 4.1 and 4.2 a) Enter the management IP address (VLAN 1)

    [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.g 24 [switch-interface-vlan1]quit

    b) Create VLAN 2 and assign port gig s/0/5 as an access port [switch]vlan 2 [switch-vlan2]port gig s/0/5 [switch-vlan2]quit

    c) Configure port gig s/0/10 as trunk and configure its VLANs [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all [switch-gigs/0/10]quit

    d) Verify the configuration [switch]display interface gig s/0/5 [switch]display interface gig s/0/10 [switch]display vlan all

    e) Test the configuration i) Connect a PC to port gig s/0/1 of each switch and ping the other PC and each

    switch

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 3

    ii) Connect a PC to port gig s/0/5 of each switch and ping the other PC and each switch

    iii) Analyze the results and discuss them with the other group members

    f) Undo port link-type trunk in port gig s/0/10 [switch-gigs/0/10]undo port link-type

    g) Undo VLAN 2 [switch]undo vlan 2

    Protocol-based VLANs 1) Configure IPv6 in your PC and setup the IPv6 link-local address of your ethernet card

    a) Open a cmd window C:\>ipv6 install

    b) Create VLAN 2 and 3, configure them protocol based VLANs and assign IPv4 as the protocol for VLAN 2 and IPv6 as the protocol for VLAN 3 [switch]vlan 2 [switch-vlan2]protocol-vlan ipv4 [switch-vlan2]quit [switch]vlan 3 [switch-vlan3]protocol-vlan ipv6 [switch-vlan3]quit

    c) Configure the ports according to table 4.3

    Port Link-Type Switch 1 Switch 2

    gig s/0/1 Access Port VLAN 1 VLAN 1 gig s/0/5

    Hybrid Port

    VLAN 1 untagged VLAN 1 untagged

    VLAN 2 untagged VLAN 2 untagged

    VLAN 3 untagged VLAN 3 untagged

    gig s/0/10 Trunk Port VLAN all VLAN all

    Table 4.3

    [switch]interface gig s/0/5

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 4

    [switch-gigs/0/5]port link-type hybrid [switch-gigs/0/5]port hybrid vlan 1 2 3 untagged [switch-gigs/0/5]port hybrid pvid vlan 1 [switch-gigs/0/5]port hybrid protocol-vlan vlan 2 all [switch-gigs/0/5]port hybrid protocol-vlan vlan 3 all [switch-gigs/0/5]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all [switch-gigs/0/10]quit

    d) Verify the configuration [switch]display vlan all [switch]display protocol-vlan interface gig s/0/5 [switch]display protocol-vlan interface all

    e) Test the configuration i) Connect each PC to port 1 of the corresponding switch and ping the other PC

    and each switch. ii) Repeat sending ping6 (ping for IPv6) to the other PC. iii) Connect each PC to port 5 of the corresponding switch and ping the other PC

    and each switch. iv) Repeat sending ping6 (ping for IPv6) to the other PC. v) Analyze the results of the pings

    f) Return ports gig s/0/5 and gig s/0/10 to VLAN 1 as access ports [switch-gigs/0/5]undo port hybrid protocol-vlan all [switch-gigs/0/5]undo port link-type [switch-gigs/0/10]undo port hybrid protocol-vlan all

    [switch-gigs/0/10]undo port link-type

    g) Undo VLAN 2 and 3 [switch]vlan 2 [switch-vlan2]undo protocol-vlan all [switch-vlan2]quit [switch]undo vlan 2 [switch]vlan 3

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 5

    [switch-vlan3]undo protocol-vlan all [switch-vlan3]quit [switch]undo vlan 3

    IP Subnet-based VLANs 1) Create IP-subnet-based VLANs

    a) Create VLAN 2 and VLAN 3 and configure them as IP Subnet-based VLANs [switch]vlan 2 [switch-vlan2]ip-subnet-vlan ip 10.0.2.0 255.255.255.0 [switch-vlan2]quit [switch]vlan 3 [switch-vlan3]ip-subnet-vlan ip 10.0.3.0 255.255.255.0 [switch-vlan3]quit

    b) Configure the ports according to table 4.3 Port Link-Type Switch 1 Switch 2

    gig s/0/1 Access Port VLAN 1 VLAN 1

    gig s/0/5

    Hybrid Port

    VLAN 1 untagged VLAN 1 untagged

    VLAN 2 untagged VLAN 2 untagged

    VLAN 3 untagged VLAN 3 untagged

    gig s/0/10 Trunk Port VLAN all VLAN all

    Table 4.3

    [switch]interface gig s/0/5 [switch-gigs/0/5]port link-type hybrid [switch-gigs/0/5]port hybrid vlan 1 2 3 untagged [switch-gigs/0/5]port hybrid pvid vlan 1 [switch-gigs/0/5]port hybrid ip-subnet-vlan vlan 2 [switch-gigs/0/5]port hybrid ip-subnet-vlan vlan 3 [switch-gigs/0/5]display this [switch-gigs/0/5]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 6

    [switch-gigs/0/10]quit

    c) Verify the configuration [switch]display vlan all [switch]display ip-subnet-vlan interface gig s/0/5 [switch]display ip-subnet-vlan interface all

    d) Test the configuration i) Connect each PC to port 1 of the corresponding switch and ping the other PC

    and each switch. ii) Connect each PC to port 5 of the corresponding switch and ping the other PC

    and each switch. iii) Change the IP address of each PC to 10.0.2.1g1 and 10.0.2.1g2 respectively and

    restart the pings. iv) Analyze the results of the pings

    e) Return ports gig s/0/5 and gig s/0/10 to VLAN 1 as access ports and delete VLAN 2. Take all the necessary steps.

    MAC Address-based VLANs 1) Create MAC-address-based VLANs

    a) Get the MAC address of each PCs ethernet card: [switch]display mac-address

    mac-add-pc1 : :

    mac-add-pc2 : :

    b) Create VLAN 2 and configure it as a MAC-address-based VLAN [switch]vlan 2 [switch-vlan2]quit

    (mac-address must be in the format: 1122-3344-5566) [switch]mac-vlan mac-address mac-add-pc1 vlan 2 [switch]mac-vlan mac-address mac-add-pc2 vlan 2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 7

    c) Configure the ports according to table 4.4 Port Link-Type Switch 1 Switch 2

    gig s/0/1 Access Port VLAN 1 VLAN 1

    gig s/0/5

    Hybrid Port

    VLAN 1 untagged VLAN 1 untagged

    VLAN 2 untagged VLAN 2 untagged

    VLAN 3 untagged VLAN 3 untagged

    gig s/0/10 Trunk Port VLAN all VLAN all

    Table 4.4

    [switch]interface gig s/0/5 [switch-gigs/0/5]port link-type hybrid [switch-gigs/0/5]port hybrid vlan 1 2 untagged [switch-gigs/0/5]port hybrid pvid vlan 1 [switch-gigs/0/5]mac-vlan enable [switch-gigs/0/5]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all [switch-gigs/0/10]quit

    d) Verify the configuration [switch]display vlan all [switch]display mac-vlan all

    e) Test the configuration i) Connect each PC to port 1 of the corresponding switch and ping the other PC

    and each switch. ii) Connect each PC to port 5 of the corresponding switch and ping the other PC

    and each switch. iii) Analyze the results of the pings

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 8

    f) Verify the configuration

    [switch]display vlan all

    [switch]display mac-vlan all

    g) Return ports gig s/0/5 and gig s/0/10 to VLAN 1 as access ports and delete VLAN 2.

    Take all the necessary steps.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 9

    Basic QinQ 1) Working with another group create a basic QinQ network

    VLAN1

    gig s/0/1

    Customer VLANs

    gig s/0/10

    Service VLAN

    Customer VLANs

    gig s/0/10

    VLAN1

    gig s/0/1

    gig s/0/5 gig s/0/10

    gig s/0/1

    gig s/0/1 gig s/0/10 gig s/0/5

    VLAN5 Switch 3

    Switch 1 Switch 2 Switch4 VLAN5

    Figure 4.2

    a) Configure Switch 3 and Switch 4 according to table 4.6

    Port Link-Type Switch 3 and 4

    gig s/0/1 Access Port VLAN 1

    gig s/0/5 Access Port VLAN 5

    gig s/0/10 Trunk Port VLAN 1 and 5

    [switch]vlan 5

    Table 4.6

    [switch-vlan5]port gig s/0/5 [switch-vlan5]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan 1 5 [switch-gigs/0/10]port trunk pvid vlan 1 [switch-gigs/0/10]quit

    b) Configure Switch 1 and Switch 2 according to table 4.7 Port Link-Type Switch 1 and 2

    gig s/0/1 Trunk Port VLAN all

    gig s/0/10 Access Port w/ qinq enabled VLAN 101

    [switch]vlan 101

    Table 4.7

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L3 - 10

    [switch-vlan101]port gig s/0/10 [switch-vlan101]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]qinq enable [switch-gigs/0/10]quit

    [switch]interface gig s/0/1 [switch-interface-gigs/0/1]jumboframe enable [switch-interface-gigs/0/1]port link-type trunk [switch-interface-gigs/0/1]port trunk permit vlan all [switch-interface-gigs/0/1]quit

    c) Verify: make sure that VLAN 1 and 5 are not being transported between switches 1 and 2 . In switches 1 and 2: [switch]display vlan all

    d) Test Send pings between PCs in VLAN 1. Send pings between PCs in VLAN 5.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 1

    Lab 4 Layer 2 Topology Management Technologies

    Overview

    In this lab, you will:

    Create an MSTP network

    Create an RRPP network

    Create a SmartLink

    PC1 PC2

    gig s/0/5 gig s/0/5

    gig s/0/1 Switch 1 Switch 2

    gig s/0/10 gig s/0/10 gig s/0/1

    gig s/0/1 gig s/0/1

    gig s/0/10

    Switch 4 Switch 3 gig s/0/10

    gig s/0/5 gig s/0/5

    PC4 PC3

    Figure 5.1

    Device Interface IP address Mask Length Def. Gw. Switch 1 VLAN 1 10.0.1.1 24

    PC1 Ethernet 10.0.1.101 24 10.0.1.1 Switch 2 VLAN 1 10.0.1.2 24

    PC2 Ethernet 10.0.1.102 24 10.0.1.1 Switch 3 VLAN 1 10.0.1.3 24

    PC3 Ethernet 10.0.1.103 24 10.0.1.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 2

    Switch 4 VLAN 1 10.0.1.4 24

    PC4 Ethernet 10.0.1.104 24 10.0.1.1 Table 5.1

    MSTP 1) Create an MSTP Network according to Figure 5.1

    a) Configure the IP addresses according to Table 5.1

    b) Create VLANs 101-104 [switch]vlan 101 [switch-vlan101]vlan 102 [switch-vlan102]vlan 103 [switch-vlan103]vlan 104 [switch-vlan104]quit

    c) Configure the trunk ports to permit VLANs 101-104 [switch]interface gig s/0/1 [switch-gigs/0/1]port link-type trunk [switch-gigs/0/1]port trunk permit vlan 101 102 103 104 [switch-gigs/0/1]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan 101 102 103 104 [switch-gigs/0/10]quit

    d) Configure the MSTP region with name region1. [switch]stp region-configuration [switch-mst-region]region-name region1

    e) Create and configure four MST instances according to Table 5.2

    Instance Mapped to Primary Root

    Secondary Root

    1 VLAN 101 Switch 1 Switch 2 2 VLAN 102 Switch 2 Switch 3

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 3

    3 VLAN 103 Switch 3 Switch 4 4 VLAN 104 Switch 4 Switch 1

    Table 5.2

    [switch-mst-region]instance 1 vlan 101[switch-mst-region]instance 2 vlan 102[switch-mst-region]instance 3 vlan 103[switch-mst-region]instance 4 vlan 104[switch-mst-region]revision-level 1

    [switch-mst-region]check region-configuration [switch-mst-region]active region-configuration [switch-mst-region]quit

    i) Switch 1 only [switch]stp instance 1 root primary [switch]stp instance 2 root secondary

    ii) Switch 2 only [switch]stp instance 2 root primary [switch]stp instance 3 root secondary

    iii) Switch 3 only [switch]stp instance 3 root primary [switch]stp instance 4 root secondary

    iv) Switch 4 only [switch]stp instance 4 root primary [switch]stp instance 1 root secondary

    f) Configure port gig s/0/5 as an stp edge port [switch]interface gig s/0/5 [switch-gigs/0/5]stp edge-port enable [switch-gigs/0/5]quit

    g) Enable stp [switch]stp enable

    h) Connect Ports 1 and 10 to the previous and next switch in the ring.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 4

    i) Verify the MSTP status [switch]display stp root [switch]display stp brief [switch]display stp instance 1 (repeat for all instances)

    [switch]display stp interface gig s/0/1 [switch]display stp interface gig s/0/10

    j) Disconnect each switch from the ring and return it to factory default [switch]quit reboot

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 5

    RRPP

    1) Create an RRPP Network according to Figure 5.1 a) Configure the IP addresses according to Table 5.1

    b) Configure the Master Node (Switch 1):

    i) Configure ports gig s/0/1 and gig s/0/10 as trunk ports and disable stp [switch]interface gig s/0/1 [switch-gigs/0/1]port link-type trunk [switch-gigs/0/1]port trunk permit vlan all [switch-gigs/0/1]port trunk pvid vlan 1 [switch-gigs/0/1]stp disable [switch-gigs/0/1]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all [switch-gigs/0/10]port trunk pvid vlan 1 [switch-gigs/0/10]stp disable [switch-gigs/0/10]quit

    ii) Create the RRPP domain, associate the control VLAN, and define the switch as the master node

    [switch]rrpp domain 1 [switch-domain1]control-vlan 1000 Note: the control vlan is created in this step and should not exist previously [switch-domain1]protected-vlan reference-instance 0 [switch-domain1]ring 1 node-mode master primary-port gig s/0/1

    secondary-port gig s/0/10 level 0 [switch-domain1]ring 1 enable [switch-domain1]quit [switch]rrpp enable

    c) Configure the Transit Nodes (Switches 2, 3 and 4): i) Configure ports gig s/0/1 and gig s/0/10 as trunk ports and disable stp [switch]interface gig s/0/1 [switch-gigs/0/1]port link-type trunk

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 6

    [switch-gigs/0/1]port trunk permit vlan all [switch-gigs/0/1]port trunk pvid vlan 1 [switch-gigs/0/1]stp disable [switch-gigs/0/1]quit

    [switch]interface gig s/0/10 [switch-gigs/0/10]port link-type trunk [switch-gigs/0/10]port trunk permit vlan all [switch-gigs/0/10]port trunk pvid vlan 1 [switch-gigs/0/10]stp disable [switch-gigs/0/10]quit

    ii) Create the RRPP domain, associate the control VLAN, and define the switch as the transit node

    [switch]rrpp domain 1 [switch-domain1]control-vlan 1000 [switch-domain1]protected-vlan reference-instance 0 [switch-domain1]ring 1 node-mode transit primary-port gig s/0/1

    secondary-port gig s/0/10 level 0 [switch-domain1]ring 1 enable [switch-domain1]quit [switch]rrpp enable

    d) Connect the ring and verify and test i) Verify the master nodes configuration [switch]display rrpp brief [switch]display rrpp verbose domain 1

    ii) Verify each transit nodes configuration [switch]display rrpp brief [switch]display rrpp verbose domain 1

    e) Test i) Disconnect the secondary port of one of the transit nodes and

    (1) at the master node [switch]display rrpp brief [switch]display rrpp verbose domain 1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 7

    (2) at each transit node [switch]display rrpp brief [switch]display rrpp verbose domain 1

    ii) Reconnect the secondary port of one of the transit nodes and (1) at the master node [switch]display rrpp brief [switch]display rrpp verbose domain 1 [switch]display rrpp statistics domain 1

    (2) at each transit node [switch]display rrpp brief [switch]display rrpp verbose domain 1 [switch]display rrpp statistics domain 1

    b) Disconnect each switch from the ring and return it to factory default [switch]quit reboot

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 8

    SmartLink

    1) Return all switches to factory default 2) Configure the Access Layer Switch (SwitchA)

    a) Enter system view system-view

    b) Prepare the VLANs for load balancing (observe that you are using the same commands as in MSTP), and configure the ports to be used for Smartlink as trunks. [SwitchA]vlan 2 to 200 [SwitchA]stp region-configuration [SwitchA-stp-region]instance 0 vlan 1 to 100

    [SwitchA-stp-region]instance 2 vlan 101 to 200 [SwitchA-stp-region]active region-configuration [SwitchA-stp-region]quit [SwitchA]int gig 1/0/1 [SwitchA-interface-gig1/0/1]stp disable [SwitchA-interface-gig1/0/1]port link-type trunk [SwitchA-interface-gig1/0/1]port trunk permit vlan all [SwitchA-interface-gig1/0/1]quit [SwitchA]int gig 1/0/2 [SwitchA-interface-gig1/0/2]stp disable [SwitchA-interface-gig1/0/2]port link-type trunk [SwitchA-interface-gig1/0/2]port trunk permit vlan all [SwitchA-interface-gig1/0/2]quit

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 9

    c) Configure SmartLink [SwitchA]smart-link group 1 [SwitchA-smartlink1]protected-vlan reference-instance 0

    what is a "protected vlan"? [SwitchA-smartlink1]port gig 1/0/1 master [SwitchA-smartlink1]port gig 1/0/2 slave [SwitchA-smartlink1]preemption mode role

    what is "preemption mode"? [SwitchA-smartlink1]flush enable control-vlan 100 [SwitchA-smartlink1]quit [SwitchA]smart-link group 2 [SwitchA-smartlink2]protected-vlan reference-instance 2 [SwitchA-smartlink2]port gig 1/0/2 master [SwitchA-smartlink2]port gig 1/0/1 slave [SwitchA-smartlink2]preemption mode role

    what is a "flush vlan"? [SwitchA-smartlink2]flush enable control-vlan 101 [SwitchA-smartlink2]quit [SwitchA]quit

    3) Configure the first Aggregation Layer Switch (SwitchB1) a) Enter system view

    system-view b) Prepare the VLANs for load balancing (observe that you are using the same

    commands as in MSTP), and configure the ports to be used for Smartlink as trunks. [SwitchB1]vlan 2 to 200 [SwitchB1]int gig 1/0/1 [SwitchB1-interface-gig1/0/1]port link-type trunk [SwitchB1-interface-gig1/0/1]port trunk permit vlan all [SwitchB1-interface-gig1/0/1]smart-link flush enable

    control-vlan 100 101

    [SwitchB1-interface-gig1/0/1]quit [SwitchB1]int gig 1/0/24 [SwitchB1-interface-gig1/0/24]port link-type trunk [SwitchB1-interface-gig1/0/24]port trunk permit vlan all [SwitchB1-interface-gig1/0/24]smart-link flush enable

    control-vlan 100 101

    [SwitchB1-interface-gig1/0/24]quit

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 10

    4) Configure the second Aggregation Layer Switch (SwitchB2) a) Enter system view

    system-view [SwitchB2]vlan 2 to 200 [SwitchB2]int gig 1/0/1 [SwitchB2-interface-gig1/0/1]port link-type trunk [SwitchB2-interface-gig1/0/1]port trunk permit vlan all [SwitchB2-interface-gig1/0/1]smart-link flush enable

    control-vlan 100 101

    [SwitchB2-interface-gig1/0/1]quit [SwitchB2]int gig 1/0/24 [SwitchB2-interface-gig1/0/24]port link-type trunk [SwitchB2-interface-gig1/0/24]port trunk permit vlan all [SwitchB2-interface-gig1/0/24]smart-link flush enable

    control-vlan 100 101

    [SwitchB2-interface-gig1/0/24]quit

    5) Configure the Core Layer Switch (SwitchC) a) Enter system view and complete the configuration

    system-view [SwitchC]vlan 2 to 200 [SwitchC]int gig 1/0/1 [SwitchC-interface-gig1/0/1]port link-type trunk [SwitchC-interface-gig1/0/1]port trunk permit vlan all [SwitchC-interface-gig1/0/1]smart-link flush enable

    control-vlan 100 101

    [SwitchC-interface-gig1/0/1]quit [SwitchC]int gig 1/0/3 [SwitchC-interface-gig1/0/3]port link-type trunk [SwitchC-interface-gig1/0/3]port trunk permit vlan all [SwitchC-interface-gig1/0/3]smart-link flush enable

    control-vlan 100 101

    [SwitchC-interface-gig1/0/3]quit

    6) Verify configuration a) Connect console to SwitchA

    i) Disconnect cable from port gig 1/0/1 of SwitchA ii) Read messages - what happened? which group changed active port?

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 11

    iii) Reconnect... - what happened? which group changed active port? iv) Disconnect cable from port gig 1/0/2 of SwitchA v) Read messages - what happened? which group changed active port? vi) Reconnect... - what happened? which group changed active port?

    b) Connect console to Core Switch i) Disconnect cable from port gig 1/0/1 of SwitchC display smart-link flush

    ii) In the message displayed, look for the question marks shown below Received flush packets : ?

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L4 - 12

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 1

    Lab 5 - IPv4 Basics

    Overview

    In this lab, you will:

    Create IP Interfaces

    Configure DHCP Server

    Configure DHCP Relay

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 2

    /0/1

    IP Interfaces 1) Create IP Interfaces

    PC1

    VLAN 1

    PC2 gig s gig s/0/10

    VLAN 2

    Figure 6.1

    Device Interface IP Address Length Gateway

    Switch VLAN 1 10.0.1.1 24

    VLAN 1 10.0.2.1 24

    PC 1 Ethernet 10.0.1.100 24 10.0.1.1

    PC2 Ethernet 10.0.2.100 24 10.0.2.1

    Table 6.1

    a) Create vlan 2 and assign it port gig s/0/10 (as an access port) [switch]vlan 2 [switch-vlan2]port gig s/0/10 [switch-vlan2]quit

    b) Configure the IP addresses of both VLAN interfaces [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.1 24 [switch-interface-vlan1]quit

    [switch]interface vlan 2 [switch-interface-vlan1]ip address 10.0.2.1 24 [switch-interface-vlan1]quit

    c) Verify

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 3

    [switch]display interface ip

    d) Test: i) Configure the IP address, mask and Default Gateway of each PC (see table

    above). ii) Send pings between the PCs, and the IP interfaces of the VLANs.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 4

    DHCP Client and Server

    Int-vlan1 10.0.1.1 /24

    Switch 1 DHCP Server

    Switch 2 DHCP Client gig s/0/1

    gig s/0/10 gig s/0/5

    DHCP Clients

    Figure 6.2 1) Configure DHCP Client and Server in a single VLAN (single IP subnet)

    a) Switch 1 i) Assign the IP address to the VLAN 1 interface [switch]interface vlan1 [switch-vlan-interface1]ip address 10.0.1.1 24

    ii) Configure the DHCP Server (1) enable DHCP [switch]dhcp enable [switch]interface vlan1 [switch-vlan-interface1]dhcp select server global-pool

    [switch-vlan-interface1]quit

    (2) Configure the IP address pool [switch]dhcp server ip-pool 1 [switch-dhcp-pool-1]network 10.0.1.0 24 [switch-dhcp-pool-1]gateway-list 10.0.1.1 [switch-dhcp-pool-1]dns-list 10.0.1.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 5

    [switch-dhcp-pool-1]domain-name classdomain.com [switch-dhcp-pool-1]quit

    (3) Exclude an address range for manual assignment [switch]dhcp server forbidden-ip 10.0.1.1 10.0.1.19

    b) Switch 2 i) Configure the Switch as a DHCP client

    [switch]interface vlan 1 [switch-vlan-interface1]ip address dhcp-alloc [switch-vlan-interface1]quit

    c) PCs i) Configure both PCs as DHCP Clients

    d) Verify i) Switch 2

    [switch]display ip interface brief

    ii) Verify that the PCs have received the IP parameters from the server c:\>ipconfig /all

    e) Test i) Send pings between all four devices

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 6

    DHCP Relay 1) Configure DHCP Client and Server in a single VLAN (single IP subnet)

    Int-vlan1 10.0.1.1 /24

    gig s/0/1

    Switch 2 DHCP Relay Agent

    Switch 1 DHCP Server

    VLAN 1 10.0.2.0/24

    gig s/0/1

    gig s/0/10 VLAN 2:

    10.0.2.0/24

    gig s/0/5

    DHCP Clients

    Figure 6.3

    a) Switch 1 i) Complete the DCHP Server Configuration

    (1) Configure a new address pool for VLAN 2 [switch]interface vlan 1 [switch]dhcp server ip-pool 2 [switch-dhcp-pool-2]network 10.0.2.0 24

    [switch-dhcp-pool-2]gateway-list 10.0.2.1 [switch-dhcp-pool-2]dns-list 10.0.1.1 [switch-dhcp-pool-2]domain-name classdomain.com

    [switch-dhcp-pool-2]quit

    (2) Exclude an address range for manual assignment [switch]dhcp server forbidden-ip 10.0.2.1 10.0.2.19

    ii) Create a static route to subnet 10.0.2.0 [switch]ip route-static 10.0.2.0 24 10.0.1.2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 7

    b) Switch 2 i) Assign IP addresses the interface of VLAN 1

    [switch]interface vlan 1 [switch-vlan-interface1]ip address 10.0.1.2 24 [switch-vlan-interface1]quit

    ii) Configure VLAN 2 and assign an IP address to its interface [switch]vlan 2 [switch-vlan2]port gig 2/0/5 [switch-vlan2]port gig 2/0/10 [switch-vlan2]quit [switch]interface vlan 2 [switch-vlan-interface2]ip address 10.0.2.1 24

    [switch-vlan-interface2]quit

    iii) Enable and configure the DHCP Relay agent at VLAN 2s interface [switch]dhcp enable [switch]dhcp relay server-group 1 ip 10.0.1.1 [switch]interface vlan 2 [switch-vlan-interface2]dhcp select relay [switch-vlan-interface2]dhcp relay server-select 1 [switch-vlan-interface2]quit

    iv) Verify the DHCP Relay Agent configuration [switch]display dhcp relay all

    v) Test: (1) At each PC C:\>ipconfig /release C:\>ipconfig /renew C:\>ipconfig /all

    (2) Finally display and read the DHCP relay statistics [switch]display dhcp relay statistics

    (3) Return both switches to factory default.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L5 - 8

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 1

    0/1

    Lab 6 - IPv4 Routing

    Overview

    In this lab, you will:

    Configure Static Routes

    Configure RIPv2

    Configure OSPF Single Area

    Configure OSPF Multi-Area

    VLAN 2 VLAN 1 VLAN 3

    PC 1 PC 2 Switch 1

    gig s/0/1 gig s/

    Switch 2

    gig s/0/10 gig s/0/10

    Figure 7.1

    Device Interface IP Address Length Gateway

    PC 1 Ethernet 10.0.2.100 24 10.0.2.1

    Switch Gr 1 VLAN 2 10.0.2.1 24

    VLAN 1 10.0.1.1 24

    Switch Gr 3 VLAN 1 10.0.1.2 24

    VLAN 3 10.0.3.1 24

    PC2 Ethernet 10.0.3.100 24 10.0.3.1

    Table 7.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 2

    Static Routes 1) Switch 1

    a) Configure VLANs [switch]vlan 2 [switch-vlan2]port ge10 [switch-vlan2]quit

    b) Configure VLAN interfaces [switch]interface vlan 1 [switch-vlan-interface1]ip address 10.0.1.1 24 [switch-vlan-interface1]quit [switch]interface vlan 2

    [switch-vlan-interface2]ip address 10.0.2.1 24 [switch-vlan-interface2]quit

    c) Configure a Static Route to the subnet in VLAN 3 [switch]ip route-static 10.0.3.0 24 10.0.1.2

    d) Verify the configuration [switch]display ip routing-table

    2) Switch 2 a) Configure VLANs

    [switch]vlan 3 [switch-vlan3]port ge10 [switch-vlan3]quit

    b) Configure VLAN interfaces [switch]interface vlan 1 [switch-vlan-interface1]ip address 10.0.1.2 24 [switch-vlan-interface1]quit [switch]interface vlan 3

    [switch-vlan-interface3]ip address 10.0.3.1 24 [switch-vlan-interface3]quit

    c) Configure a Static Route to the subnet in VLAN 2

    [switch]ip route-static 10.0.2.0 24 10.0.1.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 3

    3) Verify the configuration

    [switch]display ip routing-table

    4) Test a) Configure the IP parameters at each PC and send pings between them.

    b) Undo the static routes at each switch i) Switch 1 [switch]undo ip route-static 10.0.3.0 24

    ii) Switch Gr2 [switch]undo ip route-static 10.0.2.0 24

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 4

    RIPv2 1) Configure RIPv2

    a) Switch 1 [switch]rip 1 [switch-rip-1]version 2 [switch-rip-1]network 10.0.0.0 [switch-rip-1]quit

    b) Switch 2 [switch]rip 1 [switch-rip-1]version 2 [switch-rip-1]network 10.0.0.0 [switch-rip-1]quit

    2) Verify the configuration [switch]display ip routing-table

    3) Test a) Configure the IP parameters at each PC and send pings between them.

    4) Disable RIP

    a) Switch 1 [switch]undo rip 1 Warning : Undo RIP process? [Y/N]:y

    b) Switch 2 [switch]undo rip 1 Warning : Undo RIP process? [Y/N]:y

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 5

    0/1

    OSPF Single Area 1) Configure OSPF in a single area

    Area 0

    VLAN 2 VLAN 1 VLAN 3

    PC 1 PC 2 Switch 1

    gig s/0/1 gig s/

    Switch 2

    gig s/0/10 gig s/0/10

    a) Start an OSPF process i) Switch 1 [switch]ospf 1 [switch-ospf-1]area 0

    Figure 7.2

    [switch-ospf-1-area-0.0.0.0]network 10.0.1.0 0.0.0.255 [switch-ospf-1-area-0.0.0.0]network 10.0.2.0 0.0.0.255

    ii) Switch 2 [switch]ospf 1 [switch-ospf-1]area 0 [switch-ospf-1-area-0.0.0.0]network 10.0.1.0 0.0.0.255 [switch-ospf-1-area-0.0.0.0]network 10.0.3.0 0.0.0.255

    b) Verify the configuration [switch]display ip routing-table

    c) Test i) Configure the IP parameters at each PC and send pings between them.

    d) Disable OSPF i) Switch 1 [switch]undo ospf 1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 6

    Warning : Undo OSPF process? [Y/N]:y

    ii) Switch 2 [switch]undo ospf 1 Warning : Undo OSPF process? [Y/N]:y

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 7

    OSPF Case 2: Multi-Area Note:

    - In this exercise all groups will work together. Ask the instructor to assign you a Switch

    and PC number.

    Area 1 Area 0 Area 2

    VLAN 101 VLAN 11 VLAN 10

    VLAN 12 VLAN 102

    Sw 11 gig gig Sw 1

    gig

    gig Sw 2

    gig

    gig Sw 12

    s/0/1 s/0/1 s/0/10 s/0/10 s/0/1 s/0/1

    PC 11

    gig

    s/0/5

    PC 1

    gig

    s/0/5

    gig s/0/11

    gig s/0/11

    gig

    s/0/5

    gig

    s/0/5 PC 2 PC 12

    Sw 3

    VLAN 13 gig

    s/0/5

    PC 3

    Area 3

    Sw 13

    VLAN 103 gig

    s/0/5 PC 13

    Figure 7.2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 8

    i) IP Addresses Device Interface IP Address Length Gateway

    Sw 1 VLAN 10 10.0.10.1 24

    VLAN 11 10.0.11.1 24

    PC 1 Ethernet 10.0.11.100 24 10.0.11.1

    Sw 2 VLAN 10 10.0.10.2 24

    VLAN 12 10.0.12.1 24

    PC 2 Ethernet 10.0.12.100 24 10.0.12.1

    Sw 3 VLAN 10 10.0.10.3 24

    VLAN 13 10.0.13.1 24

    PC 3 Ethernet 10.0.13.100 24 10.0.13.1

    Sw 11 VLAN 11 10.0.11.2 24

    VLAN 101 10.0.101.1 24

    PC 11 Ethernet 10.0.101.100 24 10.0.101.1

    Sw 12 VLAN 12 10.0.12.2 24

    VLAN 102 10.0.102.1 24

    PC 12 Ethernet 10.0.102.100 24 10.0.102.1

    Sw 13 VLAN 13 10.0.13.2 24

    VLAN 103 10.0.103.1 24

    PC13 Ethernet 10.0.103.100 24 10.0.103.1

    Table 7.2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 9

    1) Configure OSPF multiple areas

    a) Configure all VLANs and Interfaces Note: Do not configure an IP interface for VLAN 1

    b) Switch 1 - VLANs and IP Interfaces [switch]vlan 10 [switch-vlan10]port Gig s/0/10 [switch-vlan10]vlan 11 [switch-vlan11]port Gig s/0/1 [switch-vlan11]port Gig s/0/5 [switch-vlan11]quit [switch]interface vlan 10 [switch-Vlan-interface10]ip address 10.0.10.1 24 [switch-Vlan-interface10]interface vlan 11 [switch-Vlan-interface11]ip address 10.0.11.1 24 [switch-Vlan-interface11]quit

    c) Switch 2 - VLANs and IP interfaces [switch]vlan 10 [switch-vlan10]port gig 2/0/10 [switch-vlan10]port gig 2/0/11 [switch-vlan10]vlan 12 [switch-vlan12]port gig 2/0/1 [switch-vlan12]port gig 2/0/5 [switch-vlan12]quit [switch]interface vlan 10 [switch-Vlan-interface10]ip address 10.0.10.2 24

    [switch-Vlan-interface10]interface vlan 12 [switch-Vlan-interface12]ip address 10.0.12.1 24 [switch-Vlan-interface12]quit

    d) Switch 3 - VLANs and IP interfaces [switch]vlan 10 [switch-vlan10]port gig 2/0/11 [switch-vlan10]vlan 13 [switch-vlan13]port gig 2/0/1 [switch-vlan13]port gig 2/0/5 [switch-vlan13]quit

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 10

    [switch]interface vlan 10 [switch-Vlan-interface10]ip address 10.0.10.3 24 [switch-Vlan-interface10]interface vlan 13 [switch-Vlan-interface12]ip address 10.0.13.1 24 [switch-Vlan-interface12]quit

    e) Switch 11 - VLANs and IP interfaces [switch]vlan 11 [switch-vlan11]port gig 2/0/1 [switch-vlan11]vlan 101 [switch-vlan101]port gig 2/0/5

    [switch-vlan101]quit [switch]interface vlan 11 [switch-Vlan-interface11]ip address 10.0.11.2 24 [switch-Vlan-interface11]interface vlan 101 [switch-Vlan-interface101]ip address 10.0.101.1 24 [switch-Vlan-interface101]quit

    f) Switch 12 - VLANs and IP interfaces [switch]vlan 12 [switch-vlan12]port gig 2/0/1 [switch-vlan12]vlan 102 [switch-vlan102]port gig 2/0/5

    [switch-vlan102]quit [switch]interface vlan 12 [switch-Vlan-interface12]ip address 10.0.12.2 24 [switch-Vlan-interface12]interface vlan 102 [switch-Vlan-interface102]ip address 10.0.102.1 24

    [switch-Vlan-interface102]quit

    g) Switch 13 - VLANs and IP interfaces [switch]vlan 13 [switch-vlan13]port gig 2/0/1 [switch-vlan13]vlan 103 [switch-vlan103]port gig 2/0/5 [switch-vlan103]quit [switch]interface vlan 13 [switch-Vlan-interface13]ip address 10.0.13.2 24

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 11

    [switch-Vlan-interface13]interface vlan 103 [switch-Vlan-interface103]ip address 10.0.103.1 24 [switch-Vlan-interface103]quit

    2) Start OSPF process 1, add the Areas and Configure their networks

    a) Switch 1 - OSPF - Areas - Networks [switch]ospf 1

    [switch-ospf-1]area 0 [switch-ospf-1-area-0.0.0.0]network 10.0.10.0 0.0.0.255 [switch-ospf-1-area-0.0.0.0]quit [switch-ospf-1]area 1 [switch-ospf-1-area-0.0.0.1]network 10.0.11.0 0.0.0.255 [switch-ospf-1-area-0.0.0.1]quit [switch-ospf-1]quit

    b) Switch 2 - OSPF - Areas - Networks [switch]ospf 1 [switch-ospf-1]area 0 [switch-ospf-1-area-0.0.0.0]network 10.0.10.0 0.0.0.255 [switch-ospf-1-area-0.0.0.0]quit [switch-ospf-1]area 2 [switch-ospf-1-area-0.0.0.2]network 10.0.12.0 0.0.0.255 [switch-ospf-1-area-0.0.0.2]quit [switch-ospf-1]quit

    c) Switch 3 - OSPF - Areas - Networks [switch]ospf 1 [switch-ospf-1]area 0 [switch-ospf-1-area-0.0.0.0]network 10.0.10.0 0.0.0.255 [switch-ospf-1-area-0.0.0.0]quit [switch-ospf-1]area 3 [switch-ospf-1-area-0.0.0.3]network 10.0.13.0 0.0.0.255 [switch-ospf-1-area-0.0.0.3]quit [switch-ospf-1]quit

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 12

    d) Switch 11 - OSPF - Areas - Networks

    [switch]ospf 1 [switch-ospf-1]area 1 [switch-ospf-1-area-0.0.0.1]network 10.0.11.0 0.0.0.255 [switch-ospf-1-area-0.0.0.1]network 10.0.101.0 0.0.0.255 [switch-ospf-1-area-0.0.0.1]quit [switch-ospf-1]quit [switch]

    e) Switch 12 - OSPF - Areas - Networks [switch]ospf 1 [switch-ospf-1]area 2 [switch-ospf-1-area-0.0.0.2]network 10.0.12.0 0.0.0.255 [switch-ospf-1-area-0.0.0.2]network 10.0.102.0 0.0.0.255 [switch-ospf-1-area-0.0.0.2]quit [switch-ospf-1]quit

    [switch]

    f) Switch 13 - OSPF - Areas - Networks [switch]ospf 1 [switch-ospf-1]area 3 [switch-ospf-1-area-0.0.0.3]network 10.0.13.0 0.0.0.255 [switch-ospf-1-area-0.0.0.3]network 10.0.103.0 0.0.0.255 [switch-ospf-1-area-0.0.0.3]quit [switch-ospf-1]quit [switch]

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 13

    OSPF with BFD

    Device Interface IP Address Gateway PC1 10.0.2.100/24 10.0.2.1 Switch A VLAN 2 10.0.2.1/24

    VLAN 3 10.0.3.1/24 VLAN 4 10.0.2.1/24

    Switch B1 VLAN 3 10.0.3.2/24 VLAN 5 10.0.5.1/24

    Switch B2 VLAN 4 10.0.4.2/24 VLAN 6 10.0.6.1/24

    Switch C VLAN 5 10.0.5.2/24 VLAN 6 10.0.6.2/24 VLAN 7 10.0.7.1/24

    PC2 10.0.7.100/24 10.0.7.1

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 14

    1) Configure Switch A

    a) Configure VLANs and VLAN interfaces system-view [SwitchA]vlan 2 [SwitchA-vlan-2]port gig 1/0/2 [SwitchA-vlan-2]quit [SwitchA]vlan 3 [SwitchA-vlan-3]port gig 1/0/3 [SwitchA-vlan-3]quit [SwitchA]vlan 3 [SwitchA-vlan-3]port gig 1/0/4

    [SwitchA-vlan-3]quit [SwitchA]int vlan 2 [SwitchA-interface-vlan2]ip address 10.0.2.1 24 [SwitchA-interface-vlan2]quit [SwitchA]int vlan 3

    [SwitchA-interface-vlan3]ip address 10.0.3.1 24 [SwitchA-interface-vlan3]quit [SwitchA]int vlan 4 [SwitchA-interface-vlan3]ip address 10.0.4.1 24 [SwitchA-interface-vlan3]quit

    b) Configure OSFP [SwitchA]ospf 1 [SwitchA-ospf1]area 0 [SwitchA-ospf1-area0]network 10.0.0.0 0.0.255.255

    [SwitchA-ospf1-area0]quit [SwitchA-ospf1]quit

    2) Configure Switch B1 a) Configure VLANs and VLAN interfaces

    system-view [SwitchB1]vlan 3 [SwitchB1-vlan3]port gig 1/0/3 [SwitchB1-vlan3]quit [SwitchB1]vlan 5 [SwitchB1-vlan5]port gig 1/0/5

    [SwitchB1-vlan5]quit [SwitchB1]int vlan 3

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 15

    [SwitchB1-interface-vlan1]ip address 10.0.3.2 24 [SwitchB1-interface-vlan1]quit [SwitchB1]int vlan 5

    [SwitchB1-interface-vlan2]ip address 10.0.5.1 24 [SwitchB1-interface-vlan2]quit

    b) Configure OSFP [SwitchB1]ospf 1 [SwitchB1-ospf1]area 0 [SwitchB1-ospf1-area0]network 10.0.0.0 0.0.255.255

    [SwitchB1-ospf1-area0]quit [SwitchB1-ospf1]quit

    3) Configure Switch B2 a) Configure VLANs and VLAN interfaces

    system-view [SwitchB2]vlan 4 [SwitchB2-vlan4]port gig 1/0/4 [SwitchB2-vlan4]quit [SwitchB2]vlan 6 [SwitchB2-vlan6]port gig 1/0/6 [SwitchB2-vlan6]quit [SwitchB2]int vlan 4 [SwitchB1-interface-vlan4]ip address 10.0.4.2 24 [SwitchB1-interface-vlan4]quit [SwitchB2]int vlan 6 [SwitchB1-interface-vlan6]ip address 10.0.6.1 24 [SwitchB1-interface-vlan6]quit

    b) Configure OSFP [SwitchB2]ospf 1 [SwitchB2-ospf1]area 0 [SwitchB2-ospf1-area0]network 10.0.0.0 0.0.255.255

    [SwitchB2-ospf1-area0]quit [SwitchB2-ospf1]quit

    4) Configure Switch C a) Configure VLANs and VLAN interfaces

    system-view

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 16

    [SwitchC]vlan 5 [SwitchC-vlan5]port gig 1/0/12 [SwitchC-vlan5]quit [SwitchC]vlan 6 [SwitchC-vlan6]port gig 1/0/6

    [SwitchC-vlan6]quit [SwitchC]vlan 7 [SwitchC-vlan7]port gig 1/0/7 [SwitchC-vlan7]quit [SwitchC]int vlan 5 [SwitchB1-interface-vlan5]ip address 10.0.5.2 24 [SwitchB1-interface-vlan5]quit [SwitchC]int vlan 6 [SwitchB1-interface-vlan6]ip address 10.0.6.2 24 [SwitchB1-interface-vlan6]quit [SwitchC]int vlan 7

    [SwitchB1-interface-vlan7]ip address 10.0.7.1 24 [SwitchB1-interface-vlan7]quit

    b) Configure OSFP [SwitchC]ospf 1 [SwitchC-ospf1]area 0 [SwitchC-ospf1-area0]network 10.0.0.0 0.0.255.255

    [SwitchC-ospf1-area0]quit [SwitchC-ospf1]quit

    c) Verify Connect the cables according to the following table

    Device 1 Device 2 PC1 SwA G1/0/2 SwA G1/0/3 SwB1 G1/0/3 SwA G1/0/4 SwB2 G1/0/4 SwB1 G1/0/5 SwC G1/0/5 SwB2 G1/0/6 SwC G1/0/6 SwC G1/0/7 PC2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 17

    Verify IP Routing Tables in each Switch (any view) display ip routing display ip routing protocol ospf

    d) Test i) from the PC at 10.0.11.100 send pings to 10.0.41.100. Use the "-t" for continuous pings. ii) Disconnect the cable between Switch 2 and 4 and count how many pings are lost in the

    PC if it is more than 10 seconds of pings go to next task (Activate BFD)

    else reconnect the cable

    disconnect the cable between Switch 3 and 4 count how many pings are lost in the PC

    iii) Reconnect the cable 5) Configure BFD on SwitchA

    [SwitchA]interface vlan 1 [SwitchA-interface-vlan1]ospf bfd enable [SwitchA-interface-vlan1]quit [SwitchA]interface vlan 2 [SwitchA-interface-vlan2]ospf bfd enable [SwitchA-interface-vlan2]quit [SwitchA]interface vlan 3 [SwitchA-interface-vlan3]ospf bfd enable

    [SwitchA-interface-vlan3]quit

    6) Configure BFD on SwitchB1 [SwitchB1]interface vlan 1 [SwitchB1-interface-vlan1]ospf bfd enable [SwitchB1-interface-vlan1]quit [SwitchB1]interface vlan 2 [SwitchB1-interface-vlan2]ospf bfd enable [SwitchB1-interface-vlan2]quit

    7) Configure BFD on SwitchB2 [SwitchB2]interface vlan 1 [SwitchB2-interface-vlan1]ospf bfd enable [SwitchB2-interface-vlan1]quit [SwitchB2]interface vlan 2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 18

    [SwitchB2-interface-vlan2]ospf bfd enable [SwitchB2-interface-vlan2]quit

    8) Configure BFD on SwitchC [SwitchC]interface vlan 1 [SwitchC-interface-vlan1]ospf bfd enable [SwitchC-interface-vlan1]quit [SwitchC]interface vlan 2 [SwitchC-interface-vlan2]ospf bfd enable [SwitchC-interface-vlan2]quit [SwitchC]interface vlan 3 [SwitchC-interface-vlan3]ospf bfd enable [SwitchC-interface-vlan3]quit

    9) Verify in each Switch display bfd session display bfd interface

    a) Test i) from the PC at 10.0.2.100 send pings to 10.0.7.100. Use the "-t" for continuous pings. ii) Disconnect the cable between Switch 2 and 4 and count how many pings are lost in the

    PC if it is more than 10 seconds of pings go to next task

    else reconnect the cable

    disconnect the cable between Switch 3 and 4 count how many pings are lost in the PC

    10) When finished disconnect all cables and return all switches to factory default.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 19

    VRRP

    VLAN 1

    10.0.1.0 /24

    Switch 1 VLAN 2

    10.0.2.0 /24

    PC 1 PC 2 gig

    s/0/1 gig

    s/0/10

    Switch 3 gig

    s/0/1 gig

    s/0/10 Switch 4

    Switch 2

    Figure 7.3

    Device Interface IP Address Length Gateway

    Sw 1 VLAN 1 10.0.1.11 24

    VLAN 2 10.0.2.11 24

    Sw 2 VLAN 1 10.0.1.12 24

    VLAN 2 10.0.2.12 24

    Virtual Rtr 1 VLAN 1 10.0.1.1 24

    Virtual Rtr 2 VLAN 2 10.0.2.1 24

    PC 1 Ethernet 10.0.1.100 24 10.0.1.1

    PC 2 Ethernet 10.0.2.100 24 10.0.2.1

    Table 7.3

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 20

    1)

    a) Configure VLANs and IP interfaces Note: Switch 3 and 4 are present only to provide connectivity to both Switch 1 and 2 and do not need to be configured.

    i) Switch 1

    (1) VLANs and Interfaces [switch]vlan 2 [switch-vlan2]port gig 2/0/10 [switch-vlan2]quit

    [switch]interface vlan 1 [switch-Vlan-interface1]ip address 10.0.1.11 24

    [switch-Vlan-interface1]interface vlan 2 [switch-Vlan-interface2]ip address 10.0.2.11 24 [switch-Vlan-interface2]quit

    (2) VRRP [switch]interface vlan 1 [switch-Vlan-interface1]vrrp vrid 1 virtual-ip 10.0.1.1 [switch-Vlan-interface1]int vlan 2 [switch-Vlan-interface2]vrrp vrid 2 virtual-ip 10.0.2.1

    [switch-Vlan-interface2]quit

    ii) Switch 2 (1) Vlans and Interfaces [switch]vlan 2 [switch-vlan2]port gig 2/0/10 [switch-vlan2]quit [switch]interface vlan 1 [switch-Vlan-interface1] [switch-Vlan-interface1]ip address 10.0.1.12 24 [switch-Vlan-interface1]interface vlan 2 [switch-Vlan-interface2]ip address 10.0.2.12 24 [switch-Vlan-interface2]quit

    (2) VRRP [switch-Vlan-interface1]vrrp vrid 1 virtual-ip 10.0.1.1 [switch-Vlan-interface1]int vlan 2

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 21

    [switch-Vlan-interface2]vrrp vrid 2 virtual-ip 10.0.2.1 [switch-Vlan-interface2]quit

    iii) Verify (1) Switch 1 [switch]display vrrp [switch]display vrrp verbose

    (2) Switch 2 [switch]display vrrp [switch]display vrrp verbose

    (3) Which switch is the Master (a) for vlan 1? (b) for vlan 2?

    2) Test

    a) Run continuous pings between the PCs b) Disconnect the cable between switch 3 and the master of vlan 1

    i) what happened? ii) did the system recover?

    (1) Switch 1 [switch]display vrrp [switch]display vrrp verbose

    (2) Switch 2 [switch]display vrrp [switch]display vrrp verbose

    c) Disconnect the cable between switch 4 and the master of vlan 2 i) what happened? ii) did the system recover?

    (1) Switch 1 [switch]display vrrp [switch]display vrrp verbose

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L6 - 22

    (2) Switch 2 [switch]display vrrp [switch]display vrrp verbose

    d) Reconnect both cables and verify (1) Switch 1 [switch]display vrrp

    [switch]display vrrp verbose

    (2) Switch 2 [switch]display vrrp [switch]display vrrp verbose

    3) Reboot all switches to return them to factory defaults

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 1

    Lab 7 - IPv4 Multicast Routing

    Overview

    In this lab, you will:

    Configure a Network that supports IGMP Queries and Snooping

    Configure a Multicast Routing Network using IGMP and PIM-DM

    Configure a Multicast VLAN

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 2

    gig

    0

    IGMP 1) Configure a network that supports multicast using IGMP queries and snooping

    PC 1

    Multicast Sender

    gig s/0/1

    Switch 1 (L3) IGMP Querier

    s/0/10

    Switch 2 (L2)

    IGMP Snooping gig s/0/1

    PC 2

    Multicast Receiver gig s/0/1

    VLAN 2 VLAN 1

    Figure 8.1

    Device Interface IP Address Length Gateway

    Sw 1 VLAN 1 10.0.1.1 24

    VLAN 2 10.0.2.1 24

    Sw 2 VLAN 1 10.0.1.2 24

    PC 1 Ethernet 10.0.2.100 24 10.0.2.1

    PC 2 Ethernet 10.0.1.100 24 10.0.1.1

    Table 8.1

    a) Switch 1 i) Configure VLANs and IP interfaces

    [switch]vlan 2 [switch-vlan2]port gig s/0/1 [switch-vlan2]quit [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.1 24

    [switch-interface-vlan1]interface vlan 2 [switch-interface-vlan2]ip address 10.0.2.1 24 [switch-interface-vlan2]quit

    ii) Verify if IGMP snooping it enabled by default. If it is: [switch]undo igmp-snooping

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 3

    iii) Configure the IGMP Querier [switch]multicast routing-enable [switch]interface vlan 1 [switch-interface-vlan1]igmp enable

    [switch-interface-vlan1]pim dm [switch-interface-vlan1]interface vlan 2 [switch-interface-vlan2]pim dm [switch-interface-vlan2]quit

    iv) Verify the configuration [switch]display igmp group

    b) Switch 2 i) Configure VLAN 1s IP interface

    [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.2 24 [switch-interface-vlan1]quit

    ii) Configure IGMP snooping (1) Verify if IGMP snooping is enabled by default. If not: [switch]igmp-snooping [switch]vlan 1 [switch-vlan1]igmp-snooping enable [switch-vlan1]quit

    iii) Verify the configuration [switch]display igmp-snooping group vlan 1

    c) Test the configuration

    i) In PC 1 run UDP multicast test.exe and configure a Multicast Sender and start sending multicasts.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 4

    Figure 8.2

    ii) From the Local Interfaces box, drag the active Network interface to the Local Interface Address field

    iii) Enter a descriptive message in the Message field

    iv) Start the Sender by clicking on Start Sender

    v) Record the multicast address of the multicasts being sent:

    d) In PC 2 run UDP multicast test.exe and configure a Multicast Receiver for the same multicast address sent by PC 1.

    i) Click on Start Receiver on the receiving workstation,

    ii) Verify that the multicast messages are being received.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 5

    iii) Verify that igmp-snooping is actually working. In Switch 2: [switch]display igmp-snooping group vlan 1

    e) Finally i) Preserve the configuration of both switches. ii) Keep the Multicast Sender running. iii) Stop the Multicast Receiver.

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 6

    gi

    0

    gi

    PIM-DM 1) Configure a network that supports multicast Routing using PIM-DM and IGMP

    PC 1 Multicast Sender

    gig s/0/1

    Switch 1 PIM DM

    g s/0/10

    Switch 2 PIM DM + IGMP

    gig s/0/1

    PC 2 Multicast Receiver

    g s/0/1

    VLAN 2

    VLAN 1

    VLAN 3

    Figure 8.3

    Device Interface IP Address Length Gateway

    Sw 1 VLAN 2 10.0.2.1 24

    VLAN 1 10.0.1.1 24

    Sw 2 VLAN 1 10.0.1.2 24

    VLAN 3 10.0.3.1 24

    PC 1 Ethernet 10.0.2.100 24 10.0.2.1

    PC 2 Ethernet 10.0.3.100 24 10.0.3.1

    Table 8.2

    a) Switch 1 i) Disable the IGMP querier on Vlan interface 1

    [switch]interface vlan 1 [switch-interface-vlan1]undo igmp enable [switch-interface-vlan1]quit

    ii) Configure OSPF [switch]ospf 1 [switch-ospf-1]area 0 [switch-ospf-1-area-0]network 10.0.1.0 0.0.0.255 [switch-ospf-1-area-0]network 10.0.2.0 0.0.0.255

  • HP LAN Switching Installation and Administration Professional Training

    hk644s b.00 2011 Hewlett-Packard Development Company, L.P. L7 - 7

    [switch-ospf-1-area-0]quit [switch-ospf-1]quit

    iii) Verify the configuration [switch]display pim interface vlan 1 verbose [switch]display pim interface vlan 2 verbose

    b) Switch 2 i) Configure VLANs and IP interfaces

    [switch]vlan 3 [switch-vlan3]port gig s/0/1 [switch-vlan3]quit [switch]interface vlan 1 [switch-interface-vlan1]ip address 10.0.1.2 24 [switch-interface-vlan1]interface vlan 3 [switch-interface-vlan3]ip address 10.0.3.1 24 [switch-interface-vlan3]quit

    ii) Configure OSPF [switch]ospf 1 [switch-ospf-1]area 0 [switch-ospf-1-area-0]network 10.0.1.0 0.0.0.255 [switch-ospf-1-area-0]network 10.0.3.0 0.0.0.255 [switch-ospf-1-area-0]quit [switch-ospf-1]quit

    iii) Verify if IGMP snooping is enabled by default. If it is: [switch]undo igmp-sno