Configuration of RIP protocol

Source: Internet
Author: User

Topology diagram:

Requirements:

Understand the operation principle of RIP protocol, and realize different network interworking through RIP routing protocol.


Configuration steps:

1, configure the PC IP address and other parameters. PC 0>ipconfig IP Address ....: 10.1.1.2 Subnet Mask ...: 255.255.255.0 Default, ......, ...................... The Gateway ...: 10.1.1.1... ......

2. Configure IP address parameters for each interface of the router
3. Configure the VLAN information of the switch to configure the VLAN information of each port of the switch, make PC0 and PC1 belong to VLAN10;PC2 and PC3 belong to VLAN20;PC4 and PC5 belong to VLAN30; After the configuration is complete, the internal pc of each VLAN can be interconnected Wildcard
4. RIP Routing Protocol Configuration
Routers R1 and R2 are configured similarly.

Configuration command:

(1), the configuration in the R0:

R0 (config) #inter f0/0

R0 (config-if) #ip add 10.1.1.1 255.255.255.0

R0 (config-if) #no shut

R0 (config) #inter s1/0

R0 (config-if) #ip add 192.168.0.1 255.255.255.0

R0 (config-if) #no shut

R0 (config-if) #clock rate 64000

R0 (config-if) #no shut

R0 (config) #router rip

R0 (config-router) #version 2

R0 (config-router) #network 10.1.1.0

R0 (config-router) #network 192.168.0.0

routing table for R0:

Gateway of last resort are not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R 10.0.0.0/8 [120/1] via 192.168.0.2, 00:00:15, serial1/0

C 10.1.1.0/24 is directly connected, fastethernet0/0

C 192.168.0.0/24 is directly connected, serial1/0

R 192.168.1.0/24 [120/1] via 192.168.0.2, 00:00:15, serial1/0

(2), the configuration in the R1:

R1 (config) #inter f0/0

R1 (config-if) #ip add 10.2.1.1 255.255.255.0

R1 (config-if) #no shut

R1 (config) #inter s1/0

R1 (config-if) #ip add 192.168.0.2 255.255.255.0

R1 (config-if) #no shut

R1 (config) #inter S1/1

R1 (config-if) #ip add 192.168.1.1 255.255.255.0

R1 (config-if) #no shut

R1 (config-if) #clock rate 64000

R1 (config-if) #no shut

R1 (config) #router rip

R1 (config-router) #version 2

R1 (config-router) #network 192.168.1.0

R1 (config-router) #network 192.168.0.0

R1 (config-router) #network 10.2.1.0

routing table for R1:

Gateway of last resort are not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R 10.0.0.0/8 [120/1] via 192.168.1.2, 00:00:14, SERIAL1/1

[120/1] via 192.168.0.1, 00:00:01, serial1/0

C 10.2.1.0/24 is directly connected, fastethernet0/0

C 192.168.0.0/24 is directly connected, serial1/0

C 192.168.1.0/24 is directly connected, SERIAL1/1

(3), the configuration in the R2:

R2 (config) #inter f0/0

R2 (config-if) #ip add 10.3.1.1 255.255.255.0

R2 (config-if) #no shut

R2 (config) #inter s1/0

R2 (config-if) #ip add 192.168.1.2 255.255.255.0

R2 (config-if) #no shut

R2 (config) #router rip

R2 (config-router) #version 2

R2 (config-router) #network 10.3.1.0

R2 (config-router) #network 192.168.1.0

routing table for R2:

Gateway of last resort are not set

10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R 10.0.0.0/8 [120/1] via 192.168.1.1, 00:00:10, serial1/0

C 10.3.1.0/24 is directly connected, fastethernet0/0

R 192.168.0.0/24 [120/1] via 192.168.1.1, 00:00:10, serial1/0

C 192.168.1.0/24 is directly connected, serial1/0

To configure the VLAN:

Switch0:

Switch (config) #vlan 10

Switch (Config-vlan) #exit

Switch (config) #inter F0/2

Switch (config-if) #switchport Access VLAN 10

Switch (config-if) #inter F0/3

Switch (config-if) #switchport Access VLAN 10

Switch (config-if) #inter F0/1

Switch (config-if) #switchport mode trunk

SWITCH1:

Switch (config) #vlan 20

Switch (Config-vlan) #exit

Switch (config) #inter F0/2

Switch (config-if) #switchport Access VLAN 20

Switch (config-if) #inter F0/3

Switch (config-if) #switchport Access VLAN 20

Switch (config-if) #inter F0/1

Switch (config-if) #switchport mode trunk

SWITCH2:

Switch (config) #vlan 30

Switch (Config-vlan) #exit

Switch (config) #inter F0/2

Switch (config-if) #switchport Access VLAN 30

Switch (config-if) #inter F0/3

Switch (config-if) #switchport Access VLAN 30

PC0 Ping PC2:

Pc>ping 10.2.1.2

Pinging 10.2.1.2 with + bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 10.2.1.2:

Packets:sent = 4, Received = 0, Lost = 4 (100% loss),

PC0 Ping PC4:

Pc>ping 10.3.1.2

Pinging 10.3.1.2 with + bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 10.3.1.2:

Packets:sent = 4, Received = 0, Lost = 4 (100% loss),

PC0 Ping PC1:

Pc>ping 10.1.1.3

Pinging 10.1.1.3 with + bytes of data:

Reply from 10.1.1.3:bytes=32 time=2ms ttl=128

Reply from 10.1.1.3:bytes=32 time=0ms ttl=128

Reply from 10.1.1.3:bytes=32 time=0ms ttl=128

Reply from 10.1.1.3:bytes=32 time=1ms ttl=128

Ping statistics for 10.1.1.3:

Packets:sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in Milli-seconds:

Minimum = 0ms, Maximum = 2ms, Average = 0ms


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Configuration of RIP protocol

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.