Showing posts with label IP. Show all posts
Showing posts with label IP. Show all posts

IP Routing

IP routing is the process use by a router to forward packets towards destination network as found in the routing table, which is created by routing algorithms or routing protocols.

A router makes decisions based upon the destination IP address of a packet. Routers don’t care about hosts in a network, but networks and the best possible way to reach them. All network device
s along the way use the destination IP address to send the packet in the right direction to reach its destination. To make the correct decisions, routers must learn how to reach remote networks. Routers use either dynamic routing - this information is learned from other routers, or static routing - a network administrator configures information about remote networks manually.

Although it’s deemed necessary for every device in the network to be assigned a unique IP address, but this is not sufficient for them to communicate. It’s the work of a router to acts as a sort of traffic director to all packet destined to a destination.

In summary, routers route traffic to all networks in your internetwork. For a router to be able to do this, it must know the following:

i. Destination addressii. Possible routes to all networksiii. Neighboring routers from which it will learn about remote networksiv. The best route to reach a networkv. How to maintain and verify routing information.

Example below shows how a router uses information in its routine table to make decisions:


R2#show IP route

[Output omitted]

Gateway of last resort is not set

C 192.168.1.32/27 is directly connected, fastEthernet0/1

C 192.168.1.0/27 is directly connected, fastEthernet0/2

C 10.10.1.0/30 is directly connected, serial 0/0/0

The C in the routing table means the networks are directly connected. The remote networks are not found and displayed in the routine table because, we have not added a routing protocol – such as RIP, EIGRP, OSPF etc. etc or configured Static routes.

Looking at the output above, when the network router receive a packet with the destination address of 192.168.1.10, the router will send the packet to interface fastEthernet0/2, and this interface will frame the packet and then send it out on the network segment to Network B



"For more information about NetworkzPeritus, you may visit our website at http://www.NetworkzPeritus.com/ & blog at http://networkzperitus.blogspot.in/

IPV4

An IP address is a unique number / address used to identify a device on a network. An IP address is made up of 32 binary bits, which is divided into a Network portion and Host portion with the help of a Subnet Mask.

The 32 binary bi
ts are broken into four octets (1 octet = 8 bits). Each octet is converted to decimal and separated by a period (dot). For this reason, an IP address is expressed in dotted decimal format (for example, 192.168.10.12). The value in each octet ranges from 0 to 255 decimal, or 00000000 - 11111111 binary.

Below is how binary octets are converted to decimal: The right most bit, or least significant bit, of an octet holds a value of 20. The bit just to the left of that holds a value of 21. This continues until the left-most bit, or most significant bit, which holds a value of 27. So if all binary bits are a one, the decimal equivalent would be 255 as shown here:
1 1 1 1 1 1 1 1
128 64 32 16 8 4 2 1 = (128+64+32+16+8+4+2+1=255)
And this sample below shows an IP address represented in binary and decimal.
192. 168. 4. 10 (decimal)
11000000.10101000.00000100.00001010 (binary).



"For more information about NetworkzPeritus, you may visit our website at http://www.NetworkzPeritus.com/ & blog at http://networkzperitus.blogspot.in/


Posted by Viviek