要求: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.全网可达
一、实验拓扑
二、实验步骤
[R1]user-interface console 0
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]q
[R1]int lo0
[R1-LoopBack0]ip add 1.1.1.1 24
[R1-LoopBack0]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]int g 0/0/1
[R1-GigabitEthernet0/0/1]ip add 14.1.1.1 24
[R2]int lo0
[R2-LoopBack0]ip add 2.2.2.2 24
[R2-LoopBack0]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 23.1.1.1 24
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/1]user-in co0
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]q
[R3]user-interface console 0
[R3-ui-console0]idle-timeout 0 0
[R3-ui-console0]int lo0
[R3-LoopBack0]ip add 3.3.3.3 24
[R3-LoopBack0]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 34.1.1.1 24
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 23.1.1.2 24
[R4]user-interface console 0
[R4-ui-console0]idle-timeout 0 0
[R4-ui-console0]int lo0
[R4-LoopBack0]ip add 4.4.4.4 24
[R4-LoopBack0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 14.1.1.2 24
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 34.1.1.2 24
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 45.1.1.1 24
[R4-GigabitEthernet0/0/2]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 46.1.1.1 24
[R5]user-interface console 0
[R5-ui-console0]idle-timeout 0 0
[R5-ui-console0]int lo0
[R5-LoopBack0]ip add 5.5.5.5 24
[R5-LoopBack0]int g0/0/2
[R5-GigabitEthernet0/0/2]ip add 45.1.1.2 24
[R6]user-interface console 0
[R6-ui-console0]idle-timeout 0 0
[R6-ui-console0]int lo0
[R6-LoopBack0]ip add 6.6.6.6 24
[R6-LoopBack0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 67.1.1.1 24
[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip add 46.1.1.2 24
[R7]int lo0
[R7-LoopBack0]ip add 7.7.7.7 24
[R7-LoopBack0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 67.1.1.2 24
[R7]user-interface console 0
[R7-ui-console0]idle-timeout 0 0
例
[R1-LoopBack0]int lo1
[R1-LoopBack1]ip add 172.16.1.1 24
[R1-LoopBack1]int lo2
[R1-LoopBack2]ip add 172.16.2.1 24
[R1-LoopBack2]int lo3
[R1-LoopBack3]ip add 172.16.3.1 24
[R1]rip 100
[R1-rip-100]ver 2
[R1-rip-100]network 1.0.0.0
[R1-rip-100]network 172.16.0.0
[R1-rip-100]network 12.0.0.0
[R1-rip-100]network 14.0.0.0
[R2]rip 100
[R2-rip-100]ver 2
[R2-rip-100]network 12.0.0.0
[R2-rip-100]network 23.0.0.0
[R2-rip-100]network 2.0.0.0
[R3]rip 100
[R3-rip-100]ver 2
[R3-rip-100]network 3.0.0.0
[R3-rip-100]network 34.0.0.0
[R3-rip-100]network 23.0.0.0
[R4]rip 100
[R4-rip-100]ver 2
[R4-rip-100]network 4.0.0.0
[R4-rip-100]network 14.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]rip 100
[R5-rip-100]ver 2
[R5-rip-100]network 45.0.0.0
[R6]rip 200
[R6-rip-200]ver 1
[R6-rip-200]network 6.0.0.0
[R6-rip-200]network 46.0.0.0
[R6-rip-200]network 67.0.0.0
[R7-ui-console0]rip 200
[R7-rip-200]ver 1
[R7-rip-200]network 7.0.0.0
[R7-rip-200]network 67.0.0.0
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip summary-address 172.16.0.0 255.255.252.0
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]rip summary-address 172.16.0.0 255.255.252.0
[R1]ip route-static 172.16.0.0 22 NULL 0
[R3]acl 2000
[R3-acl-basic-2000]rule permit source1.1.1.0 0
[R3-acl-basic-2000]rulepermit source172.16.0.0 0
[R3-acl-basic-2000]q
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]rip metricin 2000 3
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 nonstandard cipher huawei 1
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]rip authentication-mode md5 nonstandard cipher huawei 1
[R6]int g0/0/1
[R6-GigabitEthernet0/0/1]rip version 2 multicast
[R7]user-interface console 0
[R7-ui-console0]undo authentication-mode
[R7-ui-console0]user-in vty 0 4
[R7-ui-vty0-4]undo auto-execute-mode
[R7-ui-vty0-4]authentication-mode password
Please configure the login password (maximum length 16):huawei
[R2]nat static protocol tcp global interface loopback 0 23 inside 7.7.7.7 23
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]nat static enable
[R4]acl 2000
[R4-acl-basic-2000]rule permit source 7.0.0.0 0
[R4-acl-basic-2000]q
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]rip metricin 2000 3
[R4]acl 2001
[R4-acl-basic-2001]rule permit source 12.1.1.0 0
[R4-acl-basic-2001]q
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]rip metricin 2001 3