Académique Documents
Professionnel Documents
Culture Documents
D-Link Academy
Table of Contents
Table of Contents
DCS-Switching
Table of Contents
D-Link Academy
DCS-Switching
D-Link Academy
Table of Contents
DCS-Switching
Table of Contents
D-Link Academy
DCS-Switching
D-Link Academy
Lab 1
Lab Objective
In this lab, you will apply/test your understanding of the fundamentals of networking and
the TCP/IP protocol suite learnt. After completing this lab, you should have a better
understanding of networking and the use of IP addressing and subnetting.
DCS-Switching
Lab 1
D-Link Academy
2. The
3. The
4. The
2. Of the following Layer 4 protocols, which one is used for a Telnet connection?
a. UDP
b. TCP
c. ICMP
d. DNS
DCS-Switching
D-Link Academy
Lab 1
DCS-Switching
Lab 1
D-Link Academy
3. Which of the following two statements describe the IP address 10.16.3.65/23? (Choose
two.)
a. The subnet address is 10.16.3.0 255.255.254.0.
b. The broadcast address of the subnet is 10.16.3.255 255.255.254.0.
c. The lowest host address in the subnet is 10.16.2.1 255.255.254.0.
d. The last valid host address in the subnet is 10.16.2.254 255.255.254.0.
4. A small company has a Class C network address and needs to create five subnets, each
accommodating 25 hosts. Which subnet mask needs to be configured?
a. 255.255.240.0
b. 255.255.255.128
c. 255.255.255.192
d. 255.255.255.224
e. 255.255.255.240
f. 255.255.255.248
10
DCS-Switching
D-Link Academy
Lab 1
2. physical layer
3. network layer
4. application layer
DCS-Switching
11
Lab 1
D-Link Academy
2. Answer: c
Explanation:
Private address for Class A: 10.0.0.0 10.255.255.255, Class B: 172.16.0.0
172.31.255.255, and Class C: 192.168.0.0 192.168.255.255.
3. Answer: b, c
Explanation:
10.16.3.65/23 means 15 bits are borrowed for this Class A IP address. The subnet
address is 10.16.2.0, hosts are from 10.16.2.1 to 10.16.3.254, and the broadcast
address is 10.16.3.255.
4. Answer: d
Explanation:
To have 5 subnets, it means 3 bits need to be borrowed from the host bits. The default
subnet mask for Class C is 255.255.255.0, thus after borrowing 3 bits, the new subnet
mask will be 255.255.255.224.
5. Answer: a
Explanation:
Only Class A can be borrowed with 15 bits as it has 24 host bits. Class B has 16 host bits,
so if borrowed 15 bits, there will be no host left after subtracting the 2 reserved ip
addresses (network and broadcast). Class C only has 8 host bits, so it is not possible to
borrow 15 bits. Class D and E are reserved addresses.
12
DCS-Switching
D-Link Academy
Lab 2
Lab Objective
In this lab, you will learn to access and configure the Switch for basic Switch operations.
After completing this lab, you will be able to connect to the Switch using a serial cable
through a terminal emulation program, and learn the basic maintenance commands for the
Switch.
DCS-Switching
13
Lab 2
D-Link Academy
Lab Topology
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528 or DGS-3120-24TC.
Command List
Command
Description
To open Help.
clear
14
DCS-Switching
D-Link Academy
Lab 2
Command
config command_prompt
[<string16>|username|default]
config ipif System ipaddress
<ipaddress/prefix>
Description
To change the command prompt.
To change the System IP address of the Switch.
config ports <portlist> state disable To disable a particular port on the Switch.
config ports <portlist> state enable To enable a particular port on the Switch.
create account admin <username>
disable ssh
enable password encryption
enable ssh
enable telnet <tcp_port_number
<value 1-65535>
login
logout
reboot {force_agree}
reset {[config |
system]}{force_agree}
save {[config<config_id
1-2>|log|all]}
non-volatile RAM.
show account
show command_history
show device_status
show greeting_message
show ports
show session
show switch
DCS-Switching
15
Lab 2
D-Link Academy
Command
Description
1-65535}
on the Switch.
Lab Details
Switchs IP
Switch Name
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 24
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 24
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
Note:
x = POD Number
Examples:
SWRx1 in Pod 1 = SWR11; IP Address is 10.90.90.11/24
SWRX1 in Pod 2 = SWR21; IP Address is 10.90.90.21/24
Account
Username
Password
admin
admin1
admin1
user
user1
user1
16
DCS-Switching
D-Link Academy
Lab 2
1 stop bit
4. If the serial port is properly connected to a computer, the Switchs banner will be visible.
Upon seeing the banner, press ENTER for the UserName and Password prompts. There
is no initial username or password.
5. Type ? and press ENTER to display the list of available commands.
6. Press ESC to quit from the command lists, press n for the next page or press ENTER for
the next command.
7. To display the switch information, type show switch, and fill in the following details:
What is the Device Type?
________________________________________________
What is the MAC address?
________________________________________________
What is the IP Address?
________________________________________________
What is the Firmware Version?
________________________________________________
What is the Serial Number?
________________________________________________
8. Type show greeting_message to view the currently configured greeting message on
the Switch.
9. Type show serial_port to display the serial port settings on the Switch.
10. Type show ports to display the current configuration of a range of ports.
11. Type show utilization flash to display the total and used FLASH memory.
12. Type show command_history to display the command history.
13. Press the UP arrow key and DOWN arrow key to display the previously typed
commands.
14. Type clear to clear the screen.
15. Type save to save changes in the Switchs configuration to non-volatile RAM.
DCS-Switching
17
Lab 2
D-Link Academy
18
DCS-Switching
D-Link Academy
Lab 2
10. Type show switch and press the Enter to verify that Telnet is enabled. Default for
Telnet is enabled with TCP Port 23. If Telnet is not enabled, type the command enable
telnet 23.
11. Using the telnet command, try to access to your neighbors Switch. For example, to
access SW12, type telnet 10.90.90.12. When prompted for UserName and Password,
use admin1 for both entries.
You are now remotely connecting to a different switch. Notice the change in the
command_prompt.
12. Type show session to display a list of all the users that are logged in to the Switch.
13. Type logout to end the Telnet session.
14. SSH is a more secure way to connect to a remote device. To allow SSH on your own
switch, check that SSH is enabled by using the show switch command. By default, it is
disabled.
15. Type enable ssh to change it to secure mode. Type show switch to ensure that SSH
has been enabled. Note that for DGS-3627 and DES-3528 when SSH is enabled, Telnet
is disabled.
16. To demonstrate the use of SSH, ensure you PCs IP address is in the same network as the
Switch. The PCs IP address can be obtained from the Lab Details section.
17. Run Tera Term or other terminal emulation softwares from your PC, enter the IP address
of the Switch that you want to connect to, and choose SSH.
18. When prompted for Username and Password, use admin1 for both entries.
19. Type logout to end the session.
20. To revert back to allow Telnet access on your Switch, enter disable ssh, followed by
enable telnet. This step is required ONLY for DGS-3627 and DES-3528.
Copyright 2012-2013 D-Link Corporation
DCS-Switching
19
Lab 2
D-Link Academy
21. Type show switch to verify that Telnet has been enabled.
22. Type save to save changes in the Switchs configuration to non-volatile RAM.
Lab Verification
At the end of this lab, you have learned:
20
DCS-Switching
D-Link Academy
Lab 3
Lab 3: VLAN
Chapter 3
VLAN
[Chapter 3: VLAN]
Version 1.0
Lab Objective
In this lab, you will learn to create and configure VLANs on the switch. After completing this
lab, you will have acquired the skills to create both static and dynamic (GVRP) VLANs.
DCS-Switching
21
Lab 3
D-Link Academy
Lab Topology
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528 or DGS-3120-24TC.
Command List
Command
Description
<vlanid 1-4094>}
22
DCS-Switching
D-Link Academy
Lab 3
Command
Description
ingress_checking [enable | disable] the sending and receiving of GVRP information, and
| acceptable_frame[tagged_only |
admit_all]pvid<vlanid 1-4094>}
(DGS-3620-28TC, DES-3528)
[enable | disable]}
create vlan <vlan_name 32> {tag
<vlanid 2-4094> | type 1q_vlan |
advertisement}
delete vlan <vlan_name 32>
disable gvrp
enable gvrp
Lab Details
Switch Name
Switchs IP
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 24
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 24
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
Examples:
SWRx1 in Pod 1=SWR11; IP Address is 10.90.90.11/24
SWRX1 in Pod 2=SWR21; IP Address is 10.90.90.21/24
Copyright 2012-2013 D-Link Corporation
DCS-Switching
23
Lab 3
D-Link Academy
24
DCS-Switching
D-Link Academy
Lab 3
Type show vlan and show vlan ports to verify that Port 3 is untagged and is assigned
to VLAN v10.
6. On SWx5, type ping 10.90.90.x3 times 5. The ping traffic fails because SWx3 and
SWx5 are not assigned to the same VLAN, and routing has not been enabled.
7. On all switches, type ping 10.90.90.x5 times 5. The ping traffic fails because SWx5 is
in a different VLAN.
DCS-Switching
25
Lab 3
D-Link Academy
Type show vlan and show vlan ports to verify that Ports 1 and 24 are tagged and
assigned to VLAN v10 and v20.
7. On SWRx1, SWRx2, SWx3, and SWx4, type show vlan. On SWRx1, the VLAN Type is
shown as Static and the Advertisement is shown as Enabled. On SWRx2, SWx3, and
SWx4, the VLAN Type is shown as Dynamic and the Advertisement is shown as
Enabled. This shows that the VLAN has been successfully advertised from SWRx1 to
the other switches.
Lab Verification
At the end of this lab, you have now learned:
26
DCS-Switching
D-Link Academy
Lab 4
Lab Objective
In this lab, you will learn to create and configure the Spanning Tree Protocol (STP). After
completing this lab, you should be able to configure STP and RSTP as well as primary and
secondary root bridges.
DCS-Switching
27
Lab 4
D-Link Academy
Lab Topology
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528 or DGS-3120-24TC.
Command List
Command
Description
enable stp
disable stp
28
DCS-Switching
D-Link Academy
Lab 4
Command
config stp version [mstp | rstp | stp]
Description
This command is used to enable the STP version
globally.
config stp priority <value 0-61440> This command is used to configure the instance
instance_id <value 0-15>
priority.
This command is used to show the global settings of
show stp
config stp
Lab Details
Switch Name
Switchs IP
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 24
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 24
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3, 24
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3, 24
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
Examples:
SWRx1 in Pod 1=SWR11; IP Address is 10.90.90.11/24
SWRX1 in Pod 2=SWR21; IP Address is 10.90.90.21/24
DCS-Switching
29
Lab 4
D-Link Academy
2. Enter show ports to verify that all the ports are disabled under the column Port State or
State/MDIX.
3. To enable the ports of the Switch, enter config ports <portlist> state enable, where
<portlist> represents the port number. Your switchs enabled ports can be obtained from
the Lab Details section. For example, if you belong to SWRx1, your enabled ports are
Ports 1 and 24. The command is config ports 1,24 state enable.
3. The default STP version is RSTP. To set it to STP, enter config stp version stp on
SWRx1, SWRx2, SWx3, and SWx4. You will obtain the following status:
30
DCS-Switching
D-Link Academy
Lab 4
4. On SWRx1, SWRx2, SWx3, and SWx4, enter config stp version rstp to revert the STP
status back to RSTP.
5. On SWx3 and SWx4, enter config stp ports 3 edge true to configure Port 3 as the edge
device. This means that SWx5 and SWx6, which are connected to Port 3, will not
participate in STP.
6. On SWx3 and SWx4, enter show stp ports 3 to verify that the status of the Edge port
is set to True.
7. On SWRx1, SWRx2, SWx3, and SWx4, enter show stp instance 0. What is the MAC
address of the Designated Root Bridge?
_________________________________________________
8. On SWRx1, SWRx2, SWx3, and SWx4, enter show switch. What is the MAC address of
the switch?
_________________________________________________
9. Compare the MAC address of the switch and the MAC address of the Designated Root
Bridge. Are they the same? Yes/No
10. If yes, it means that the switch is the Designated Root Bridge. If no, it means that the
switch is not the Designated Root Bridge.
DCS-Switching
31
Lab 4
D-Link Academy
32
DCS-Switching
D-Link Academy
Lab 4
2. On SWx4, enter config ports 1 state disable to disable Port 1. (This is for testing STP
convergence.)
3. On SWx4, enter show stp ports 1,3,24 to verify that Port 1 is disabled and not the Root
port (Port 24 is now selected as the Root port).
4. On SWx4, enter config ports 1 state enable to enable Port 1, and enter show stp
ports 1,3,24 to verify that Port 1 is selected as the Root port and Port 24 as the
Alternate port.
Lab Verification
At the end of this lab, you have now learned:
DCS-Switching
33
D-Link Academy
Lab 5
Lab 5: Stacking
Chapter 5
Switch Stacking
Lab Objective
In this lab, you will learn to configure stacking. After completing this lab, you should be able
to configure two types of stacks: physical and virtual.
DCS-Switching
35
Lab 5
D-Link Academy
Lab Topology
(DGS-3627)
Port 28 (DGS-3620-28TC)
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528 or DGS-3120-24TC.
Command List
Command
config box_id current_box_id <value
1-12 > new_box_id [auto | <value 112>]
config box_priority current_box_id
Description
This command is used to configure the Box ID. Users
can use this command to reassign Box IDs.
This command is used to configure the box priority of
36
DCS-Switching
D-Link Academy
Lab 5
Command
Description
master role.
disable sim
enable sim
<macaddr>} | neighbor]}
This command is used to display information about
show stack_device
show stack_information
show stacking_mode
mode.
Lab Details
Switch Name
Switchs IP
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 26/28
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 27
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
DCS-Switching
37
Lab 5
D-Link Academy
38
DCS-Switching
D-Link Academy
Lab 5
3. When the switches have rebooted, on SWRx1, enter show stack _device and show
stack_information to verify the stacking settings.
DCS-Switching
39
Lab 5
D-Link Academy
5. Based on the above scenario, SWRx1 is the Master Box. If a different switch should be
selected as the Master Box, use the command config box_priority current_box_id
<value 1-12> priority <value 1-63>.
Example: enter config box_priority current_box_id 2 priority 1 to change the
Master Box to SWRx2, then save the configuration and reboot the switch.
In the above figure, the Master Box is SWRx1 and has the serial number P1JH195000010.
40
DCS-Switching
D-Link Academy
Lab 5
In the above figure, the new Master Box has the serial number P1JH95000008. The
switchs command prompt remains the same because they are stacked.
Note: After completing this task, the stacking cable needs to be physically disabled to
terminate stacking and change the SWRx2 System IP address back to 10.90.90.x2 in
order to proceed with Task 3.
DCS-Switching
41
Lab 5
D-Link Academy
3. On SWRx1, enter config sim_group add 1. SWRx1 will add SWRx2 to the SIM group.
Note: If you are asked for the password, input the password of SWRx2.
4. On SWRx1, enter show sim candidates. Zero candidates will be displayed as SWRx2
has already joined the SIM group. Enter show sim members and SWRx2 should be
displayed as one of the SIM members.
42
DCS-Switching
D-Link Academy
Lab 5
6. After completing logical stacking of the switches, use the Web browser to access SWRx1
(IP address 10.90.90.11). Through the Web browser, it is now possible to manage all the
switches that are logically stacked together.
DCS-Switching
43
Lab 5
D-Link Academy
Lab Verification
At the end of this lab, you have now learned how to enable physical and virtual stacking.
44
DCS-Switching
D-Link Academy
Lab 6
Lab Objective
In this lab, you will learn to configure routing using two different methods: static and
dynamic.
DCS-Switching
45
Lab 6
D-Link Academy
Lab Topology
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528.
Command List
Command
Description
1-4>]}]
46
DCS-Switching
D-Link Academy
Lab 6
Command
delete iproute [default |
<network_address>] [null0 |
<ipaddr>]
show iproute {[<network_address>
| <ipaddr>]} {[static | rip | ospf |
bgp | hardware]}
enable rip
Description
This command is used to delete an IP route entry from
the switchs IP routing table.
This command is used to display the switchs current
IP routing table.
This command is used to enable the RIP routing.
preference.
<value 1-999>
show route preference {[ local |
static | default | rip | ospf | ospfIntra This command is used to display the route preference
| ospfInter | ospfExt1 | ospfExt2 |
ebgp | ibgp]
Lab Details
Switch Name
Switchs IP
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 24
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 24
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
DCS-Switching
47
Lab 6
D-Link Academy
48
DCS-Switching
D-Link Academy
Lab 6
4. On SWRx1, enter ping 10.90.x2.11 times 5 and on SWRx2, enter ping 10.90.x1.11
times 5. Both the pings will be successful because there is a route configured to reach
each VLAN.
DCS-Switching
49
Lab 6
D-Link Academy
50
DCS-Switching
D-Link Academy
Lab 6
8. On SWRx1, enter ping 10.90.x2.11 times 5 and on SWRx2, enter ping 10.90.x1.11
times 5. Both the pings will be successful because there is a route configured to reach
each VLAN.
DCS-Switching
51
Lab 6
D-Link Academy
Lab Verification
At the end of this lab, you have now learned:
How to configure dynamic routing through the use of the RIP protocol.
52
DCS-Switching
D-Link Academy
Lab 7
Lab Objective
In this lab, you will learn to configure DHCP, ACL, LLDP, and System Maintenance. After
completing this lab, you should be able to configure dynamic address allocation, permitting
or denying traffic, learning about your neighbors, and backing up your firmware and
configuration files.
DCS-Switching
53
Lab 7
D-Link Academy
Lab Topology
Note:
SWRx1 and SWRx2 are DGS-3627 or DGS-3620-28TC.
SWx3, SWx4, SWx5, and SWx6 are DES-3528 or DGS-3120-24TC.
Command List
DHCP Command
config dhcp pool default_router
<pool_name 12> <ipaddr>
{<ipaddr>} {<ipaddr>}
54
DCS-Switching
Description
This command is used to configure the default router
for the DHCP client.
D-Link Academy
Lab 7
DHCP Command
config dhcp pool dns_server_address
<pool_name 12> <ipaddr>
{<ipaddr>} {<ipaddr>}
Description
This command is used to configure the IP addresses of
DNS servers for a specific DHCP pool.
<pool_name 12>
<network_address>
pool.
begin_address <ipaddr>
end_address <ipaddr>
addresses.
create dhcp pool <pool_name 12> This command is used to create a DHCP pool.
disable dhcp_server
enable dhcp_server
12>}
information.
show dhcp_server
ACL Command
Description
config access_profile
create access_profile
show access_profile
LLDP Command
Description
<sec 5 32768>
transmission interval.
disable]
DCS-Switching
55
Lab 7
D-Link Academy
LLDP Command
Description
{mac_phy_configuration_status |
link_aggregation |
maximum_frame_size}] [enable |
LLDP advertisements.
disable]
config lldp ports [<portlist>|all]
address instances.
disable lldp
enable lldp
show lldp
TFTP Command
Description
download firmware_fromTFTP
{[<ipaddr> | <ipv6addr>
|<domain_name 255>] src_file
<path_filename 64> {dest_file
{{unit [<unitid 1-12> | all]}
56
DCS-Switching
D-Link Academy
Lab 7
Lab Details
Switch Name
Switchs IP
Address
Enabled Ports
Connected PC
(if any)
PCs IP Address
SWRx1
10.90.90.x1/24
1, 24
PCx1
10.90.90.x01/24
SWRx2
10.90.90.x2/24
1, 24
PCx2
10.90.90.x02/24
SWx3
10.90.90.x3/24
1, 3
PCx3
10.90.90.x03/24
SWx4
10.90.90.x4/24
1, 3
PCx4
10.90.90.x04/24
SWx5
10.90.90.x5/24
PCx5
10.90.90.x05/24
SWx6
10.90.90.x6/24
PCx6
10.90.90.x06/24
Examples:
SWRx1 in Pod 1=SWR11; IP Address is 10.90.90.11/24
SWRX1 in Pod 2=SWR21; IP Address is 10.90.90.21/24
DCS-Switching
57
Lab 7
D-Link Academy
VLAN
v10
v20
DHCP Server
SWRx1
SWRx2
DHCP Clients
SWx3, SWx5
SWx4, SWx6
DHCP Pool
v10-pool
v20-pool
10.90.x1.0/24
10.90.x2.0/24
10.90.x1.1/24 to
10.90.x2.1/24 to
10.90.x1.20/24
10.90.x2.20/24
58
DCS-Switching
D-Link Academy
Lab 7
8. To reach the different subnets, ensure that the RIP configuration from Lab 6 is still
implemented by using the show iproute command.
DCS-Switching
59
Lab 7
D-Link Academy
60
DCS-Switching
D-Link Academy
Lab 7
DCS-Switching
61
Lab 7
D-Link Academy
62
DCS-Switching
D-Link Academy
Lab 7
DCS-Switching
63
Lab 7
D-Link Academy
Lab Verification
At the end of this lab, you have now learned:
How to use TFTP services to upload or download firmware and configuration files.
64
DCS-Switching