HCIP-RIP实验综合

实验拓扑图:

HCIP-RIP实验综合_第1张图片


 实验要求:

要求:R1-R2-R3-R4-R5 RIP 100运行版本2;R6-R7 RIP 200 运行版本1
1.使用合理IP地址规划网络,各自创建环回接口
2.R1创建环回 172.16.1.1/24 172.16.2.1/24 172.16.3.1/24
3.要求R3使用R2访问R1环回
4.减少路由条目数量,增加路由传递安全性
5.R5创建一个环回模拟运营商,不能通告
6.R1 telnet R2环回实际telnet 到R7上
7.R6-R7路由器不能学习到达R1环回路由
8.全网可达


 实验配置:

1、配置各个路由器接口IP地址以及环回地址:

① R1

[R1]int l 0
[R1-LoopBack0]ip add 1.1.1.1 24
[R1-LoopBack0]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 14.1.1.1 24
[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 12.1.1.1 24

② R2

[R2]int l 0
[R2-LoopBack0]ip add 2.2.2.2 24
[R2-LoopBack0]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/0]int g 0/0/1
[R2-GigabitEthernet0/0/1]ip add 23.1.1.1 24

③ R3

[R3]int l 0
[R3-LoopBack0]ip add 3.3.3.3 24
[R3-LoopBack0]int g 0/0/1
[R3-GigabitEthernet0/0/1]ip add 23.1.1.2 24
[R3-GigabitEthernet0/0/1]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip add 34.1.1.2 24

④ R4

[R4]int l 0
[R4-LoopBack0]ip add 4.4.4.4 24
[R4-LoopBack0]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip add 14.1.1.2 24
[R4-GigabitEthernet0/0/0]int g 0/0/1
[R4-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[R4-GigabitEthernet0/0/1]int g 0/0/2
[R4-GigabitEthernet0/0/2]ip add 45.1.1.1 24
[R4-GigabitEthernet0/0/2]int g 4/0/0
[R4-GigabitEthernet4/0/0]ip add 46.1.1.1 24

⑤ R5

[R5]int l 0
[R5-LoopBack0]ip add 5.5.5.5 24
[R5-LoopBack0]int l 1
[R5-LoopBack1]int g 0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.1.1.2 24

⑥ R6

[R6]int l 0
[R6-LoopBack0]ip add 6.6.6.6 24
[R6-LoopBack0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 46.1.1.2 24
[R6-GigabitEthernet0/0/0]int g 0/0/1
[R6-GigabitEthernet0/0/1]ip add 67.1.1.1 24

⑦ R7

[R7]int l 0
[R7-LoopBack0]ip add 7.7.7.7 24
[R7-LoopBack0]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 67.1.1.2 24

2、配置RIP的基本功能 :启动RIP进程,在指定网段使能RIP

① R1

[R1]rip 100
[R1-rip-100]version 2
[R1-rip-100]network 1.0.0.0
[R1-rip-100]network 12.0.0.0
[R1-rip-100]network 14.0.0.0

② R2 

[R2]rip 100
[R2-rip-100]version 2
[R2-rip-100]network 12.0.0.0
[R2-rip-100]network 2.0.0.0
[R2-rip-100]network 23.0.0.0

③ R3

[R3]rip 100 
[R3-rip-100]version 2
[R3-rip-100]network 23.0.0.0
[R3-rip-100]network 3.0.0.0
[R3-rip-100]network 34.0.0.0

④ R4

[R4]rip 100
[R4-rip-100]version 2
[R4-rip-100]network 14.0.0.0
[R4-rip-100]network 4.0.0.0
[R4-rip-100]network 34.0.0.0
[R4-rip-100]network 45.0.0.0
[R4-rip-100]network 46.0.0.0

⑤ R5

[R5]rip 100
[R5-rip-100]version 2
[R5-rip-100]network 5.0.0.0
[R5-rip-100]network 45.0.0.0

⑥ R6

[R6]rip 200
[R6-rip-200]version 1
[R6-rip-200]network 46.0.0.0
[R6-rip-200]network 6.0.0.0
[R6-rip-200]network 67.0.0.0

⑦ R7

[R7]rip 200
[R7-rip-200]version 1
[R7-rip-200]network 67.0.0.0
[R7-rip-200]network 7.0.0.0

3、R1创建环回 172.16.1.1/24  172.16.2.1/24  172.16.3.1/24 

① 创建环回

[R1]int l 1
[R1-LoopBack1]ip add 172.16.1.1 24
[R1-LoopBack1]int l 2
[R1-LoopBack2]ip add 172.16.2.1 24
[R1-LoopBack2]int l 3
[R1-LoopBack3]ip add 172.16.3.1 24

② 指定这些网段使能RIP 

[R1]rip 100
[R1-rip-100]network 172.16.0.0

4、R3使用R2访问R1环回

① 减少路由条目数量,汇总R1的环回接口

[R1] int g 0/0/0
[R1-GigabitEthernet0/0/0] rip summary-address 172.16.0.0 255.255.252.0
[R1] int g 0/0/1	
[R1-GigabitEthernet0/0/1] rip summary-address 172.16.0.0 255.255.252.0

 ② 修改R3接口G 0/0/0的附加度量值,控制RIP的路由选路,不让从R1环回来的路由经过R4

[R3] acl 2000
[R3-acl-basic-2000] rule permit source 1.1.1.0 0
[R3-acl-basic-2000] rule permit source 172.16.0.0 0
[R3] int g 0/0/0
[R3-GigabitEthernet0/0/0] rip metricin 2000 2

5、R5创建一个环回模拟运营商,不能通告,但保证全网可达,需配置缺省路由

[R5] int l 1
[R5-LoopBack1] ip add 55.5.5.5 32
[R5] rip 100
[R5-rip-100] default-route originate 

6、在R6的g 0/0/0接口配合RIP V2版本,保证路由互通

[R6]int g 0/0/0
[R6-GigabitEthernet0/0/0]rip version 2

7、在R7上做telnet,此时R7可以被telnet

[R7]user-interface vty 0 4
[R7-ui-vty0-4]set authentication password cipher huawei

8、 R1 telnet R2环回实际telnet 到R7上

   R1-->R2-->R7

[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]nat server protocol tcp global interface loopback 0 23 
inside 7.7.7.7 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y

  R7-->R2-->R1

[R2]acl 2000
[R2-acl-basic-2000]rule permit source 7.0.0.0 0
[R2-acl-basic-2000]int g 0/0/0
[R2-GigabitEthernet0/0/0]rip metricin 2000 2
[R4]acl 2000	
[R4-acl-basic-2000]rule permit source 12.1.1.0 0
[R4-acl-basic-2000]int g 0/0/0
[R4-GigabitEthernet0/0/0]rip metricin 2000 3

9、R6-R7路由器不能学习到达R1环回路由

[R6]acl 2000
[R6-acl-basic-2000]rule deny source 1.1.1.0 0
[R6-acl-basic-2000]rule deny source 172.16.0.0 0	
[R6-acl-basic-2000]rule permit source any 
[R6]rip 200
[R6-rip-200]filter-policy 2000 import GigabitEthernet 0/0/0

实验结果:

全网可达

HCIP-RIP实验综合_第2张图片

你可能感兴趣的:(HCIP,网络,运维,网络协议)