用ensp软件模拟RIP协议

一:实验要求

二:根据题意来新建拓扑(划分子网并汇总)

 

三:根据上面我们划分的地址我们开始配环回地址和骨干IP

R1

<Huawei>system-view 
[Huawei]sysname r1

[r1]interface loop    
[r1]interface LoopBack 0
[r1-LoopBack0]ip add 192.168.1.65 27
[r1-LoopBack0]q

[r1]interface loop    
[r1]interface LoopBack 1
[r1-LoopBack1]ip add 192.168.1.97 27
[r1-LoopBack1]q
开始配IP

[r1]interface g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 30
Jan 15 2024 01:15:31-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]q

R2

 <Huawei>system-view 
[Huawei]sysname r2
[r2]int    
[r2]interface loop    
[r2]interface LoopBack 0
[r2-LoopBack0]ip add 192.168.1.129 27
[r2-LoopBack0]q
[r2]interface LoopBack 1
[r2-LoopBack1]ip add 192.168.1.161 27
[r2-LoopBack1]q

开始配IP
[r2]int    
[r2]interface g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 30
Jan 15 2024 01:16:12-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]q
[r2]int    
[r2]interface g 0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.1.5 30
Jan 15 2024 01:16:33-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]q

R3

<Huawei>
<Huawei>sys    
<Huawei>system-view   
[Huawei]sysname r3
[r3]interface g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.6 30
Jan 15 2024 01:17:27-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]q
[r3]interface LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3 24

四:配好IP后我们·开始对直连路由进行通讯

 

 

 五:编写RIP 让他们进行信息的互通

R1 

[r1]rip
[r1-rip-1]
[r1-rip-1]ver    
[r1-rip-1]vers    
[r1-rip-1]version 2
[r1-rip-1]net    
[r1-rip-1]network 192.168.1.0
[r1-rip-1]q

R2

[r2]rip
[r2-rip-1]version 2
[r2-rip-1]net    
[r2-rip-1]network 192.168.1.0
[r2-rip-1]
 

R3

[r3]rip
[r3-rip-1]version 2
[r3-rip-1]network 192.168.1.0
[r3-rip-1]def    
[r3-rip-1]default-cost
[r3-rip-1]default-route o    
[r3-rip-1]default-route originate 
[r3-rip-1]q

六:查看路由表

R1

 

R2

 

R3

 

七:ping 3.3.3.3

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值