Routing Exercise Solutions

Published on December 2016 | Categories: Documents | Downloads: 86 | Comments: 0 | Views: 614
of 3
Download PDF   Embed   Report

Comments

Content

Solutions to Routing Exercises
1. Based on the following routing table from a router, draw a diagram showing the 
approximate configuration of the Network that the router is a part of.
Destination Gateway

Genmark

Flags Metric Ref Use

192.168.5.20
192.168.1.81
192.168.10.0
192.168.18.0
192.168.64.0
192.168.128.0
127.0.0.0
0.0.0.0

255.255.255.255
255.255.255.255
255.255.255.0
255.255.254.0
255.255.192.0
255.255.192.0
255.0.0.0
0.0.0.0

UGH
UGH
U
U
UG
UG
U
UG

192.168.10.7
192.168.10.5
0.0.0.0
0.0.0.0
192.168.10.5
192.168.10.7
0.0.0.0
192.168.10.20

1
1
0
0
1
1
0
1

0
0
0
0
0
0
0
0

Iface

180 eth1
187 eth1
63311 eth1
753430 eth0
47543 eth1
89011 eth1
564 lo
183436 eth1

b. First of all, notice that the eth0 interface is on 192.168.18.0/ 23 network and the eth1 
interface is connected to the 192.168.10.0/24 network. 

192.168.64.0/18
192.168.10.5

192.168.18.0/23

192.168.1.81/32
eth0

R
eth1

192.168.10.0/24
192.168.10.7

192.168.128.0/18
192.168.5.20/32

  Bear in mind that R only knows that to send packets 
from R to the 192.168.64.0/18 network and the host 
192.168.1.81,  it should send packets to the host 
192.168.10.5 through eth1 interface. We do NOT know 
how 192.168.10.5 will send packets to 192.168.64.0/18 
or  192.168.1.81

d. The b'cast address of the eth0 interface is where the last 9 bits (host bits) of 
192.168.18.0 are set to 1. This gives 192.168.19.255. For the eth1 interface, the b'cast 
address is where the last 8 bits of 192.168.10.0 are 1, that is 192.168.10.255.

2. Explain what the flags in the routing table above signifies. More generally,
a) If a routing table entry has only the U flag, what does that mean (remember that 
routing table flags are statements about the destination)?
b) If a routing table entry has  UG flags, what does that say about the destination?
c) If a routing table entry has  UGH  flags, what does that say about the destination?
d) If a routing table entry has  UH flags, what does that say about the destination?
a) If a routing table entry has only the U flag, it means that the destination is directly 
connected to that interface, and that it is not a host (it's a network)
b) An entry with UG flags will mean that the destination is a network address (not host 
address) and NOT directly connected to this interface.
c) Presence of UGH flags in an entry mean that the destination is a host IP and NOT 
directly connected to this interface.
d) UH flag means that the destination is a host IP, directly connected to this interface.
3. Construct routing table entries (only Destination, Gateway, Genmask, Flags and Iface)
for  the router R1. (Note that x.y.z.w/32 means it is a host IP, not a network address. On 
the other hand, it is not obvious (or is it?) if 192.168.5.128/25 is a host IP or a network 
address – you will have to decide that)
192.168.16.0/21

192.168.10.0/24

192.168.10.11

R2
192.168.10.101
eth0

192.168.10.12

192.168.5.128/25

192.168.16.100

R1

192.168.100.192/26

192.168.16.120
192.168.16.101

R3

eth1

192.168.17.101
192.168.10.14

R4

0.0.0.0/0 default, Internet
192.168.254.135/32

Omitting loopback interface, the routing table for R1 looks like:

Destination Gateway

Genmark

Flags Iface

192.168.10.0
192.168.16.0
192.168.5.128
192.168.100.192
192.168.254.135
0.0.0.0

255.255.255.0
255.255.248.0
255.255.255.128
255.255.255.128
255.255.255.255
0.0.0.0

U
U
UG
UG
UGH
UG

0.0.0.0
0.0.0.0
192.168.16.100
192.168.16.120
192.168.107.101
192.168.16.120

eth0
eth1
eth1
eth1
eth1
eth1

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close