Configuration of the RIP route protocol

Source: Internet
Author: User

Configuration of the RIP route protocol

RIP (Routing Information Protocol) is one of the most commonly used internal gateway protocols. It is a typical dynamic Routing Protocol based on D-V algorithm. User datateprotocol (UDP) packets are used to exchange route information, and the number of hops (Routing cost) is used to measure the distance to the destination ). Because the number of hops larger than or equal to 16 in RIP is defined as infinite (that is, the destination network or host cannot be reached), RIP is generally used for medium-scale networks using similar technologies, for example, on campus networks and networks in a region, RIP is not designed for complex and large networks.

Start RIP to enter the RIP view: router Rip
Disable RIP: no rip
Enable RIP network {network-number | all} on the specified network}
Disable RIP no network {network-number | all on the specified network
 

 
Router1:

Router> enable // enter privileged Mode
Router # conf ter // enter the global configuration mode
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # int f0/0 // configure the Fa0/0 interface
Router (config-if) # ip add 1.1.1.2 255.255.255.0
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
Router (config-if )#
% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router (config-if) # exit
Router (config) # int s0/0/0 // configure the serial port
Router (config-if) # ip add 1.1.6.1 255.255.0
Router (config-if) # clock rate 64000
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router (config-if) # exit
Router (config) # int s0/0/1 // configure the serial port
Router (config-if) # ip add 1.1.2.1 255.255.255.0
Router (config-if) # clock rate 64000
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
Router (config-if) # exit
Router (config) # router rip // enter the RIP View
Router (config-router) # network 1.0.0.0 // publish a direct connection network
Router (config-router) # exit
Router (config) # exit
Router #
% SYS-5-CONFIG_ I: Configured from console by the console
Router # show ip route // view the route table
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, FastEthernet0/0
Router #


Router2:
Router> enable
Router # conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # int f0/0
Router (config-if) # ip add 1.1.5.2 255.255.0
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router (config-if) # exit
Router (config) # int s0/0/1
Router (config-if) # ip add 1.1.2.2 255.255.255.0
Router (config-if) # clock rate 64000
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
Router (config-if) # exit
Router (config) # int s0/0/0
Router (config-if) # ip add 1.1.3.1 255.255.255.0
Router (config-if) # clo rate 64000
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router (config-if) # exit
Router (config) # router rip
Router (config-router) # network 1.0.0.0
Router (config-router) # exit
Router (config) # exit
Router #
% SYS-5-CONFIG_ I: Configured from console by the console
Router #
Router # show ip route
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 3 subnets
R 1.1.1.0 [120/1] via 1.1.2.1, 00:00:11, Serial0/0/1
C 1.1.2.0 is directly connected, Serial0/0/1
C 1.1.5.0 is directly connected, FastEthernet0/0
Router #

Router3:
Router> en
Router # conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router (config) # int f0/0
Router (config-if) # ip add 1.1.4.2 255.255.255.0
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
% LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router (config-if) # exit
Router (config) # int s0/0/0
Router (config-if) # ip add 1.1.6.2 255.255.255.0
Router (config-if) # clo rate 64000
Router (config-if) # no shutdown

Router (config-if )#
% LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Router (config-if) # exit
Router (config) # int s0/0/1
Router (config-if) # ip add 1.1.3.2 255.255.255.0
Router (config-if) # clock rate 64000
Router (config-if) # no shutdown

% LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
Router (config-if) # exit
Router (config) # router rip
Router (config-router )#
% LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up
Router (config-router) # network 1.0.0.0
Router (config-router) # exit
Router (config) # exit
Router #
% SYS-5-CONFIG_ I: Configured from console by the console
Router # show ip rou
Router # show ip route
Codes: C-connected, S-static, I-IGRP, R-RIP, M-mobile, B-BGP
D-OSPF, EX-VPN external, O-OSPF, IA-OSPF inter area
N1-ospf nssa external type 1, N2-ospf nssa external type 2
E1-OSPF external type 1, E2-OSPF external type 2, E-EGP
I-IS, L1-IS level-1, L2-IS level-2, ia-IS inter area
*-Candidate default, U-per-user static route, o-ODR
P-periodic downloaded static route

Gateway of last resort is not set

1.0.0.0/24 is subnetted, 6 subnets
R 1.1.1.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0
R 1.1.2.0 [120/1] via 1.1.6.1, 00:00:02, Serial0/0/0
[120/1] via 1.1.3.1, 00:00:10, Serial0/0/1
C 1.1.3.0 is directly connected, Serial0/0/1
C 1.1.4.0 is directly connected, FastEthernet0/0
R 1.1.5.0 [120/1] via 1.1.3.1, 00:00:10, Serial0/0/1
C 1.1.6.0 is directly connected, Serial0/0/0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.