5台路由1台交换机环回实验

 左下角为实验要求,上为设备所在位置。

大致思路:首先先写清几台路由的地址,为后续的连接做到基础

 在CRT中依次写下地址

R1

<Huawei>
<Huawei>sys
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R1
[R1]inter
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip ad    
[R1-GigabitEthernet0/0/0]ip address 125.1.1.1 24
Nov 21 2021 17:40:34-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]quit
[R1]

R2

<Huawei>
<Huawei>
<Huawei>sys
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R2
[R2]inter
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip ad
[R2-GigabitEthernet0/0/0]ip address 125.1.1.2 24
Nov 21 2021 17:42:55-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]quit
[R2]inter
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip ad 
[R2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
Nov 21 2021 17:44:12-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R2-GigabitEthernet0/0/1]quit

R3

<Huawei>
<Huawei>sys
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R3
[R3]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R3>
<R3>
<R3>sys
<R3>system-view 
Enter system view, return user view with Ctrl+Z.
[R3]inter
[R3]interface g0/0/0 
[R3-GigabitEthernet0/0/0]ip ad
[R3-GigabitEthernet0/0/0]ip address 23.1.1.3 24
Nov 21 2021 17:46:39-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]quit
[R3]inter
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]ip ad
[R3-GigabitEthernet0/0/1]ip address 34.1.1.3 24
Nov 21 2021 17:47:33-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]quit

R4

<Huawei>
<Huawei>
<Huawei>sys
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R4
[R4]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R4>
<R4>sys
<R4>system-view 
Enter system view, return user view with Ctrl+Z.
[R4]inter
[R4]interface g0/0/0
[R4-GigabitEthernet0/0/0]ip ad
[R4-GigabitEthernet0/0/0]ip address 34.1.1.4
                                             ^
Error:Incomplete command found at '^' position.
[R4-GigabitEthernet0/0/0]ip address 34.1.1.4 24
Nov 21 2021 17:49:28-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]quit
[R4]inter
[R4]interface g0/0/1
[R4-GigabitEthernet0/0/1]ip ad
[R4-GigabitEthernet0/0/1]ip address 45.1.1.4/24
                                    ^
Error: Wrong parameter found at '^' position.
[R4-GigabitEthernet0/0/1]ip address 45.1.1.4 24
[R4-GigabitEthernet0/0/1]
Nov 21 2021 17:50:45-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R4-GigabitEthernet0/0/1]quit

R5

<Huawei>
<Huawei>
<Huawei>sys
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R5
[R5]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<R5>sys
<R5>system-view 
Enter system view, return user view with Ctrl+Z.
[R5]inter
[R5]interface g0/0/0
[R5-GigabitEthernet0/0/0]ip ad
[R5-GigabitEthernet0/0/0]ip address 45.1.1.5 24
Nov 21 2021 17:54:35-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]undo ip ad            
[R5-GigabitEthernet0/0/0]undo ip address 45.1.1.5 24
Nov 21 2021 17:55:09-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the DOWN state. 
[R5-GigabitEthernet0/0/0]ip ad
[R5-GigabitEthernet0/0/0]ip address 125.1.1.5 24
Nov 21 2021 17:56:01-08:00 R5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R5-GigabitEthernet0/0/0]quit
[R5]inter
[R5]interface g0/0/1
[R5-GigabitEthernet0/0/1]ip ad
[R5-GigabitEthernet0/0/1]ip address 45.1.1.5 24
[R5-GigabitEthernet0/0/1]
Nov 21 2021 17:56:31-08:00 R5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R5-GigabitEthernet0/0/1]quit
[R5]
 

写清R2 R3 R4的环回

[R2]inter
[R2]interface loo
[R2]interface LoopBack 0
[R2-LoopBack0]ip da
[R2-LoopBack0]ip ad
[R2-LoopBack0]ip address 192.168.1.1 25
[R2-LoopBack0]quit
[R2]inter
[R2]interface loo
[R2]interface LoopBack 1
[R2-LoopBack1]ip ad
[R2-LoopBack1]ip address 192.168.1.128 25
Error: The specified IP address is invalid.
[R2-LoopBack1]ip address 192.168.1.129 25
[R2-LoopBack1]quit

[R3]inter
[R3]interface loo
[R3]interface LoopBack 0
[R3-LoopBack0]ip ad
[R3-LoopBack0]ip address 192.168.2.1 25
[R3-LoopBack0]quit
[R3]interq=
[R3]inter  
[R3]interface loo  
[R3]interface LoopBack 1
[R3-LoopBack1]ip ad
[R3-LoopBack1]ip address 192.168.2.129 25
[R3-LoopBack1]quit
[R3]

