Search This Blog

Tuesday, 6 September 2022

Routing Protocol RIP Configuration & Verification

 Below is the network diagram we are having for designing a network, where two different networks are connected to two routers. One of the networks is connected directly while the other network is connected to a router through a Switch.


Above is the network diagram where Host 2 is connected to the Rincewind router and Host1 is connected to a switch which is further connected to the Vetinari router. Basically, the networks connected to the routers on their Giga Ethernet ports are local Area networks and the two routers have a WAN connection between them. The WAN connection is a serial connection.

1. Addressing Scheme

For the proper communication between the devices, we need IP planning. The IP plan is generated using the provided network address. In this network, we will be using 192.168.10.0/24 for subnetting. The IP subnetting, we are using, in this case, it s a fixed-length subnet mask and needs to break down the network into 8 sub-networks.

 

Subnetting is done by borrowing bits from the host part and keeps borrowing till we satisfy the need of the network. In the above scene,ario we need a total of 8 subnets so below is detailed subnetting steps.  Above is the network diagram where Host 2 is connected to Renewing router and Host1 is connected to a switch which is further connected to the Veterinary router. Basically, the networks connected to the routers on their giga Ethernet ports are local Area networks and the two routers have a WAN connection between them. The WAN connection is a serial connection. Above is the network diagram where Host 2 is connected to Renewing router and Host1 is connected to a switch which is further connected to the Veterinary router. Basically, the networks connected to the routers on their giga Ethernet ports are local Area networks and the two routers have a WAN connection between them. The WAN connection is a serial connection

 

 

                                                            192.168.10.0/24

 

Subnetworks Calculation formula = 2n (n= bits borrowed)

Here the number of subnets required is = 8

 

So,

 

8=2n   =>=>=>   23=2n and now n=3, So to get 8 subnets from the above Class C IP address we need to borrow three bits from the host part. In class C the last octet with 8 bits is dedicated to hosting. So

 

192.168.10.0/24+3 = 192.168.10.0/27 is the new cider of the above network and

 Host per subnet is calculated as =2n-2 (n= remaining host bits)

                                                            =25-2= 30 hosts per subnet

 

 

The above subnets can be written as below. That are total of 8 bits from subnet Zero through Subnet seven.

 

No

Subnet

First host

Last host

Broadcast

Subnet mask

0

192.168.10.0/27

192.168.10.1

192.168.10.30

192.168.10.31

255.255.255.224

1

192.168.10.32/27

192.168.10.33

192.168.10.62

192.168.10.63

255.255.255.224

2

192.168.10.64/27

192.168.10.65

192.168.10.94

192.168.10.95

255.255.255.224

3

192.168.10.96/27

192.168.10.97

192.168.10.126

192.168.10.127

255.255.255.224

4

192.168.10.128/27

192.168.10.129

192.168.10.158

192.168.10.159

255.255.255.224

5

192.168.10.160/27

192.168.10.161

192.168.10.190

192.168.10.191

255.255.255.224

6

192.168.10.192/27

192.168.10.193

192.168.10.222

192.168.10.223

255.255.255.224

7

192.168.10.224/27

192.168.10.225

192.168.10.254

192.168.10.255

255.255.255.224

 

According to instructions subnet, Zero and subnet seven cannot be used for our network. Therefore, we are using subnets 1, 2 & 3 for our network.

 

1.2 Device IP addresses:

 

The below IP addresses have been assigned to the interfaces of the routers and hosts. The first IP address in each subnet has been assigned to the router interface IP and the second IP to the PC.

 

The gateway IP assigned to every PC is the interface ip of the router connected to the PC

Device

Port

IP address

Subnet mask

Default Gateway

Vetinari

Ethernet 0/0

192.168.10.33

255.255.255.224

N/A

Vetinari

Serial 0/2/0

192.168.10.65

255.255.255.224

N/A

Rincewind

Ethernet 0/0

192.168.10.97

255.255.255.224

N/A

Rincewind

Serial 0/2/0

192.168.10.66

255.255.255.224

N/A

Host 1

Ethernet

192.168.10.34

255.255.255.224

192.168.10.33

Host 2

Ethernet

192.168.10.98

255.255.255.224

192.168.10.97

 

2. Cabling

