1.拓扑图
2.需求分析
要求:
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、整个网络使用RIP达到全网可达
分析:
1.给各PC以及路由分配IP
2.配置环回路由
分别打开RIP
3.配置内容
R1:
<Huawei>sys
[Huawei]sys r1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[r1]interface LoopBack 1
[r1-LoopBack1]ip add 1.1.1.1 32
[r1]dhcp enable
[r1]ip pool 1
[r1-ip-pool-1]network 192.168.1.0 mask 24
[r1-ip-pool-1]gateway-list 192.168.1.254
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
[r1]rip 1
[r1-rip-1]version 1
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 12.0.0.0
R2:
<Huawei>sys
[Huawei]sys r2
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.3 24
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[r2]interface LoopBack 1
[r2-LoopBack1]ip add 2.2.2.2 32
[r2]rip 1
[r2-rip-1]
[r2-rip-1]version 1
[r2-rip-1]network 12.0.0.0
[r2-rip-1]network
[r2-rip-1]network 2.0.0.0
[r2-rip-1]network 23.0.0.0
R3:
<Huawei>sys
[Huawei]sys r3
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip address 23.1.1.3 24
[r3-GigabitEthernet0/0/0]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[r3]interface LoopBack 1
[r3-LoopBack1]ip add 3.3.3.3 32
[r3]dhcp enable
[r3]ip pool 1
[r3-ip-pool-1]net
[r3-ip-pool-1]network 192.168.2.0 mask 24
[r3-ip-pool-1]gateway-list 192.168.2.254
[r3-GigabitEthernet0/0/1]dhcp select global
[r3]rip 1
[r3-rip-1]verify-source
[r3-rip-1]version 1
[r3-rip-1]network 23.0.0.0
[r3-rip-1]network 3.0.0.0
[r3-rip-1]network 192.168.2.0
4.结果