[R4]inter
[R4]interface loo
[R4]interface LoopBack 0
[R4-LoopBack0]
[R4-LoopBack0]ip 
[R4-LoopBack0]ip ad
[R4-LoopBack0]ip address 192.168.3.1 25
[R4-LoopBack0]quit
[R4]inter
[R4]interface loo
[R4]interface LoopBack 1
[R4-LoopBack1]ip ad
[R4-LoopBack1]ip address 192.168.4.129 25 
[R4-LoopBack1]quit

再使用RIP防环机制

rip防环机制
1.有最大跳数限制(若出现“环”最多可传15次)
2…毒性逆转;从某个接口学到的路由后,将跳数设置为16,并从原接口发回邻居路由
3.水平分割:从某个接口接收到的路由不再从这个接口传回。
4.抑制计时器:通过触发更新(当一条路上的度量出现变化时立即向邻居发送新报文)加快网络收敛速度

[R2]rip 1
[R2-rip-1]
[R2-rip-1]ver
[R2-rip-1]verify-source
[R2-rip-1]version 2
[R2-rip-1]net
[R2-rip-1]network 125.0.0.0
[R2-rip-1]net
[R2-rip-1]network 23.0.0.0
[R2-rip-1]nter
[R2-rip-1]net 
[R2-rip-1]network 192.168.1.0
[R2-rip-1]quit

[R3]rip 1
[R3-rip-1]ver
[R3-rip-1]verify-source
[R3-rip-1]version 2
[R3-rip-1]net 
[R3-rip-1]network 23.0.0.0
[R3-rip-1]net
[R3-rip-1]network 34.0.0.0
[R3-rip-1]net
[R3-rip-1]network 192.168.2.0
[R3-rip-1]quit

[R4]rip 1
[R4-rip-1]ver
[R4-rip-1]verify-source
[R4-rip-1]version 2
[R4-rip-1]net 
[R4-rip-1]network 34.0.0.0
[R4-rip-1]net
[R4-rip-1]network 45.0.0.0
[R4-rip-1]net       
[R4-rip-1]network 192.168.3.0
[R4-rip-1]quit
[R4]inter
[R4]interface loo
[R4]interface LoopBack 2
[R4-LoopBack2]ip ad
[R4-LoopBack2]ip address 100.1.1.1 24
[R4-LoopBack2]quit

由于R4的环回不能被宣告,所以需要加个interface lookback 2

汇总

[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ri
[R2-GigabitEthernet0/0/0]rip su
[R2-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 25
                                                         ^
Error: Wrong parameter found at '^' position.
[R2-GigabitEthernet0/0/0]rip summary-address 192.168.1.0 255.255.255.0
[R2-GigabitEthernet0/0/0]quit
[R2]ip
[R2]ip rou
[R2]ip route-static 192.168.1.0 24
                                   ^
Error:Incomplete command found at '^' position.
[R2]ip route-static 192.168.1.0 24 null 0
[R2]inter
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]rip su
[R2-GigabitEthernet0/0/1]rip summary-address 192.168.1.0 255.255.255.0
[R2-GigabitEthernet0/0/1]

[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]rip su
[R3-GigabitEthernet0/0/0]rip summary-address 192.168.2.0 255.255.255
                                                         ^
Error: Wrong parameter found at '^' position.
[R3-GigabitEthernet0/0/0]rip summary-address 192.168.2.0 255.255.255.0
[R3-GigabitEthernet0/0/0]quit
[R3]inter
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]rip su
[R3-GigabitEthernet0/0/1]rip summary-address 192.168.2.0 255.255.255.0
[R3-GigabitEthernet0/0/1]quit
[R3]ip rou
[R3]ip route
[R3]ip route-static 192.168.2.0 24nu
[R3]ip route-static 192.168.2.0 24 nu
[R3]ip route-static 192.168.2.0 24 NULL 0

[R4]inter
[R4]interface g0/0/0 
[R4-GigabitEthernet0/0/0]rip su
[R4-GigabitEthernet0/0/0]rip summary-address 192.168.3.0 255.255.255.0
[R4-GigabitEthernet0/0/0]quit
[R4]inter
[R4]interface g0/0/1
[R4-GigabitEthernet0/0/1]rip su
[R4-GigabitEthernet0/0/1]rip summary-address 192.168.3.0 255.255.255.0
[R4-GigabitEthernet0/0/1]quit
[R4]ip rou
[R4]ip route
[R4]ip route-static 192.168.3.0 24nu
[R4]ip route-static 192.168.3.0 24 nu
[R4]ip route-static 192.168.3.0 24 NULL 0

interface g口,进入后rip summary-address 该地址,IProute-static地址加null 0

后全部进入系统视图

rip1 选择版本2 time rip 15 90 60

display rip

完成

  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kaituozhizzz

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值