Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common dynamic routing practice-RIP Protocol

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Brief introduction

(1) the dynamic routing protocol generates and maintains the routing table required by the forwarding engine through the exchange of routing information. When the network topology changes, the dynamic routing protocol can automatically update the routing table (update period 30s) and is responsible for determining the best path of data transmission.

(2) in dynamic routing, the administrator no longer needs to manually maintain the routing table on the router like static routing, but runs a routing protocol on each router. This routing protocol generates a routing table entry in the routing table based on the configuration of the interface on the router (such as the configuration of the IP address) and the status of the connected link.

Dynamic routing protocol classification

(1) RIP: it is the first widely used protocol in the interior gateway protocol IGP. RIP is a distributed routing protocol based on distance vector and the standard protocol of the Internet. its biggest advantage is simple implementation and low overhead.

(2) OSPF: an internal gateway protocol used to make routing decisions within a single autonomous system

(3) ISIS: this routing protocol was originally a dynamic routing protocol designed by ISO for CLNP.

(4) BGP: border Gateway Protocol, a routing protocol for an autonomous system running on TCP, is the only protocol used to handle networks the size of the Internet, and the only protocol that can properly handle multiplex connections between unrelated routing domains.

Outline of RIP dynamic routing experiment

The configuration address is an example of a topology diagram:

Configure ip data for both ports of routing R1 (mask / 30, ip subnet mask for the same network segment, same as below)

Configure ip data for routing R2 two ports

Configure ip data for routing R3 two ports

Configure ip data for hosts 1 and 2

At this time, hosts 1 and 2 cannot ping, because we have not configured the RIP protocol on the directly connected network segment, so we need to further configure the protocol:

Configure R1 with RIP protocol

Configure R2 with RIP protocol

Configure R3 with RIP protocol

Use do show ip route to view the routing entries learned by R1, R2, and R3

Ping access Test:

Conclusion: route entries are learned automatically, so you don't need to configure it manually, you just need to declare the directly connected network segment.

Essence

This blog is designed to the knowledge of subnetting, which is extended as follows:

1. Introduction to subnetting

When we subnet a network, we basically divide it into small networks. For example, when a set of IP addresses is assigned to a company, the company may "divide" the network into small networks, one for each department. In this way, both technical departments and management departments can have their own small networks. By subnetting, we can divide the network into small networks according to our needs. This also helps reduce traffic and hide the complexity of the network.

2. Calculation method

Before calculating the subnet mask, you must know the number of subnets to be divided and the number of hosts required in each subnet.

1) convert the number of subnets to binary

2) get the number of bits in the binary, which is N

3) obtain the class subnet mask of the IP address, and get the subnet mask of the IP address by taking the first N position 1 of the host address part.

To divide the class C IP address 192.168.10.0 into 4 subnets:

1) 4100

2) the binary is three digits, N = 3

3) change the subnet mask of Class An address 255.255.255.0 to the first 3 locations 1 of the host address to get the subnet mask 255.255.255.224

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report