代写COMP2001J、Python/c++编程代做
COMP2001J Computer Network 2024
1
Packet Tracer Lab: Introduction
Abstract:
You will learn the basics of setting up networks of computers in Packet Tracer by the following steps:
1. Create a network by physically connecting two computers
2. Get these two computers to communicate with each other
3. Add more computers using a switch
4. Add a router to allow communication outside of the network you have created
Note: All steps described in this lab note have been successfully tested using Packet Tracer 7.3 MacOS 64-
bit version.
Build a basic network
First, we create a basic network by adding two computers to the simulation and connecting them. When we
connect them together, we use a cross-over cable because we are connecting two devices of the same type.

This image with two green dots on both sides shows two computers have already been physically connected.
The dashed cable shows that it is a cross-over cable.

Basic network configuration
Before they can actually communicate, we must set up the network on each device.

By clicking on each individual component, we can configure the network settings of devices. In PC0, we set
its IP address 192.168.1.1 and its subnet mask 255.255.255.0.

In PC1, we set its IP address 192.168.2.1 and its subnet mask 255.255.255.0. Now send a message from PC0
to PC1 (click “add simple PDU”->click “pc0”->click “pc1”). Because the two computers are not in the same
subnet (why?), they cannot communicate with each other, and messages cannot be sent.

To solve this, we either change the subnet mask in both devices or change the IP address of one of the
computers to keep them in the same subnet. The easiest solution is to change the IP address of PC1 to
192.168.1.2.
COMP2001J Computer Network 2024
2
Adding more computers using a switch
A single cable is enough for two computers to communicate with each other. However, in reality, we usually
want more computers to be able to communicate and work together. To do this, we can add a switch. There
are many types of switches that can be added to the network simulations, we choose an empty switch
(Switch-PT-Empty) to get started.

Then, we need to add the necessary ports to this switch. In this example, we will connect four devices, so
we must add four ports to the switch (after we have powered it off). There are different types of ports:
ethernet (10 Mbps), fast ethernet (100 Mbps), and gigabit ethernet (1 Gbps). These are labeled ending in CE,
CFE, and CGE, respectively. As the computers we have created all have fast ethernet connections, we should
drag 4 of these to the switch and power it back on.

Now we can add some more devices (e.g., a laptop and a printer). These should all be connected to the
switch using a straight copper cable. Just like the previous example. we need to set the IP address of each
of the devices and their subnet masks. They should be set to the following values (192.168.1.1 reserved for
the gateway later):
• PC0: 192.168.1.2; 255.255.255.0
• PC1: 192.168.1.3; 255.255.255.0
• Laptop0: 192.168.1.4; 255.255.255.0
• Printer0: 192.168.1.5; 255.255.255.0

Now, you should send messages between any of the devices to test if they are connected.

Connecting to other networks using a router
We are going to add a router such that we can communicate with other devices outside our network. Routers
are more complicated to set up and configure than simple switches, so we must learn how to configure them.

First, we add an empty router to our simulation. We should add two fast ethernet ports to this empty router,
one for connecting to our switch and the other for connecting to something else in the other network. We
remove the “printer0” to free a port of the switch in our network. Connect the switch to the router using a
straight copper cable and click on the router to configure the device. Remember which port number in the
router that we connected the switch to.

Power it off COMP2001J Computer Network 2024
3
Router Configuration
To configure the router, we need to type commands into the CLI (Command Line Interface). This can be
opened by choosing the CLI tab and pressing enter. We should see a terminal like this:

This allows us to type the command into the system to change the settings. If we are unsure what the correct
command is, we can type “?” or add it to a command that we are not sure of.

1. Before changing settings, we have to enable the privileged mode by typing the command enable (or
en). This gives us more options so that we can execute to change the settings.

2. To start setting up the device, we use the configure terminal command. This allows us to configure
the different network interfaces.

3. After this, we must select the correct interface and define the type of connection and the port
number. The switch is connected to this router using fastEthernet over port 0/0 so the command is:
interface fastEthernet 0/0

4. Now we have selected the interface, we can set details like the IP address and subnet mask. This is
done with the command ip address followed by the ip address and the subnet mask. Here we are
going to give the address 192.168.1.1 to the network interface connected to the switch and give it
the same subnet mask as the other devices in the network.

5. Lastly, we need to activate the interface so that it is operational. This is done with the command no
shutdown. This means that the interface will remain on when the device is powered up.

6. Assuming that everything else is done correctly, you should see a message ending ‘changed state to
up’. Finally, we need to exit the interface (so we can configure another interface).
COMP2001J Computer Network 2024
4

Adding a server
Now, we will add a Server to our simulation and connect it to the second port on the router. These should
be connected using a cross-over cable. We will go through the same steps to set the IP address of this
network interface to 10.1.1.1 with a subnet of 255.255.255.0.


After this, we need to set the IP address of the server to 10.1.1.2 with a subnet of 255.255.255.0.
Additionally, we need to set the gateway to the IP address of the router in this network (10.1.1.1). Lastly,
we need to change the settings of all devices in the first network so that the default gateway is set to the
IP address of the router in the first network (192.168.1.1). Now, we should be able to send messages to
devices outside our network.

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图