Cabling is the selection of appropriate cables for connecting the networking devices with each other. In our network designed below, we have connected the host pcs with the router and switch. The cable from the PC to the Switch in the Vetinari network is a straight-through cable and from the switch to the router, it’s again a straight-through copper cable. The cable between host pc 2 to the router is a cross-over cable and the cable between the two routers is a serial cable.  The serial cable used in this network shows that there is a good distance between the two routers.

Initially, when the network is deployed, we used a console cable to get connected to a switch or router to do configurations. The cable shown in the above snapshot is the console cable being used for the configuration of networking devices.

·         The serial cable that is connected to Vetinari is a Data terminating end and the other end is connected to Rincewind which is the DCE or data communication end that provides a clock to the network.



3. Basic router commands & Modes

The configuration of a router is done through a command from the command line interface or CLI. To run these commands, we need different privilege levels. The privilege level of a router is set in different modes of a router.

User-Exec mode

The mode which we access after just logging into a router is called “User Exec Mode” and very few commands can be run over here.


To check the type of commands we run in user exec mode, we type question marks which show us the commands we are allowed to use. Below is the list of some commands with their function that can be run in privilege mode.

 

 

Command

Function

1

enable

Turn on privileged commands

2

exit

Exit from the EXEC mode

3

terminal

Set terminal line parameters

4

ping

Send echo messages

5

logout

Exit from the EXEC

6

ssh

Open a secure shell client connection

7

show

Show running system information

8

traceroute

Trace route to destination

 

Privilege mode

 Below is the list of commands that can be run in user privilege mode. The number of commands that can be run in this mode needs more privileges and below are a few commands.

 

To enter this mode, we need to type the “enable” command and the view of the router becomes like below.



We have selected below privileged exec mode commands prompting when question mark is typed in this mode.

 

 

Command

Function

1

ping

Send echo messages

2

copy

Copy from one file to another

3

setup

Run the SETUP command facility

4

erase

Erase a filesystem

5

debug

Debugging functions

6

traceroute

Trace route to destination

7

configure

Enter configuration mode

8

clear

clear Reset functions

 

4. Basic router configuration

 

Global configuration mode

This is the mode that needs the highest level of privilege, we must move into this mode to modify, add, or remove the configuration of a network. All configurations we have done in this network need to move into privilege mode. Below is the list of commands that we can run in this mode. We enter configuration mode by typing “config terminal” in the user privilege mode.

We have run the below commands on these routers for the configuration of this network.

We start from the configuration of the device name to the whole configuration.

 

4.1 Router names: hostname is the command to change the router name to a new name

 

Router(config)#hostname Vetinari

Router(config)#hostname Rincewind

 

4.2 Interfaces: The mode we use to assign interface IPs and interface activation is done in this mode also called interface configuration mode.

 

Below are the steps to set the interface IPs of a router.

 

// Ethernet port for Vetinari:

       Vetinari(config)#interface FastEthernet0/0

       Vetinari(config-if)# ip address 192.168.10.33 255.255.255.224

       Vetinari(conf-if)# no shutdown

 

// Ethernet port for Rincewind:

      Rincewind(config)#interface FastEthernet0/0

      Rincewind(config-if)# ip address 192.168.10.97 255.255.255.224

      Rincewind(config-if)#no shutdown

 

// Serial port for Vetinari:

      Vetinari(config-if)#interface Serial0/2/0

      Vetinari(config-if)# ip address 192.168.10.65 255.255.255.224

      Vetinari(config-if)#no shutdown

 

// Serial port for Rincewind:

        Rincewind(config-if)#interface Serial0/2/0

        Rincewind(config-if)# ip address 192.168.10.66 255.255.255.224

        Rincewind(config-if)#clock rate 56000

        Rincewind(config-if)#no shutdown

 

4.3 Setting up passwords

 

The password of a router or a switch is set to ensure the security of devices. On a router or a switch, we can set Console password, Line vty password, and enable password. Below are the configuration steps to do that.

 

// Passwords for telnet session (enter line configuration mode)

Vetinari(config)#line vty 0 4

      Vetinari(config-line)#password cisco

      Vetinari(config-line)#login

  

      Rincewind(config)#line vty 0 4

      Rincewind(config-line)#password cisco

      Rincewind(config-line)#login

 

