1.R3环回3.3.3.0/24,不宣告此环回;
2.其他网段基于192.168.1.0/24进行划分;
3.R1与R2均存在两个环回;
4.整个网络运行ripv2;
5.全网可达,保证更新安全,减少路由条目
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? (没用)
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
[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-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]