Академический Документы
Профессиональный Документы
Культура Документы
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.
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:
On the IoT lamp, set up the IoT server as 192.168.1.1 with username ‘admin’ and password
also ‘admin’:
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.
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’.
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.