[Routing and switching technology] Cisco Packet Tracer configures dynamic routing (RIP, OSPF, EIGRP)

Topology

insert image description here

Configure IP

PC0:192.168.1.1/24
PC1:192.168.4.1/24
PC2:192.168.4.2/24

Router0:
Fa0/0:192.168.1.254/24
Fa0/1:192.168.2.1/24

Router1:
Fa0/0:192.168.2.2/24
Fa0/1:192.168.3.1/24

Router2:
Fa0/0: 192.168.3.2/24
Fa0/1: 192.168.4.254/24
For the full version, go to: [Routing and Switching Technology] Cisco Packet Tracer Basic Tutorial (2)

Configure dynamic routing

Directly connected network segment and non-directly connected network segment

What are the directly connected network segment and the non-directly connected network segment of the router?
As the name implies, the network segment next to the router is the directly connected network segment, and the network segment that is not directly adjacent to each other and is separated by something in the middle is called the non-directly connected network segment.
Take Router1 as an example:
insert image description here

RIP dynamic routing

Introduction to RIP

Routing Information Protocol, a routing protocol based on the distance vector algorithm, uses the hop count as the measurement standard
RIPv1, RIPv2 and RIPng, the former two are used for IPv4, and RIPng is used for IPv6.
Among them, RIPv1 is a classful routing protocol, which does not support VLSM and CIDR;
RIPv2 is a classless routing protocol, supports VLSM, supports route aggregation and CIDR; supports plaintext authentication and MD5 ciphertext authentication.

Configuration commands and precautions

1. Enter rip configuration/open rip dynamic routing: route rip(rou r)
2. Use v2 version: version 2 (v 2)
3. Disable automatic summary: no auto-summary (no au)
4. Configure direct network segment Information: network directly connected network segment (net directly connected network segment)

Use the v2 version, turn off the automatic summary for the time being, just remember this

configuration process

Router0:
insert image description here
Router1:
insert image description here
Router2:
insert image description here
Configuration complete

view routing table

insert image description here

test connectivity

insert image description here
success

OSPF dynamic routing

Introduction to OSPF

Enhanced Interior Gateway Routing Protocol
OSPF is a link state protocol and a public protocol. Compute the shortest path tree using Dixcher's algorithm. OSPF does not need to send routing update information regularly, and only sends it when the network topology changes. Its advantages are:
1) Small overhead
2) Support VLSM, CIDR
3) Relatively short convergence time
4) Support manual summary
5) Support discontinuous network, etc.

Configuration commands and precautions

1. Enter OSPF dynamic routing configuration: route ospf process number (rou o process number)
2. Configure direct network segment information: network direct network segment direct network segment subnet mask reverse code area area number (net direct network segment netmask inverse a area number)

Precautions
1. Process number: We can use 100 uniformly for beginners
2. Inverse subnet mask: binary inversion of the subnet mask, that is, in decimal, each of the four positions is subtracted from the number of the position by 255, such as The inverse code of 255.255.255.0 is 0.0.0.255
3. Area number
When using ospf, you can divide the topology into different areas and configure different area numbers.
Among them, area 0 is the backbone area, which must exist, and other areas do not need to exist
. All are set to area 0.
Take Router1 as an example
. In the global configuration mode:
rou o 100
net 192.168.1.0 0.0.0.255 a 0
net 192.168.2.0 0.0.0.255 a 0
Some matching prompts may pop up during configuration, no need to deal with them. Just continue typing the command

configuration process

Router0:
insert image description here
Router1:
insert image description here

Router2:
insert image description here
The configuration is complete

view routing table

insert image description here

test connectivity

insert image description here
success

EIGRP dynamic routing

The open shortest path first protocol
EIGRP is developed from the IGRP routing protocol. It is a hybrid routing protocol with fast convergence speed and belongs to Cisco proprietary. Support IP, IPX, Apple Talk and other protocol stacks. Supports variable-length subnet masks, and the configuration method is simple. Compared with IGRP, the EIGRP protocol has the advantages of convergence speed, scalability, and handling routing loop problems.

Configuration commands and precautions

1. Enter EIGRP dynamic routing configuration: route eigrp autonomous system number (rou e autonomous system number)
2. Disable automatic summary: no auto-summary (no au)
3. Configure direct network segment information: network direct network segment [direct Negative subnet mask of the network segment (can be omitted for standard network segments)]
Note:
Autonomous system number:
Only routers in the same autonomous area can establish neighbor relationships. We can use 1 uniformly at the beginner stage

Take Router0 as an example:
(in global configuration mode)
rou e 1
no au
net 192.168.1.0
net 192.168.2.0
may pop up some matching prompts during configuration, just continue typing commands without processing

configuration process

Router0:
insert image description here

Router1:
insert image description here

Router2:
insert image description here
The configuration is complete

view routing table

insert image description here

test connectivity

insert image description here
success

Through these methods, the entire topology can be connected

Articles in the same series

Basic Getting Started Tutorial

[Routing and switching technology] Cisco Packet Tracer basic tutorial (1)
[Routing and switching technology] Cisco Packet Tracer basic tutorial (2)
[Routing and switching technology] Cisco Packet Tracer basic tutorial (3)

Specific function articles

Three Command Modes for Cisco Packet Tracer Configuration Operation
Cisco Packet Tracer How to Build a Topology and Connectivity (Basic)
Cisco Packet Tracer Configuration Static Routing
Cisco Packet Tracer Switch VLAN Configuration
Cisco Packet Tracer Router Subinterface


My ability is limited, insufficient, please point out the mistakes, if you
have any questions, please leave a comment

Guess you like

Origin blog.csdn.net/m0_68681879/article/details/129235519