实验要求
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.减少路由条目数量,R1-R2之间增加路由传递安全性
5.R5创建一个环回模拟运营商,不能通告
6.R1 telnet R2环回实际telnet 到R7上
7.R6-R7路由器不能学习到达R1环回路由
8.全网可达
实验步骤
配置IP
[r1-Ethernet0/0/0]ip address 12.1.1.1 24
[r1-Ethernet0/0/1]ip address 13.1.1.1 24
[r2-Ethernet0/0/0]ip address 12.1.1.2 24
[r2-Ethernet0/0/1]ip address 15.1.1.1 24
[r3-Ethernet0/0/0]ip add 15.1.1.1 24
[r3-Ethernet0/0/1]ip add 14.1.1.2 24
[r4-Ethernet0/0/0]ip add 14.1.1.1 24
[r4-GigabitEthernet0/0/0]ip add 16.1.1.1 24
[r4-Ethernet0/0/1]ip add 13.1.1.1 24
[r4-GigabitEthernet0/0/2]ip add 17.1.1.2 24
[r5-Ethernet0/0/0]ip add 16.1.1.2 24
[r6-Ethernet0/0/0]ip add 17.1.1.1 24
[r6-Ethernet0/0/1]ip add 18.1.1.2 24
[r7-Ethernet0/0/0]ip add 18.1.1.1 24
配置环回接口
R1
[r1]int LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 24
[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 13.0.0.0
R2
[r2]int LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2
[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 15.0.0.0
R3
[r3]int LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3
[r3]rip 100
[r3-rip-100]version 2
[r3-rip-100]network 3.0.0.0
[r3-rip-100]network 15.0.0.0
[r3-rip-100]network 14.0.0.0
R4
[r4]int LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4
[r4]rip 100
[r4-rip-100]version 2
[r4-rip-100]network 4.0.0.0
[r4-rip-100]network 13.0.0.0
[r4-rip-100]network 14.0.0.0
[r4-rip-100]network 16.0.0.0
[r4-rip-100]network 17.0.0.0
R5
[r5]int LoopBack 0
[r5-LoopBack0]ip add 5.5.5.5 24
[r5]rip 100
[r5-rip-100]version 2
[r5-rip-100]network 5.0.0.0
[r5-rip-100]network 16.0.0.0
R6
[r6]int LoopBack 0
[r6-LoopBack0]ip add 6.6.6.6 24
[r6]rip 200
[r6-rip-200]version 1
[r6-rip-200]network 6.0.0.0
[r6-rip-200]network 17.0.0.0
[r6-rip-200]network 18.0.0.0
R7
[r7]int LoopBack 0
[r7-LoopBack0]ip add 7.7.7.7 24
[r7]rip 200
[r7-rip-200]version 1
[r7-rip-200]network 7.0.0.0
[r7-rip-200]network 18.0.0.0
R1创建环回
创建环回并使用指定网段能使用rip
[r1]int LoopBack 1
[r1-LoopBack1]ip add 172.16.1.1 24
[r1]int LoopBack 2
[r1-LoopBack2]ip add 172.16.2.1 24
[r1]int LoopBack 3
[r1-LoopBack3]ip add 172.16.3.1 24
R3使用R2访问R1环回
[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-Ethernet0/0/0]rip metric 2000 2
减少路由条目数量,R1-R2之间增加路由传递安全性
[r1-Ethernet0/0/0]rip summary-address 172.16.0.0 255.255.252.0
[r1-Ethernet0/0/1]rip summary-address 172.16.0.0 255.255.252.0
R5创建一个环回模拟运营商,不能通告
[r5]int LoopBack 1
[r5-LoopBack1]ip add 55.5.5.5 32
[r5-LoopBack1]rip 100
[r5-rip-100]default-route originate
R1 telnet R2环回实际telnet 到R7上
在R6的0/0/0接口令RIP V2版本使能
使R7可以被telnet
R1 telnet R2环回实际telnet 到R7上
[r2-Ethernet0/0/0]nat server protocol tcp global interface loopback 0 23 inside 7.7.7.7 23
Are you sure to continue?[Y/N]:y######
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 7.0.0.0 0
[r2-acl-basic-2000]int e 0/0/0
[r2-Ethernet0/0/0]rip metric 2000 2
[r4]acl 2000
[r4-acl-basic-2000]rule permit source 12.1.1.0 0
[r4-acl-basic-2000]int e 0/0/0
[r4-Ethernet0/0/0]rip metric 2000 3
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 Ethernet 0/0/0