Вы находитесь на странице: 1из 4

Lab Activity: Demonstration of an

IoT Device
Introduction

In this short lab activity, you will use Packet Tracer 7 to build a small LAN which has a PC and a
smart lamp. Using the PC, you will control the brightness of the smart lamp.

Network Design and Implementation

Open up the Packet Tracer software and build the network configuration shown in the above
diagram:
 One server
 One PC
 One 2960 LAN switch
 One IoT Light (the smart lamp)
On the server, make these configuration changes:
 Give the server the static IP address 192.168.1.1 and the netmask 255.255.255.0
 Set the server to be its own default gateway
 Turn on the DHCP service on the server:

 Turn on the IoT service on the server:

 On the IoT lamp, enable DHCP:

 On the IoT lamp, set up the IoT server as 192.168.1.1 with username ‘admin’ and password
also ‘admin’:

 On the PC, enable DHCP:


Verifying the Configuration

You should now have your network configuration completed. It’s time to verify that this is the case.
In Packet Tracer, hover your mouse over the server, the PC and the smart lamp. Check that each
device has an IP address in the 192.168.1.0 /24 range and with the /24 netmask. Now perform some
pings between the three devices to ensure that they can exchange packets.

Registering the PC and Lamp on the IoT Server

We are nearly ready to control the lamp’s brightness from the PC. Before we do this, we have to
register a username and password from the PC on to the IoT server, and do the same with the lamp.
On the PC’s desktop, choose the IoT Monitor application. In the window that opens, change the IP
address of the IoT server to 192.168.1.1, then click on the Login button:

This will fail, as that username/password combination has not been registered on the server.

Click on the “Sign up now” link at the bottom of the new window. Enter the username ‘admin’ and
the password ‘admin’, and register this combination on the IoT server.
Go back to the smart lamp and click on the Connect (or Refresh) button to register the lamp on the
IoT server with the username ‘admin’ and password ‘admin’.

Sending IoT Commands to the Lamp

We now have both the PC and the IoT lamp registered with the IoT server. Go back to the IoT
monitor application on the PC’s desktop. You should now see the smart lamp.

Click on the IoT device’s name on the gray bar to reveal the controls shown in the above image.
You can now click on the three buttons ‘Off’, ‘Dim’ and ‘On’ to control the brightness of the lamp.
Go back to your network diagram. As you click on the brightness buttons, you will see the lamp
change in brightness in the network diagram. You will also see the green link lights on the PC,
server and smart lamp flash. This shows that the IoT commands are going from the PC to the server,
which is passing them on to the lamp itself.

Other IoT Devices


Packet Tracer comes with quite a few IoT devices, including a fan, a humidifier and a siren. Try
connecting some of these to the switch. Before you can control these devices from the PC, you will
need to enable DHCP on the IoT device, and register a username/password with the IoT server.

Вам также может понравиться