// Console and privilege mode passwords

     Vetinari(config)#enable password cisco

     Vetinari(config)#enable secret class

 

     Rincewind(config)#enable password cisco

     Rincewind(config)#enable secret class

 

Cisco is the console and vty password and class is the privilege mode password.

 

 

5. Making the network a working Network

 

Until and unless all devices are not properly connected and configured there will be no information exchange between the devices. We have configured the computers and all other devices to make them work.

5.1 Configuring the computers:

The computers have been assigned with the above-mentioned IP address to make the work properly and below are the screenshots showing the IP assignment. When correct IP addresses are assigned to the PC and the router-connected interface, we get a ping response from the router-interface IP.

Below is the ping verification from the host to interface IPs after the correct configuration

Host 2 to its default Gateway

 Host2 can ping its default gateway IP which means configuration is fine from the PC to the router.


Host 1 to its Default Gateway




But in this case, all point-to-point links should be able to ping each other like the end IP’s of the serial links should also ping each other like below. 

Host 2 cannot ping Host 1 

Host 2 can’t ping Host 1 because there is no routing enabled between the two routers.




But in this case, all point-to-point links should be able to ping each other like the end IP’s of the serial links should also ping each other like below.


Configuring RIP: Routing Information Protocol

 

RIP is one of the oldest routing protocols used for enabling routing in smaller networks for up to 15 consecutive hopes. Due to this and some other issues, a few other protocols are preferred in networks now. The configuration of RIP is simple.

The theme of enabling a routing protocol is to advertise the connected networks, which can be queried as below.

We have used the below steps to enable RIP routing in the network by advertising the above-connected routes.

 

Vetinari Router

 

Vetinari(config)#router rip

Vetinari(config-router)# version 2

Vetinari(config-router)#no auto-summary

Vetinari(config-router)#network 192.168.10.32

Vetinari(config-router)#network 192.168.10.6

 

Rincewind Router

 

Rincewind(config)#router rip

Rincewind(config-router)#version 2

Rincewind(config-router)#network 192.168.10.64

Rincewind(config-router)#network 192.168.10.96

Rincewind(config-router)#no auto-summary

6. Testing the network

After the configuration of the RIP protocol, the routers should be able to exchange routes with each other and the host should ping each other.



Host1 can ping the hsot2 lying on a different network. Now, these hosts can ping any IP within the network because all connected routes have been advertised successfully and we can query the routes of one network on the other router to verify this.


From the above routing table of Rincewind, we see that it receives the routes of host2 through RIP protocol through the serial link se0/2/0.

6.2 Ping host from each router

Ping to both hosts from Vetinari Router


Ping verification




Trace the Route

The successful testing is conducted using the ping and trace route tool, we use traceroute to check the path from source to destination which is successful.




6.4 Telnet to Vetinari from Host 2

 

Telnet is a remote management protocol, which is used to access devices from a different network for maintenance. We have configured the routers for remote management using the telnet protocol. Which is successful.












 

 

OSI MODEL & TRANSMISSION TECHNOLOGIES

 

OSI Model – Introduction

Open system interconnection is abbreviated as OSI, which is a networking standard protocol suite. Before the development of the ISO model in the 1970s, every vendor was producing devices with their own standards which caused interoperability issues. Therefore, the international standardization organization felt a need for introducing a standard manufacturing model for all vendors. This was the basis for OSI model development to avoid interoperability issues.

Layers of the OSI Model

The beauty of the OSI model is this it covers the whole communication process from the end devices to other end devices. The whole communication process has been divided into seven layers. Each layer has its own function supporting communication.

Below are the seven layers of the OSI Model

·        Application Layer

·        Presentation Layer

·        Session Layer

·        Transport Layer

·        Network Layer

·        Data link layer

·        Physical Layer.

Functions Of OSI Layers

Each OSI layer is associated with a specific function for the delivery of data from source to destination.

Application Layer

This is the layer that provides an interface for the user to interact with an application that initiates a communication process.  We have a number of tasks that fall in the application layer like remote access of devices, resource sharing between machines, and the management of networks.

Presentation Layer

The presentation layer is the sixth layer in the list of OSI model layers. This layer is used to translate the user input to the machine language. It also performs the functions of data encryption and data compression for transmission.

Session Layer

