Beruflich Dokumente
Kultur Dokumente
& Switching
Protocol
MINT-708
LAB MANUAL
Submitted by:- Nehal Sharma
1282695
Abstract
The information shared in this manual is very simple yet very challenging for
network engineers. It will help the reader in understanding the topics with much
more clarity. It will assist a reader to analyze the theoretical and practical
concepts of LAN/WAN. The basic knowledge of routing and switching protocols in
this manual will indulge the reader to explore these topics from root level to the
expert level. My entire approach was to create an environment, where a reader
finds it nourishing for his/her brain and transforms him/her to handle the real
world Inter-networks.
Table of content
Lab-1
Basic Knowledge
same devices like switch to a switch. Wire has two ends clamped with RJ45
connector. But color combination of wires is also important .there are two
types of color combination one is 568 A and other is 568 B
568A
Wire
1
2
3
4
5
6
7
8
568B
color
Green white
Green
Orange white
Blue
Blue white
Orange
Brown white
Brown
Wire
1
2
3
4
5
6
7
8
Color
Orange white
Orange
Green white
Blue
Blue white
Green
Brown white
Brown
Now, for a crossover cable one end of cable should be 568 A and other should be
568 B.
b.) Straight through cable: - Straight cable is used for connecting two different
devices like switch to a router. Wire has two ends clamped with RJ45
connector. But color combination of wires is also important. So, for a
crossover cable one end of cable should be 568 A and other should be 568A
too.
There are other cables as well like serial cable as they are used on serial ports
on routers. One end is DTE and other is DCE.
Console Cable is basically a rollover cable which is used to connect computer
terminal to a router console port. The ports are same in console cable so it can
connect two serial devices with the same cable.
Console server is a device which is used for accessing system consoles like
router or a switch. It allows user to access the network by using the
applications like telnet, ssh etc.
Auxiliary port is a synchronous serial port with Rj-45 connector on the other
side. It is used for connecting to the external modem. If the regular
connectivity fails it is used to troubleshoot or access routers.
On any cisco & Alcatel router:Write all the commands categorically which were used to perform all the steps in
both the routers
Lab-2
Network Address Translation
(NAT) & Port Address
Translation (PAT)
10
13
14
15
16
ROUTER
IP ADDRESSING
Private IP Addressing
1X.0.0.0/24
192.168.0.0/24
17
1.) Providing IP address to all the routers:Give IP addresses to routers R1, R2, R3 and R4 according to IP
addressing schema.
Apply static routing in these routers so that they can communicate with
each other.
2.) Implement Static Network Address Translation on router
Apply static NAT on router on router R3 and R4
Ping from Host B to R3 and finally from host B to Web Server
After the implementation of static NAT take the output by using
command:Sh ip nat translation on both R4 and R3.
3.) Implementation of Dynamic NAT on R4.
Remove static routing from Router R4
Implement Dynamic NAT on router R4
Ping from Web Server to Host B
After the implementation of Dynamic NAT take the output by using
command:Sh ip nat translation on R4 .
Sh ip nat statistics on R4 .
4.) Configure Web Server
Configure web server using the windows web development tool like
Wamp server.
Use the public IP Address of web server on Host B to open a web link
from web server
5.) Implement PAT on router R4
Implement Port Address Translation on router R4
Ping from Web Server to Host B
After the implementation of Port Address Translation take the output by
using command:Sh ip nat translation on R4.
18
19
Lab-3
Virtual LAN (VLAN) & Spanning
Tree Protocol (STP)
20
22
23
Scenario 2:
24
25
1X.0.0.0/24
2X.0.0.0/24
26
28
Lab-4
Static Routing (CIDR) & Route
Aggregation
29
Static routing
In the routing protocols, let`s discuss few key points about static routing. It is
basically a routing protocol in which routing is done manually, in other words in
static routing the routes are added manually in a routing table according to the
need of a particular network. It is a way to configure routing tables in any given
internetwork so that the packets sent from one router can be forwarded to the
any host or to any other network. When a packet is send from source the router
will look In its route table and the two entities which are very important in routing
table are :a.) Destination Address: Each router can reach across to one or many routers in
same or different network and this is the address of a particular network reached
by a router.
b.) Pointer to the destination: this is nothing but a pointer which provides to the
information of the destination network if it is directly connected or if it is not the
destination network then it will provide the information of next router via which
the packet will reach its destination. It is also called the Next-Hop Router.
The routing depend any of these few entities which are host address, subnet or a
group of subnets, major network number or a supernet and finally default
address. Now, there is something called floating routes. Floating route appears in
the routing table under a special situation, where a preferred route is failed.
Pros and Cons of Static Routing:
The advantage of having a static routing environment is that, it can provide higher
security. As the network admin has full control over the flow of IP datagrams
The disadvantage is that if the network is really large then it is going to be quite a
tough job for a network admin to add the required routes manually in each and
every router required in a network. The chances of confusion are more while
doing it manually.
30
31
Q9.) What is the route summarization of the entire following route:a.) 172.16.8.0/24
b.) 172.16.16.0/24
c.) 172.16.64.0/24
d.) 172.16.128.0/24
32
33
34
Router
IP Addressing
1X.0.0.0/24
Loopback on R4 IP range
3X.0.0.0/24
Loopback on R2 IP range
2X.0.0.0/24
35
36
37
Lab-5
Routing Information Protocol
38
RIP V1
RIP V2
RIPng-----this is RIP next generation
There are few limitations to Routing Information Protocol as the diameter of the
network cannot exceed than 15 hops. And, as we know UDP process the updates
in RIP has a maximum packet size of 512 bytes so it is able to accommodate only
25 prefixes.
RIP v2 has few new features that the previous version. Firstly, every route entry
carries their subnet masks. And, the updates of the routing information are
authenticated. Also, along with each route entry next-hop address id also carried.
Updates regarding the multicast routes are also a key feature in RIP v2. It actually
allows the use of variable length subnet mask which makes it a classless routing
protocol.
RIP v1 uses broadcast wherein RIPV2 uses multicast.
There are four kinds of RIP timers:(a) Update timer---------by default it is 30 seconds
(b) Invalid timer----------by default it is 180 seconds
(c) Holddown timer-----by default it is 180 seconds
(d) Flush timer------------by default it is 240 seconds
39
40
41
42
43
Router
IP Addressing
192.168.X.0/24
Loopback on R3 IP range
172.16.X.0/24
44
45
46
Lab-6
Open Shortest Path First (OSPF)
47
49
50
51
ROUTER
Internal IP Addressing Range
R1 loopback IP Range
R2 loopback IP Range
R4 loopback IP Range
R6 loopback IP Range
R8 loopback IP Range
IP ADDRESSING
10.0.0.0/24
192.168.X.0/24
172.16.X.0/24
172.18.X.0/24
172.17.X.0/24
172.19.X.0/24
52
6(d) LAB EXERCISE:1.) Providing IP address to all the routers:Give IP addresses to routers R1, R2, R3, R4, R5, R6, R7 and R8 according
to IP addressing schema.
2.) Configure OSPF
Configure OSPF in area 0 as it is the backbone
Create loopback 6 and loopback 7 in area0 with router R4
Configure OSPF in area 1
Create loopback 0, Create loopback 1 and Create loopback 2 in area 1
with router R1
Create loopback 3, Create loopback 4 and Create loopback 5 in area 1
with router R2
configure OSPF in area 2
Create loopback 8 and Create loopback 9 in area 2 with router R6
3.) Configure RIP
Configure RIP on router R5, R7 and R8
4.) Redistribution Rip into OSPF
In router R5 redistribute Rip network into the Ospf network.
Also, in router R5 redistribute Ospf network into the Rip network.
After the successful completion of above mentioned tasks document the
following:1. Show run of all the routers (for Alcatel, it should be sh admin displayconfig).
2. Sh ip route of all the routers (for Alcatel, it should be sh router routetable).
3. Show ospf neighbor of all the routers from R1 to R6 (for Alcatel, it should
be router ospf neighbor).
4. Sh ip ospf database of all the routers from R1 to R6 (for Alcatel, it should
be sh router ospf database)
5. Show ip ospf database-sumary of all the cisco routers(R1,R2,R4,R5,R6)
6. Sh ip rip database on router R5 and R7
53
Lab-7
Integrated IS-IS
54
55
56
57
58
59
Router
IP Addressing
10.0.0.0/24
172.17.X.0/24
172.16.X.0/24
60
7(d) LAB EXERCISE:1.) Providing IP address to all the routers:Give IP addresses to routers R1, R2, R3, R4, R5, R6, R7 and ALCATEL
according to IP addressing schema.
Configure loopback 0, loopback 1 and loopback 2 on router R6 in area 2.
Configure loopback 0, loopback 1 and loopback 2 on router R4 in area 1.
2.) Configure ISIS
Configure ISIS in router R5 and R6 as a part of area 2 with appropriate
levels.
Router R6 has three loopback addresses configure ISIS on that as well.
Configure ISIS in router ALCATEL and R1 as a part of area 0 with
appropriate levels.
Configure ISIS in router R2, R3 and R4 as a part of area 1 with
appropriate levels.
Router R4 has three loopback addresses configure ISIS on that as well.
Run the command of show ip route on all the routers and save this
output.
3.) Md5 Authentication
Apply Md5 authentication on router R2.
The key-string should be MINT708
The key chain should be ISIS
Verify authentication after the above steps is done, run the command
on router R2:-sh ip isis events and note the output of authentication
failure message.
Now, apply Md5 authentication on Router Alcatel, R1 and R5 with the
same above mentioned key-string and key chain
4.) Route summarization
Do route summarization on router R6
Also, Route summarization should be done router R4.
After the router summarization, note the change in router R2, R5, R1
and Alcatel by using the command of show ip route and compare it
with the output taken in step 2.
61
62
Lab-8
BORDER GATEWAY PROTOCOL
63
65
Q9.) Confederation in BGP is a way of:a.) Control large number of OSPF peers
b.) Control small number of RIP peers
c.) Control large number of IBGP peers.
d.) Create small number of IGP peers
66
67
68
ROUTER
IP ADDRESSING
172.16.X.0/24
192.168.X.0/24
69
8(d) LAB EXERCISE:1.) Providing IP address to all the routers:Give IP addresses to routers ALCATEL, R2, R3, R4, R5, R6, R7 and R8
according to IP addressing schema.
Configure loopback 0 on every router in AS X20.
Configure loopback 0 on every router in AS X10.
Configure loopback 0 on every router in AS X100.
2.) Configure BGP in Different AS
In AS X20 configure ebgp and ibgp appropriately
In AS X10 configure ebgp and ibgp appropriately.
Every router should have a loopback0 configured with it
Verify it using command sh ip route and sh ip bgp summary
3.) Redistribute OSPF
In AS X20 configure OSPF on all the routers
Redistribute OSPF in as X20 through the Ebgp routers.
In AS X10 configure OSPF on all the routers
Redistribute OSPF in as X10 through the Ebgp routers.
In AS X100 configure OSPF on all the routers
Redistribute OSPF in as X100 through the routers R7 and R8.
Redistribute BGP in as X100 through the routers R7 and R8.
Verify using show ip bgp and show ip bgp summary
71
Lab-9
IP MULTICASTING
72
IP Multicasting
IP Addressing is categorizing into three genres one is unicast, second is broadcast
and finally third is multicast. If a data is supposed to be transmitted to a single
receiver then the unicast addressing is used. If a data packet needs to reach all
the systems in the subnetwork then, broadcast address is used. But, if a datagram
is supposed to travel to a set of system which forms a group which is called
multicast group then, multicast address is used.
Unicasting and Broadcasting of data packets can be done by using class A, class B
and Class C addresses. But, the multicasting of datagrams can be done using only
Class D address which is ranged between 224.0.0.0 and 239.255.255.255.
In multicast packets the originator of the traffic does not hold any burden on itself
as the packets are duplicated via all the routers which are using Protocol
Independent Multicast. So, minimum bandwidth is required to move the
multicast packets across a huge multicast network without adding burden on
either source or receiver.
There is another entity which is called Protocol Independent Multicast, from its
name only it is clear that IP routing is independent of protocol. In this multicast
forwarding function is executed using unicast routing information. But routing
updates are neither received nor send between by PIM. There are two PIM modes
a.) PIM Sparse Mode
b.) PIM Dense Mode
Internet Group Management Protocol (IGMP) is basically a phenomena which join
all the client or receiver multicast groups. It helps sending out the request to all
multicast enabled routers to combine and form an actual multicast group. After
IGMP finish its work of asking groups to join, the real work of sending multicast
data to its destination is done by PIM.
Also, Rendezvous Point (RP) is a router which is selected to be root router of a
centralized multicast tree. RP has great ability to let different multicast sources to
use the same multicast tree.
73
74
9(b) Network Diagram
75
76
ROUTER
Internal IP addressing Range
Server IP Addressing Range
Terminal IP Addressing Range
IP ADDRESSING
172.16.X.0/24
10.0.0.0/24
192.168.X.0/24
77
9(d) LAB EXERCISE:1.) Providing IP address to all the routers:Give IP addresses to routers R1, R2, R3 and R4 according to IP
addressing schema.
Verify the connectivity by using command Show ip interface brief
command.
2.) Configure IP multicasting
Select one rendezvous point (RP) and give that RP to all the routers.
Configure Protocol independent multicast (PIM)
Configure Sparse mode for multicasting on all routers.
Configure default route among routers
Configure cisco group management protocol on routers appropriately.
Verify enabled multicasting by using command:- show ip multicast
interface <interface>
3.) On server side
Install VLC Player and stream a video for streaming on terminal\
4.) On Terminal side
Install VLC player and receive a stream of video from the server.
After the successful completion of above mentioned tasks document the
following:1. Show run of all the routers.
2. Sh ip mroute of all the routers.
3. Use wireshark on both server and terminal side to capture the multicast
packets.
4. Take a screenshot on both server and terminal side.
5. Show ip igmp groups command on all routers.
6. Verified output of step2
78
Lab-10
IP ADRESSING VERSION 6
(IP v6)
79
IPV6 Addressing
The Internet Protocol Version 6 was introduces because of the depletion of all the
IP v4 addresses. In today`s date internet is the most required and desired piece of
technology which everyone wants to own. This is 128 bit address was introduced
in order to increase the scalability and add security to the networks. Also, It is
very easy to implement and moreover, it is available in abundance.
It has eight 16 bit pieces combined together to form IPv6 address. Address
compaction is very much possible in IPv6 addresses. For example:Ipv6 address before compaction: -- ABCD:0000:0000:0000:0001:0011:1001:1110
IPV6 address after compaction: -- ABCD::1:11:1001:1110
Below is the conversion chart from binary to decimal to hexadecimal
BINARY
DEC
HEXA
BINARY
DEC
0
0000
0
8
1000
1
0001
1
9
1001
2
0010
2
10
1010
3
0011
3
11
1011
4
0100
4
12
1100
5
0101
5
13
1101
6
0110
6
14
1110
7
0111
7
15
1111
There are few address type allocations done in IPv6 address
HEXA
8
9
A
B
C
D
E
F
a.) 1/128 with prefix 0000 001 is reserved for NSAP allocation
b.) 1/128 with prefix 0000 010 is reserved for IPX allocation
c.) 1/8 with prefix 001 is reserved for global unicast address(Aggregatable)
d.) /1024 with prefix 1111 1110 10 is reserved for NSAP link-local unicast
address
e.) 1/256 with prefix 1111 1111 is reserved for multicast addresses
80
81
Q9.) In OSPF v3 interface type specified in the type 3 field of router LSA is?
a.) Point to Point connection
b.) Virtual link
c.) Connection to a transit network
d.) Reserved
82
10(b) Network Diagram
83
84
85