Experiment 3-RIPv2 basic configuration experiment

Table of contents

1. Topology

2. Address allocation table

3. Goal

Part 1: Set up your network and configure basic device settings

Part 2: Configure RIPv2 routing and verify it

4. Configuration process 

Part One: Set up the network and configure the basic settings of the device

Step 1: Establish a network as shown in the topology diagram

Step 2: Initialize and reload the router and switch (omitted)

Step 3: Configure basic settings for each router and switch

Step 4: Configure PC and router IP (omitted)

Step Five: Test Connectivity

Part 2: Configure RIPv2 routing and verify it

Step 1: Configure RIPv2 routing

Step 2: Check the current status of the network

Step 3: Disable automatic summarization 

Step 4: Configure and redistribute default routes for Internet access

Step 5: Verify routing configuration

Step 6: Verify connection


1. Topology

2. Address allocation table

equipment

interface

IP address

subnet mask

Default gateway

R1

G0/1

172.30.10.1

255.255.255.0

not applicable

S0/0/0 (DCE)

10.1.1.1

255.255.255.252

not applicable

R2

G0/0

209.165.201.1

255.255.255.0

not applicable

S0/0/0

10.1.1.2

255.255.255.252

not applicable

S0/0/1 (DCE)

10.2.2.2

255.255.255.252

not applicable

R3

G0/1

172.30.30.1

255.255.255.0

not applicable

S0/0/1

10.2.2.1

255.255.255.252

not applicable

S1

not applicable

VLAN 1

not applicable

not applicable

S3

not applicable

VLAN 1

not applicable

not applicable

PC-A

NIC

172.30.10.3

255.255.255.0

172.30.10.1

PC-B

NIC

209.165.201.2

255.255.255.0

209.165.201.1

PC-C

NIC

172.30.30.3

255.255.255.0

172.30.30.1

3. Goal

Part 1 : Set up the network and configure the basic settings of the device

Part 2 : Configure RIPv2 routing and verify it

  • Configure RIPv2 on the router and verify that it is running.
  • Configure passive interface.
  • Check the routing table.
  • Disable automatic summarization.
  • Configure default route.
  • Verify end-to-end connectivity

4. Configuration process 

Part One: Set up the network and configure the basic settings of the device

Step 1: Establish a network as shown in the topology diagram

      When configuring the topology diagram, since there is no corresponding Serial interface on the router by default, it needs to be added by adding a board slot . The operation is as follows:

① Turn off the device

② Add the corresponding module

 ③ Turn on the computer after adding it

After adding both routers, you can connect the Serial interface. According to the requirements of this question, you need to use the DCE cable (the one marked) . In addition, wherever the small clock on the topology is, whichever interface is connected first .

Step 2: Initialize and reload the router and switch (omitted)

Step 3: Configure basic settings for each router and switch

Note: Personally, it is recommended to do this part last for fast configuration, because it is too troublesome to enter the password every time you log in.

① Disable DNS lookup

Take R1 as an example:

R1(config)#no ip domain-lookup 

② Configure device name

Take R1 as an example:

Cisco(config)#hostname R1

③ Configure password encryption

Take S3 as an example:

S3(config)#enable secret pass

④ Specify class as the privileged EXEC password

Take R2 as an example:

R2(config)#enable password class

⑤ Specify cisco as the console and vty password

Take R3 as an example:

R3(config)#line console 0
R3(config-line)#password cisco
R3(config-line)#exi
R3(config)#line vty 0 4
R3(config-line)#password cisco

⑥ Configure MOTD banner to warn users against unauthorized access

Take R2 as an example:

R2(config)#banner motd c
Enter TEXT message.  End with the character 'c'.
加标语
c

⑦ Configure logging synchronous for the console line

Take R3 as an example:

R3(config)#line console 0
R3(config-line)#logging synchronous 

⑧ Configure all interfaces with IP addresses listed in the address allocation table (omitted)

⑨ Configure description for each interface with IP address

Take R1 as an example:

R1(config)#int s0/0/0
R1(config-if)#description +描述