The session layer is associated with establishing sessions between the source and destination. The job of establishing a session before data transfer and session termination upon data transfer is performed by the session layer. At the same time, this layer can establish multiple sessions with different destinations.

Transport layer

The transport layer is responsible for the successful and reliable delivery of data from the source to the destination. This layer works based on logical ports that are used to create sockets when combined with the IP address. Based on this socket, the data specified is differentiated.

Network Layer

The network is the third layer of this model which is used for logical addressing of network devices. Devices are addressed using the IP protocol and routers perform the function of packet forwarding after finding the location of devices in the networks.

Data Link Layer

This layer corrects the errors that occur at the physical layer and put the frames on the physical layer. This layer reads the MAC address and delivers frames in the Local Area Networks. This layer is further divided into the MAC layer and LLC.

Physical Layer

The physical layer is layer 1 that is referred to the physical devices in the network that carries traffic in the form of bits. The connectors, cables, and hubs are called layer 1 devices. This is the layer where devices are connected with each other.

 The functions of the seven layers have been summarized below showing their main functions against each layer

Transmission Technologies

Transmission is the process of sending signals between a source and a destination. Through these signals, information is transmitted in digital or analog format. Different type of protocols is used for this transfer of information like the modulation process demodulation, coding, decoding, multiplexing, and demultiplexing.

We have two main mediums of transmission that are

·        Wireless Media or Broadcast Networks

·        Wired media or point-to-point networks

 

Wireless Media or Broadcast Networks

This is a type of transmission technology where the data or information is transmitted over wireless media. There is no dedicated connection between the source and destination nodes. In this case, the data transmitted by one node is received by all other nodes. The requirement of information transfer in this type of communication is the reception of the signals transmitted by the main broadcasting device and the connecting devices are authenticated and a connection is made. After the connection is made the information can be exchanged.

The above figure shows a broadcast network where the router is a WI-FI router that generates signals which are received by the end devices and connectivity is established.

Wired /Point to Point Networks

In this technology, we have dedicated physical connections between devices. The data can be exchanged between these devices only. There may be intermediate devices connecting them, but this connection should be a physical cable, fiber, etc.

The point-to-point communication is established for sensitive data, which can be either voice, data, video, etc. but security bears great importance in this case.

Wired communication is also important when the bandwidth requirement is high as wireless signals may get weaker after going through certain obstructions 

The below figure shows how wired devices are connected.

Comparison between Wireless and Wired Technologies

Wired Technology

Wireless Technology

Physical Media Exist

No need of Physical media

No antenna is required

Antenna is required

Electrical or optical signals are sent

Electromagnetic waves are used.

More suitable for short-distance communication

Suitable for large distance communication

Less Complex for deployment

more complex for deployment

Supports high Bandwidth

Supports less Bandwidth

Less reliable, cable damage issues

Reliable, no damage issues

Faster than Wireless

Slower than wired technology




VLAN & VLAN Trunking Protocol Configuration

 Virtual Local Area Network (VLAN)

VLAN is a virtual Local Area Network that is a layer two concept that is used to break a big collision domain into several small broadcast domains. This logical division of a switch introduces many benefits which have been listed below.

·         VLAN Configuration solves the broadcasting problem by dividing the network.

·         VLAN breaks the big broadcast domains into smaller ones.

·         It enhances the security of the network.

·         Grouping of devices based on function not based on physical locations.

Below are the things that have been discussed by the experts on the provided YouTube links.

We normally configure the VLANs on layer -II & Layer -III switches but when we create a link between two devices, we remove the VLAN tag, and the link is called “Trunk Link”. The concept of the trunk has been borrowed from public switched telephone networks, PSTN where multiple calls are sent through a single media.  In a switching environment, we configure a trunk link between switches to send the traffic from multiple VLANs to another switch. A trunk link is a critical component to carry the traffic from multiple VLANs. In the below diagram switches is the second row collects data from the concerned VLAN devices and forwards it to the central switch through a trunk link between the switches.



802.1q Trunking Technology

Cisco has introduced trunking a protocol for carrying the traffic of multiple VLANs, called ISL or inter-switch link. This protocol’s original ether frame was encapsulated with a new header and footer and inside the header in the VLAN ID.

