要求
1.路由器分别配置环回
2.连接路由器的网段12.1.1.0/24 23.1.1.0/24
3.r1 r3网络地址192.168.1.0/24 192.168.2.0/24
4.整个全网可达
分析
1.环回接口配置IP
2.RIP协议配置
3.接口IP配置
4.电脑ip配置
1.R1配置
<Huawei>sys
<Huawei>system-view
[Huawei]interface Loopback 1
[Huawei-LoopBack1]ip address 1.1.1.1 32
[Huawei-LoopBack1]q
[Huawei]inter
[Huawei]interface g
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip addre
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
Aug 15 2022 22:09:08-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 12.1.1.1 24
Aug 15 2022 22:10:06-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]q
<Huawei>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/24 up up
GigabitEthernet0/0/1 12.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack1 1.1.1.1/32 up up(s)
NULL0 unassigned up up(s)
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]rip 1
[Huawei-rip-1]version 2
[Huawei-rip-1]network 1.1.1.1
[Huawei-rip-1]network 1.0.0.0
[Huawei-rip-1]network 12.0.0.0