HCIP_RIP实验

实验要求:

 R1--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

[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 g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
Sep  3 2022 10:38:36-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 14.1.1.1 24
[R1-GigabitEthernet0/0/1]
Sep  3 2022 10:39:32-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

R2

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R2
[R2]user-interface console 0
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]q
[R2]int lo0
[R2-LoopBack0]ip add 2.2.2.2 24
[R2-LoopBack0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 12.1.1.2 24
Sep  3 2022 10:42:23-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 23.1.1.1 24
Sep  3 2022 10:43:04-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]

R3

[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/1
[R3-GigabitEthernet0/0/1]ip add 23.1.1.2 24
Sep  3 2022 11:03:33-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 34.1.1.1 24
Sep  3 2022 11:04:00-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

R4

[Huawei]sys R4
[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/1
[R4-GigabitEthernet0/0/1]ip add 34.1.1.2 24
Sep  3 2022 11:06:03-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 14.1.1.2 24
Sep  3 2022 11:06:16-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]int g4/0/0
[R4-GigabitEthernet4/0/0]ip add 46.1.1.1 24
[R4-GigabitEthernet4/0/0]
Sep  3 2022 11:06:36-08:00 R4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state. 
[R4-GigabitEthernet4/0/0]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 45.1.1.1 24
Sep  3 2022 11:06:57-08:00 R4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 

R5

[Huawei]sys R5	
[R5]user-int 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
Sep  3 2022 11:09:49-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 

R6

[Huawei]sys R6
[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/1
[R6-GigabitEthernet0/0/1]ip add 46.1.1.2 24
Sep  3 2022 11:11:32-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R6-GigabitEthernet0/0/1]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 67.1.1.1 24
Sep  3 2022 11:11:54-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 

R7

[R7]user-interface console 0
[R7-ui-console0]idle-timeout  0 0
[R7-ui-console0]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
Sep  3 2022 11:13:33-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 

测试连通性

R1

[R1]rip 100
[R1-rip-100]ver 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-GigabitEthernet0/0/0]rip 100
[R2-rip-100]ver 2
[R2-rip-100]net	
[R2-rip-100]network 2.0.0.0
[R2-rip-100]network 12.0.0.0
[R2-rip-100]network 23.0.0.0

R3

[R3-GigabitEthernet0/0/0]rip 100
[R3-rip-100]ver 2
[R3-rip-100]network 3.0.0.0
[R3-rip-100]network 23.0.0.0
[R3-rip-100]network 34.0.0.0

R4

[R4-GigabitEthernet0/0/2]rip 100
[R4-rip-100]ver 2
[R4-rip-100]net	
[R4-rip-100]network 4.0.0.0
[R4-rip-100]network 34.0.0.0
[R4-rip-100]network 14.0.0.0
[R4-rip-100]network 45.0.0.0
[R4-rip-100]network 46.0.0.0

R5

[R5-GigabitEthernet0/0/2]rip 100
[R5-rip-100]ver 2
[R5-rip-100]net	
[R5-rip-100]network 5.0.0.0
[R5-rip-100]network 45.0.0.0

R6

[R6-GigabitEthernet0/0/0]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

[R7-GigabitEthernet0/0/1]rip 200
[R7-rip-200]ver 1	
[R7-rip-200]network 7.0.0.0
[R7-rip-200]network 67.0.0.0

R1环回

[R1-rip-100]int l1
[R1-LoopBack1]ip add 172.16.1.1 24
[R1-LoopBack1]int l2
[R1-LoopBack2]ip add 172.16.2.1 24
[R1-LoopBack2]int l3
[R1-LoopBack3]ip add 172.16.3.1 24
[R1-LoopBack3]rip 100
[R1-rip-100]network 172.16.0.0
[R1-rip-100]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

R3

[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-acl-basic-2000]q
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]rip metricin 2000 2
[R3-GigabitEthernet0/0/0]q
[R3]dis ip ro pro rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 9        Routes : 9        

RIP routing table status : <Active>
         Destinations : 9        Routes : 9

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.0/24  RIP     100  2           D   23.1.1.1        GigabitEthernet
0/0/1
        2.2.2.0/24  RIP     100  1           D   23.1.1.1        GigabitEthernet
0/0/1
        4.4.4.0/24  RIP     100  1           D   34.1.1.2        GigabitEthernet
0/0/0
        5.5.5.0/24  RIP     100  2           D   34.1.1.2        GigabitEthernet
0/0/0
       12.1.1.0/24  RIP     100  1           D   23.1.1.1        GigabitEthernet
0/0/1
       14.1.1.0/24  RIP     100  1           D   34.1.1.2        GigabitEthernet
0/0/0
       45.1.1.0/24  RIP     100  1           D   34.1.1.2        GigabitEthernet
0/0/0
       46.1.1.0/24  RIP     100  1           D   34.1.1.2        GigabitEthernet
0/0/0
     172.16.0.0/22  RIP     100  2           D   23.1.1.1        GigabitEthernet
0/0/1

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0

R1 R2

[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 nonstandard cipher huawei 1

R5

[R5-rip-100]int l1
[R5-LoopBack1]ip add 55.5.5.5 32

R1 R2 R7

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



<R6>telnet 7.7.7.7
  Press CTRL_] to quit telnet mode
  Trying 7.7.7.7 ...
  Connected to 7.7.7.7 ...

Login authentication


Password:
<R7>



[R2-GigabitEthernet0/0/1]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

[R2]acl 2000
[R2-acl-basic-2000]rule permit source 7.0.0.0 0
[R2-acl-basic-2000]int g0/0/1
[R2-GigabitEthernet0/0/1]rip metricin 2000 2

[R4]acl 2000
[R4-acl-basic-2000]rule permit source 12.1.1.0 0
[R4-acl-basic-2000]int g0/0/0	
[R4-GigabitEthernet0/0/0]rip metricin 2000 3


<R1>telnet 2.2.2.2
  Press CTRL_] to quit telnet mode
  Trying 2.2.2.2 ...
  Connected to 2.2.2.2 ...

Login authentication


Password:
<R7>

R6 R7

[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-acl-basic-2000]q
[R6]rip 200
[R6-rip-200]filter-policy 2000 import g0/0/1


[R5]rip 100
[R5-rip-100]default-route originate 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值