· 9 years ago · Mar 15, 2016, 05:48 PM
1Module 8011 Computer networks and multimedia
2Assignment 1 – LAN configuration
3Student number
415066457
5
6
7
8Aims
9The aims of this lab exercise are to:
10• configure the IP address of a host computer
11• establish a LAN using a switch and two host computers
12• check the connectivity of two host computers on the LAN using ‘ping’
13• examine the ping messaging using Wireshark
14• examine the mac address table contents
15
16Work in groups of two. Each person will be responsible for one PC.
17Note that there are PCs on the desk and PCs under the desk in R2.17. The network you will be using uses the PCs on top of the desk.
18When you log on to the monitor you can switch between these two PCs by double clicking on the Scroll Lock key.
19Type alt ctrl del and then enter
20Username: ‘student’
21Password: No password needed
22(If this is not accepted then you are on the wrong PC – double click on the Scroll Lock key)
23
24
25TASK 1​Configure IP address and subnet mask
26You will use the network address 192.168.10.0
27What class of address is this?
281. Class C ü
29
30
311 mark
32
33What is the correct subnet mask for this address?
34
351. 255.255.255.0 ü
36
371 mark
38Go to:
39Start
40Control Panel
41Network and Internet
42Network and Sharing Centre
43Local Area Connection
44Highlight ‘Internet Protocol Version 4’
45Select Properties
46
47This brings up a menu which allows you to set the IPv4 address and subnet mask
48Select the option ‘Use the following IP address’
49Configure one PC with an IP address of 192.168.10.1 and a subnet mask of 255.255.255.0
50Configure the second PC with an IP address of 192.168.10.2 and a subnet mask of 255.255.255.0
51(Note: A default gateway address is not needed for a simple LAN with no router connection)
52Then select ‘Close’
53(In the box asking you if you want to restart the computer - select ‘No’)
54
55TASK 2​Connecting the LAN
56Check the red cable at the back of the PC. Look for the port number on the wall to which this cable is connected. It will be a letter (A, B, C or D) followed by a number.
57The letter corresponds to the equipment rack, situated in one of the four corners of the room, to which this PC is connected. The number indicates the port you are connected to on that equipment.
58Each rack of equipment has a set of switches and routers. The three switches are the three units at the top of the rack. Each group of two should use a different switch.
59Go to your equipment rack and in the middle you will find a patch panel. All the ports along the row that you are in are connected to this patch panel and the numbers correspond to those on the wall behind the PCs.
60Take a red cable from the adjacent cable rack (this cable has RJ45 connectors) and make a connection from the patch panel port connected to one of your PCs to one of the ports on one of the switches (you can use any port).
61Do the same for your second PC.
62You will initially see an orange LED on the switch next to the connector. After a short time this will turn to green which indicates the switch has registered the connection and is good to go.
63Check connectivity
64On both PCs:
65Go to Start and type ‘cmd’ in the search box
66This will bring up the command interface
67Type ‘ipconfig /all’ at the command prompt
68What are the IPv4 address and subnet mask?
69
70IPv4: 192.168.10.2 subnet mask: 255.255.255.0 ü
71
72
731 mark
74
75Note down the MAC address for this PC
76
7700-1a-a0-a3-0b-06 ü
78
79
801 mark
81
82
83TASK 3​Ping
84At the command prompt type ‘ping’ followed by the IP address of the other PC on your LAN
85Note down the response that you get
86
871. Packets : sent = 4, received = 4, lost = 0(0% lost)
88Approximate round trip times in milliseconds
89Minimum = 0ms, maximum = 0ms, average = 0ms ü
90Note 4 replies received
91
922 marks
93Send another ping to address 192.168.10.3
94What response do you get and why?
951. Destination host unreachable ü
96- There is no system connected to the network with the given ip address ü
972 marks
98Remove one of the connections to the switch
99At the command prompt type ‘ping’ followed by the IP address of the other PC on your LAN
100What is the response that you get and why?
101
1021. Destination host unreachable ü
103- This is because the system is no longer connected to the network, thus the other system has no was to send information ü
104
1052 marks
106Replace the connection to the switch
107Change the IP address of the second PC to 192.168.11.2 (Originally 192.168.10.2)
108Send another ping followed by the address 192.168.11.2
109What is the response that you get and why?
1101. Destination host unreachable
111The response in this case is ‘General Failure’
112
113- This is because both PCs are in different networks ü
114
1152 marks 1 mark
116** Change the IP address of the second PC back to 192.168.10.2
117TASK 4​Wireshark
118Open up the application ‘Wireshark’ from the desktop.
119Select
120Capture
121Interfaces
122Start
123
124You should see a set of messages appear.
125Go back to the command prompt and type ‘ping’ followed by the IP address of the other PC on your LAN
126You should see text in pink that show the messages generated by the ping command
127What information can you get from these messages?
128
129a. Source – where the information came from
130b. Destination – where ping message will be sent
131c. Protocol – i.e. ICMP
132d. Length- size in bytes
133e. Time
134Give more detail - Note that the IP addresses for source and destination correspond to the addresses that you set for your two PCs. Note that there are four events listed in sequence for each ping which correspond to the four responses that you got in Task 3. Note that there are request messages from the source and reply messages from the destination.
135
1364 marks 1 mark
137
138
139TASK 5​Investigate the switch MAC address table
140Check the light blue cable at the back of your PC.
141Note the port number to which it is connected.
142Go to your equipment rack and use a red cable to connect from the patch panel connection corresponding to the blue cable to the switch console port.
143[Note: The switch console port gives access to the management of the switch
144The console port on these switches is actually at the back but we have made a connection through to a port on the front which is labelled SW1C/SW2C/SW3C for switches 1, 2, 3 respectively (Switch 1 is the top one, switch 2 the middle one, switch 3 the lower one)]
145From the desktop on your PC, select the HyperTerminal application.
146Enter your name (any name will do)
147State OK for the next screen with COM1
148On the next screen change the bit rate from 2400 bps to 9600bps and keep the other parameters as they are and state OK
149If you have connected this PC to the switch console port then the HyperTerminal should now indicate a connection to the switch.
150It will ask you if you want to enter a dialogue – just say NO
151
152Give it a short time to load up and then you should have a command prompt
153Switch>
154At the prompt type ‘enable’
155That will give you another prompt
156Switch#
157Now you can interrogate the switch MAC table which is what it uses for making the connections between your PCs
158At the command prompt type ‘show mac address-table dynamic’
159
160What are the dynamic MAC addresses learned by the switch
161
1621. 001a.a0a3.0842 ü
163001a.a0a3.0bd6 ü
164
1652 marks
166
167
168
169
170Which switch ports are they associated with?
1711. Fa0/12 ü
172Fa0/10 ü
173
1742 marks
175
176What VLANs are listed?
1771. 1 ü
1781 ü
1791 mark
180
181
182
183Task 6 Connecting to a router
184
185The aim of Task 6 is to configure two PCs with different network addresses and connect them to a router and examine the connectivity using ping.
186Note that there are three routers located at the bottom of each rack.
187Connect the console cable from your PC to the router console input which is on the front panel of the router.
188
189Go back to your hyperterminal display – you may have to wait for the router to set up, so give a minute or two – then you should see the ‘Router’ prompt.
190At the prompt type ‘enable’
191That will give you another prompt
192Router#
193
194You now need to configure the two LAN interfaces on the router labelled Ge0/0 and Ge0/1by giving them IP addresses.
195[Note: Ge stands for Gigabit Ethernet]
196Let’s make Ge0/0 address 192.168.10.10/24
197And Ge0/1 address 192.168.11.10/24
198What networks are these interfaces in?
1991. Ge0/0 is in the .10 network while ge0/1 is in the .11 network
200Give the full network addresses: 192.168.10.0 and 192.168.11.0
201
2022 marks 1 mark
203
204Configure the Ge0/0 interface
205Type:
206Router#config terminal
207Router(config)#interface G0/0
208Router(config-if)# ip address 192.168.10.10 255.255.255.0
209Router(config-if)#no shutdown
210
211Configure Ge0/1 interface
212Type:
213Router(config-if)#interface G0/1
214Router(config-if)# ip address 192.168.11.10 255.255.255.0
215Router(config-if)#no shutdown
216
217Check router interfaces:
218Router(config-if)#end
219Router#
220Type:
221Router#show ip interface brief
222
223What IP addresses are listed for the interfaces Ge0/0 and Ge0/1?
2241. Ge0/0 192.168.10.10 ü
225Ge0/1 192.168.11.10 ü
226
2272 marks
228
229Check router routing table:
230Type:
231Router#show ip route
232What IP network addresses are listed as Connected (C) to interfaces Ge0/0 and Ge0/1?
2331. Ge0/0 192.168.10.0/24 ü
234Ge0/1 192.168.11.0/24 ü
235
236
2372 marks
238
239PC configuration:
240First PC:
241Connect this PC to the Ge0/0 interface on the router
242Set the IP address to 192.168.10.1 with a subnet mask of 255.255.255.0
243As you are connecting to a router you now need to add the gateway address which is the router interface. Use the address you gave to the Ge0/0 interface on the router.
244
245Second PC:
246Connect this PC to the Ge0/1 interface on the router
247Set the IP address to 192.168.11.2 with a subnet mask of 255.255.255.0
248As you are connecting to a router you now need to add the gateway address which is the router interface. Use the address you gave to the Ge0/1 interface on the router.
249
250Ping from PC1 to PC2
251What reply did you get? Explain the significance of using a router in achieving this result.
2521. Packet sent = 4, received = 4 lost = 0 (0% lost)
253Approximate round trip times in milliseconds
254Minimum = 0ms, maximum = 0ms, average = 0ms ü
255- Routers allow 2 different networks to communicate with each other whilst a switch only allows local network to inter-communicate ü
256
2573 marks
258
259
260