In this approach, the frame is not re encapsulated the frame, but the VLAN ID is inserted in the frame and a frame check sequence is attached at the end of the frame.

This VLAN “Tag “is used for the identification of data coming from different VLANs. The only VLAN which doesn’t have this tag is VLAN 1 which carries all the traffic on the trunk links. But for security reasons, we always change the native VLAN to any other VLAN on the Trunks.

VTP Protocol: VLAN Trunking Protocol

In a production network, the configuration of VLANS on many switches becomes a very hectic task as we need to configure the VLANs one by one on all switches. To reduce these efforts and the chances of mismatched configurations, cisco has introduced a protocol called VLAN Trunking Protocol.  This is the protocol that works on the trunk links between the switches only.



The VLAN Configuration, addition, deletion, and modification is not centrally controlled by the VTP server. The VTP server is the central device that propagates the VLAN information to the VTP clients. Anything that changes at the VTP server related to VLAN automatically got updated on the VTP clients. In production networks, we have more than two switches acting as VTP servers for redundancy purposes.

VTP Modes:

·         VTP Server Mode: The modes which propagate VLAN information

·         VTP Client Mode: The mode that receives VLAN information from the server

·         VTP Transparent Mode: This mode passes VLAN information, the switch doesn’t update its VLAN database


Access Control Lists Configuration ( Standard & Exteneded)

  

Access Control List or ACLs

Access Control lists are the traffic filtering techniques that are used to allow access or deny access to a system from any device. These traffic filtering rules are applied to allow or block desired traffic from a source to a destination.

ACL contains a list of certain conditions that are used to categorically divide the type of traffic to deny or allow. After setting the specific condition, these conditions are applied to the interfaces of the routers.

The are two main types of Access control lists

·         Standard Access Control list

·         Dynamic Access Control List

 

Standard Access Control list

A standard access control list is a bit simpler than an extended access control list. Standard ACLs are the traffic profiles that only match the source and destination IP addresses. Standard ACLs are always applied close to the destinations to reduce the number of access control lists.

·         Numbered ACLs use the number range from 1-99 & 1300 -1999

·         Named ACLs are the same form as Standard ACLs with the same pros & Cons, but the benefits are they can be named according to the purpose of implementation.

ACLs are applied on the interface of a router, or a layer-III switch, in the below diagram if we want to block traffic to reach the router, we need to write a policy list in the router and apply the policy on a router interface either in or out direction.



 

 

Standard ACL Configuration

The ACLs can be configured with several names in a router and then an interface is bound with it for work. In The below packet tracer simulation file, we have configured 4 VLANs, two on each switch. The PCs (PC-VLAN 10 & PC-VLAN 20) and ping the pc on right (PC-VLAN 30 & PC-VLAN 40).

Now we will implement a standard ACL on the router interface G0/0 to perform the below function.

·         Allow the traffic of PC-VLAN 10 to PC-VLAN 30 and block the traffic from PC-VLAN 20 to access PC-VLAN 30.

We have implemented the below ACL on g0/1.30 interface to block the traffic from PC-VLAN-20. Let’s check if the ACL is working fine or not. This can be checked by sending a ping from both PC-VLAN-10 and PC-VLAN-20.



Configuration on the Router




PC-VLAN-10 can ping the PC-VLAN-30



PC-VLAN-20 is unable to ping PC-VLAN-30

Extended Access Control list

Extended Access control lists are more flexible than standard ACLs. Extended ACLs have more features than standard ACLs. Below are the features of extended ACLs.

·         Source and Destination IP addresses.

·         Source and destination Ports

·         Protocols

Extended ACLs are applied close to the source of the traffic being filtered. These can be configured both as Named ACLs and numbered ACLs” s. The number range is 100-199 & 2000-2699

Now let’s configure an extended ACL performing the below function.

PC-VLAN 10 is allowed to access the Web pages of the web server and PC-VLAN 20 is not allowed to access the web pages on the server.



Extended ACL Router Config

We have the below configuration on the router to achieve the ACL statement.

ACL verification

PC-VLAN-10 can successfully access the web pages of the server.



PC-VLAN-20 can’t access the web pages of the server




 

 

OSPF Operation and Route Selection - A detailed discussion

  OSPF Routing Protocol   Abstract:               The report discusses the OSPF Routing protocol and its implementation in networks. T...