【RIP配置实验】
-
实验拓扑
-
实验需求
1.R3环回3.3.3.0/24,不宣告此环回;
2.其他网段基于192.168.1.0/24进行划分;
3.R1与R2均存在两个环回;
4.整个网络运行ripv2;
5.全网可达,保证更新安全,减少路由条目
三、实验思路:
1.除了R3的环回地址固定3.3.3.0/24,其他网段基于192.168.1.0/24进行合理划分;
R1环回,R2环回,线1,线2? 共4个网段
192.168.1.0000 0000 24
R1? ???192.168.1.0000 0000 26
L0 192.168.1.0000 0000? 27
192.168.1.1? ?27?
L1?192.168.1.0010 0000? 27
192.168.1.33? ?27?
R2? ??192.168.1.0100 0000 26
L0??192.168.1.0100 0000? 27
192.168.1.65? ?27??
L1??192.168.1.0110 0000? 27
192.168.1.97? 27?
线1? ? 线2? ??192.168.1.1000 0000 26
1? ?192.168.1.1000 0000? 27
0? ?192.168.1.1000?0001? 28
1? 192.168.1.129? ? ?28
1? ?192.168.1.1001?0001? 28
2? ?192.168.1.145? ? 28
2? ??192.168.1.1010 0000? 27
0? ?192.168.1.1010?0001? 28
2? ?192.168.1.161? ? 28
1? ?192.168.1.1011?0001? 28
3? ?192.168.1.177? ? ?28
? ?192.168.1.1100 0000 26? (没用)
2.配 RIP协议,(路由协议不同不互通)选version2
3. R3? 上配默认路由
4.配置接口的认证模式
5.手工汇总并防环
6.测试
四、实验步骤
1.重命名和配IP
R1
[Huawei]sysname R1
[R1]int?? ?
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip add?? ?
[R1-GigabitEthernet0/0/0]ip address 192.168.1.129 28
[R1-GigabitEthernet0/0/0]
Dec 24 2023 11:49:39-08:00 R1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP?
on the interface GigabitEthernet0/0/0 has entered the UP state.?
[R1-GigabitEthernet0/0/0]quit
[R1]interface LoopBack ?
? <0-1023> ?LoopBack interface number
[R1]interface LoopBack 0
[R1-LoopBack0]ip add?? ?
[R1-LoopBack0]ip address 192.168.1.1 27
[R1-LoopBack0]quit
[R1]interface LoopBack 1
[R1-LoopBack1]ip add 192.168.1.33 27
R2
R3
2.配RIP协议
[R1]rip ?
? INTEGER<1-65535> ?Process ID
? mib-binding ? ? ? Mib-Binding a process
? vpn-instance ? ? ?VPN instance
? <cr> ? ? ? ? ? ? ?Please press ENTER to execute command?
[R1]rip 1
[R1-rip-1]vers?? ?
[R1-rip-1]version ?2
[R1-rip-1]version 2
[R1-rip-1]undo s?? ?
[R1-rip-1]undo silent-interface
[R1-rip-1]undo summary
[R1-rip-1]net?? ?
[R1-rip-1]network 192.168.1.0? //宣告网段
[R1-rip-1]quit
R2
[R2]rip 1
[R2-rip-1]ver?? ?
[R2-rip-1]verify-source
[R2-rip-1]version 2
[R2-rip-1]und?? ?
[R2-rip-1]undo s?? ?
[R2-rip-1]undo silent-interface
[R2-rip-1]undo summary
[R2-rip-1]net?? ?
[R2-rip-1]network 192.168.1.0
[R2-rip-1]quit
R3
[R3]rip 1
[R3-rip-1]ver?? ?
[R3-rip-1]verify-source
[R3-rip-1]version 2
[R3-rip-1]und?? ?
[R3-rip-1]undo s?? ?
[R3-rip-1]undo silent-interface
[R3-rip-1]undo summary
[R3-rip-1]net?? ?
[R3-rip-1]network 192.168.1.0
[R3-rip-1]
[R3-rip-1]
[R3-rip-1]quit
R3? 上配默认路由
[r3-rip-1]default-route originate ???//自动下发一条缺省给网络中的其他路由器
[R3]rip 1
[R3-rip-1]defa?? ?
[R3-rip-1]default-cost
[R3-rip-1]default-route o?? ?
[R3-rip-1]default-route originate?
[R3-rip-1]quit
保证更新安全,配置接口的认证模式
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher wdy12345 ??配置接口的认证模式
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]rip au?? ?
[R1-GigabitEthernet0/0/0]rip authentication-mode ?
? hmac-sha256 ?
? md5 ? ? ? ? ?MD5 authentication
? simple ? ? ? Simple authentication
[R1-GigabitEthernet0/0/0]rip authentication-mode md5?
? md5 ?MD5 authentication
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 ?
? nonstandard ?Nonstandard MD5 authentication packet format (IETF)
? usual ? ? ? ?Huawei MD5 authentication packet format
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 us?? ?
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 usual ?
? STRING<1-16>/<24,32> ?Plain text/Encrypted text
? cipher ? ? ? ? ? ? ? ?Encryption type (Cryptogram)
? plain ? ? ? ? ? ? ? ? Encryption type (Plain text)
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 usual ci?? ?
[R1-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher wdy12345
[R1-GigabitEthernet0/0/0]quit
[R2]int?? ?
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher wdy12345
[R2-GigabitEthernet0/0/0]quit
[R2]
减少路由条目,手工汇总
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192 ??手工汇总
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 ?
? IP_ADDR<X.X.X.X> ?IP address mask
[R1-GigabitEthernet0/0/0]rip summary-address 192.168.1.128 255.255.255.192
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]quit
R2-GigabitEthernet0/0/0]rip summary-address 192.168.1.192 255.255.255.192
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]rip summary-address 192.168.1.192 255.255.255.192
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]quit
配防环静态路由
[R1]ip ro?? ?
[R1]ip route-s?? ?
[R1]ip route-static 192.168.1.128 26 n?? ?
[R1]ip route-static 192.168.1.128 26 NULL 0
[R1]
[R2]ip route-?? ?
[R2]ip route-static 192.168.1.192 26 n?? ?
[R2]ip route-static 192.168.1.192 26 NULL 0
[R2]
测试
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!