Professional Documents
Culture Documents
Switches
1
Objectives
1. Describe common switch types.
2. Configure custom VLANs.
3. Create and manage VLANs using the
menu interface.
4. Create and manage VLANs using
command-line interface (CLI).
5. Configure link aggregation.
6. Manage multiple switch configurations.
2
Switches
Unmanaged switch
Smart managed switch
Managed switch
4
Unmanaged Switch
At the low end of available switches are unmanaged switches.
These are designed to provide connectivity for small networks.
HP 1405-5G
Unmanaged
desktop
Switch
5
Unmanaged Switch
OSI Do not
Plug- No No provide
Layer 2
and-play mana- custom any
functio-
operatio gement VLAN monitoring
nality capabilitie
n interface support
only s
6
Smart Managed Switch
Switch, also known as a web managed switch, support limited
management options. They are, however, more advanced devices
than unmanaged switches and support additional functionality.
8
Smart Managed Switch Limited
• Most switches of this type also have an RJ‐45
console port. Some also have a USB
connection that can be used to connect
directly to the switch. This is similar to the
console connection on managed switches, but
it can typically be used to perform the same
Limited procedures as the web interface.
functionalit • Smart managed switches also include limited
y SNMP support. SNMP management devices
can automatically discover and remotely
monitor smart managed switches. However,
smart managed switches do not support
remote management from an SNMP
management device.
9
Managed Switch
A network switch is a computer
networking device that connects
devices together on a computer
network.
12
Managed Switch and SNMP
In addition, most managed switches can be
monitored and configured through SNMP and an
SNMP management console.
Most managed switches are designed to work with
most manufacturers’ SNMP management devices.
To this end, manufacturers make the switch’s MIB
available for download.
14
Summary
• Unmanaged switch
Switch • Smart managed
management
categories switch
• Managed switch
Switch deployment
15
Switches
21
Creating a VLAN
The
basic • Define the VLAN
steps name and ID;
for • Transfer ports from
the default VLAN to
creating the new VLAN;
a • Assign an IP address
custom to the VLAN
VLAN (optional).
are: 22
VLAN links
You often see references to two kinds of VLAN links:
Untagged/Access link; Tagged/ Trunk link.
24
Trunk link
A Trunk Link, or “Trunk” is a port configured to carry packets
for any VLAN. These type of ports are usually found in
connections between switches. Trunk links are also used to
provide high‐bandwidth communication paths when configuring
multi‐switch VLANs.
25
Sample Network
A port in a VLAN can be either tagged or untagged. A single
port can allow traffic from multiple VLANs. A port can
belong untagged to one VLAN only, but the port can have
multiple tagged VLANs assigned to it.
26
Summary
29
Switch Configuration Menu
From the Switch Configuration Menu, select
7. VLAN Menu
30
VLAN Menu
We will start • Configure VLAN support
with a look at the parameters.
VLAN Menu • Create and manage VLAN names
command and IDs.
options. Here, • Assign ports to or remove ports
you can: from VLANs.
31
VLAN Support
As you can see, this switch can support up to 256 VLANs. The
switch is currently set up with the default VLAN configuration,
so the primary VLAN is also the default VLAN (named
DEFAULT_VLAN). GVRP (Generic Attribute Registration
Protocol), a VLAN management protocol, is disabled by default.
32
VLAN Names
To create a new VLAN, you must define the VLAN. Select
2. VLAN Names to open the VLAN Names Configuration
screen. By default, the Actions menu is selected. Choose
Add from the Actions menu selections and enter the VLAN
information.
33
New VLAN
Now the VLAN names list includes both DEFAULT_VLAN
and the new VLAN you just created
34
Default Port Assignments
To add ports to your VLAN, select 3. VLAN Port Assignment from the
VLAN Menu. The VLAN Port Assignment screen shows current port
assignments. Default port assignments are shown in the example, with
all ports assigned to the default VLAN.
35
Selected Port
To change the port assignments, select Edit from the Actions menu
and use the arrow keys to select the port you want to change
36
Configured Port
We want to add ports to the DBUsers VLAN. At the selected port,
under the DEFAULT_VLAN column, press the Spacebar until the
value reads No. For the same port, under DBUsers, press the
Spacebar until it reads Untagged. Continue this process for all of
the ports that you want to add to the VLAN.
37
Switch Configuration Menu
IP Configuration is disabled by default for a newly created
VLAN. You can reach this screen by selecting 4. IP Configuration
from the Switch Configuration Menu (Main menu).
38
IP Configuration
You can set IP Configuration to DHCP/Bootp to have the
VLAN receive an IP address automatically from a DHCP
server, or you can set IP Configuration to Manual to
configure a static address.
39
Assigned IP Address
If you want the VLAN to have a known IP address,
you can choose to configure a static IP address.
40
Summary
Create
and • Define the VLAN name
manage and ID;
• Transfer ports from the
VLANs
default VLAN to the
use the new VLAN;
menu • Assign an IP address to
interface the VLAN (optional).
:
41
Switches
44
Adding a Port
The new command prompt would be:
5406zl (vlan-3)#
By default, all ports are configured as untagged.
To configure a tagged port, run the following
command:
5406zl (vlan-3)# tagged <port>
To change a tagged port back into an untagged
port, run:
5406zl (vlan-3)# untagged <port>
45
Default VLAN Name
• 5406zl (vlan-3)#
If you want
to rename
name Work1
the VLAN
as Work1, • 5406zl (config)#
you would
run: vlan VLAN3 name
Work1
46
IP Configuration
Use the ip command to configure IP information
for a VLAN. For example:
show interface 1
This will give you detailed port statistics for the specified
port.
48
Show interface a1
The information • Link status.
provided • Total bytes, unicasts, and broadcasts
includes the received and transmitted.
following: • Transmit and receive rates.
49
Layer 3 Management
When you use a switch as a router, you configure the router as
the default gateway for clients, forwarding traffic between the
configured VLANs.
Port management
Layer 3 Management
53
Switches
5. Configure link
aggregation
54
Link Aggregation
Link aggregation, also known as port trunking,
allows you to create a higher bandwidth
communication path by linking multiple physical
ports as a single logical communication channel. HP
uses a standard protocol, called LACP, to manage
port trunking in its switches.
• Also known as link aggregation.
Combining physical ports to create a single
Port trunking communication channel to provide higher
bandwidth communication.
58
Associate a trunk
To associate a trunk with a VLAN, execute the
following in the config context:
vlan <id> tagged trk<id>
For example, to associate trunk 2 with VLAN 10,
run the following: vlan 10 tagged trk2
59
Summary
Configured Link
Aggregation
Port Status Summary
Associate a trunk
60
Switches
61
Configuration management
Before working with the switch configuration, you should
verify that the running configuration and the startup
configuration are the same.
You can view the running configuration by executing the
following:
show running-config
To compare the running configuration with the saved
startup configuration, run the following:
64
Configuration Files
• This is the active configuration,
act that is, the configuration used
to boot the switch.
66
Backing up configuration files
To back up the startup configuration to a USB flash
drive, run the following:
68
Associating Images with Configuration Files
To make the new configuration file the startup configuration file, you would run:
69
Separate Images – Separate Configurations
You can also associate configuration files with different images. For
example, you could associate config with the primary image and
baseconfig1 with the secondary image. To associate the primary
image only with config, run the following:
70
Erased Image
The erase command allows you to remove a configuration file from
flash memory. For example, to delete baseconfig2, run the following:
71
Erased Image
If you erase the active configuration file, you are
prompted to replace it with your other configuration
file. In this case, you would get the following message:
73
Using the secondary image
One option for updating system software is to download the file to
a USB drive and then apply the image to the switch’s flash
memory. To copy the software as the secondary image, run:
After copying the image to flash memory, your next step should be to
boot from the image to make sure that it works properly. To initiate a
one‐time boot using the secondary image, run the following:
Сonfiguration files
Backing up configuration files
Startup configuration file
Erase configuration file
Flash memory
75