⑩ Configure the clock frequency (if applicable) to the DCE serial interface

Take R1 as an example:

R1(config)#int s0/0/0
R1(config-if)#clock rate +频率

11. Copy the running configuration to the startup configuration

Take R1 as an example:

R1#copy running-config startup-config
Destination filename [startup-config]?

Step 4: Configure PC and router IP (omitted)

Note: When configuring the IP address, be careful not to mismatch it, especially the PC mask. Pay attention to whether the automatically filled mask is consistent with the given address table; remember to open the interfaces of all devices.

Step Five: Test Connectivity

Take PC-A as an example:

C:\>ping 172.30.10.1

Pinging 172.30.10.1 with 32 bytes of data:

Reply from 172.30.10.1: bytes=32 time<1ms TTL=255
Reply from 172.30.10.1: bytes=32 time<1ms TTL=255
Reply from 172.30.10.1: bytes=32 time<1ms TTL=255
Reply from 172.30.10.1: bytes=32 time=4ms TTL=255

Ping statistics for 172.30.10.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 4ms, Average = 1ms

Take R1 as an example:

R1#ping 10.1.1.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms

 At this time, PCs cannot communicate with each other. Each PC can communicate with the directly connected router (gateway), and the routers can communicate with each other.

Part 2: Configure RIPv2 routing and verify it

Step 1: Configure RIPv2 routing

① Configure RIPv2 as the routing protocol on R1 and advertise the appropriate connected networks.

R1# conf ter
R1(config)# router rip
R1(config-router)# version 2
R1(config-router)# passive-interface g0/1
R1(config-router)# network 172.30.0.0
R1(config-router)# network 10.0.0.0

② Configure RIPv2 on R3 and use network statements to add appropriate connected networks and prevent routing updates on the LAN interface.

R3# conf ter
R3(config)# router rip
R3(config-router)# version 2
R3(config-router)# passive-interface g0/1
R3(config-router)# network 172.30.0.0
R3(config-router)# network 10.0.0.0

③ Configure RIPv2 on R2 and use network statements to add appropriate connected networks. Do not advertise the 209.165.201.0 network. 

R2# conf ter
R2(config)# router rip
R2(config-router)# version 2
R2(config-router)# network 10.0.0.0

Note: Since the network associated with the G0/0 interface is no longer advertised, it is not necessary to make this interface passive on R2.

Step 2: Check the current status of the network

The command lines involved in this part are as follows:

show ip interface brief //View the link status of the interface

ping //check connectivity

debug ip rip //Capture data packets related to the RIP protocol

undebug all //Close packet capture

show ip protocols //View routing protocols

show run //View running configuration

show ip route //View routing table

Step 3: Disable automatic summarization 

 For R1:

R1(config)# router rip
R1(config-router)# no auto-summary
R1(config-router)# end
R1# clear ip route *

For R2:

R2(config)# router rip
R2(config-router)# no auto-summary
R2(config-router)# end
R2# clear ip route *

For R3:

R3(config)# router rip
R3(config-router)# no auto-summary
R3(config-router)# end
R3# clear ip route *

 Note: Automatic summarization must be disabled on all three devices, otherwise some routes will be missing and network interoperability will fail.

Step 4: Configure and redistribute default routes for Internet access

① Configure the default static route of R2 to PC-B

R2(config)# ip route 0.0.0.0 0.0.0.0 209.165.201.2

② Import default routes into RIP

R2(config)# router rip
R2(config-router)# default-information originate

Step 5: Verify routing configuration

R1#show ip route

Step 6: Verify connection

Take PC-A as an example:

C:\>ping 209.165.201.2

Pinging 209.165.201.2 with 32 bytes of data:

Request timed out.
Reply from 209.165.201.2: bytes=32 time=10ms TTL=126
Reply from 209.165.201.2: bytes=32 time=8ms TTL=126
Reply from 209.165.201.2: bytes=32 time=6ms TTL=126

Ping statistics for 209.165.201.2:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 10ms, Average = 8ms

Guess you like

Origin blog.csdn.net/as12138/article/details/123922336