Routing protocols experiment

Experimental routing protocol can automatically generate network topology consistent with the current routing entry for indicating a transmission path leading to other networks. The scope, routing protocols can be divided into an interior gateway protocol and exterior gateway protocol.

Interior Gateway Protocol AS acting on the internal and external gateway protocol acting between autonomous systems. Typical interior gateway protocol and have RIP OSPF, BGP exterior gateway protocols have

1 RIP Configuration Lab

1.1 experimental content

Network topology as shown below, by arranging all router IP address and subnet mask of each interface, the router automatically generated such that each direct routing entries. By starting RIP (Routing Information Rrotocol, Routing Information Protocol) in each router, each router generates a routing entry for dynamic transmission path leading to the specified network is not directly connected thereto.

To verify adaptive routing protocol, delete links between the routers R2 and R5, R2 and R5 can be the router for dynamically routing a transmission path leading to the specified network is not directly connected to the new network topology according regenerated item

1.2 Principle

Since the function of RIP such that each router is capable of direct routes based on the entry, creating dynamic routing entry indicates a transmission path for the access network is not directly connected thereto, and therefore, the router configuration process consists of two parts: a direct routing entries generated automatically by configuring the RIP 2 related information generation process is initiated by RIP dynamic routing entry indicates a transmission path leading to the network is not directly connected to the IP address and subnet mask for the interface.

1.3 key command

Global mode

router rip // enter the RIP configuration mode

RIP configuration mode

version 2 // start RIPv2, RIPv1 supports only classful addressing, RIPv2 supports classless addressing

no auto-summary // cancel aggregation routing entries

network 192.138.3.0   //

network 192.168.4.0

Experiment 2 Single area OSPF configuration

2.1 experimental content

Single LAN topology shown below, interconnection router R1 and R4 are 10Mb / s links, other links are 100Mb / s link

Router R1 R2 R3 R4 192.168.1.0/24 192.168.2.0/24 constituting a network and OSPF (Open shortest Path First) region, in order to save the IP address can be used to cover all 192.168.3.0/27 CIDR address blocks assigned to implement network router the IP address of the router interface

2.2 Principle

Single OSPF area configuration is divided into two parts, one complete IP address and subnet mask of all router interfaces, so that each router automatically generating road network for transmission indicates direct connections to the two direct routes are entries participate in OSPF each router is determined to create a dynamic routing process and the router interface directly connected network, determining participate in OSPF routing entry process of creating a dynamic router interface to send and receive OSPF packets, dynamic routing entries created comprising other routers for indicating on to participate in OSPF routing entries to create a dynamic network transmission path of dynamic routing entry process.

2.3 key command

Global mode

router ospf 11 // enter the OSPF configuration mode, Cisco OSPF allows a router to run multiple processes, different OSPF process identifier is identified by a different process, only locally significant.

ospf configuration mode

network 192.168.1.0 0.0.0.255 area 1 // designated to participate in creating a dynamic OSPF routing entry process to identify the router interface 192.168.1.0/24 area 1 area identifier is 1, only the trunk area to use the area identifier 0

 

 

Published 122 original articles · won praise 58 · views 40000 +

Guess you like

Origin blog.csdn.net/qq_39112646/article/details/104048503