实验需求
- 路由器上分别配置环回;
- 连接路由器的线路网段为12.1.1.0/24、23.1.1.0/24;
- R1和R3连接的网络地址分别为192.168.1.0/24、192.168.2.0/24;
- 整个网络使用RIP达到全网可达。
实验步骤
配IP
[R1]interface Ethernet 0/0/0
[R1-Ethernet0/0/0]ip address 192.168.1.254 24
[R1-Ethernet0/0/0]q
[R1]interface Ethernet 0/0/1
[R1-Ethernet0/0/1]ip address 12.1.1.1 2
[R1-Ethernet0/0/1]q
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 1.1.1.1 32
[R1-LoopBack0]q
[R2]interface Ethernet 0/0/0
[R2-Ethernet0/0/0]ip address 12.1.1.2 24
[R2-Ethernet0/0/0]q
[R2]interface Ethernet 0/0/1
[R2-Ethernet0/0/1]ip address 23.1.1.2 24
[R2-Ethernet0/0/1]q
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 32
[R2-LoopBack0]q
[R3]interface Ethernet 0/0/0
[R3-Ethernet0/0/0]ip address 23.1.1.3 24
[R3-Ethernet0/0/0]q
[R3]interface Ethernet 0/0/1
[R3-Ethernet0/0/1]ip address 192.168.2.254 24
[R3-Ethernet0/0/1]q
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 3.3.3.3 32
[R3-LoopBack0]q
检查
启动rip
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]undo summary
[R1-rip-1]network 192.168.1.0
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 1.0.0.0
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]undo summary
[R2-rip-1]network 12.0.0.0
[R2-rip-1]network 23.0.0.0
[R2-rip-1]network 2.0.0.0
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]undo summary
[R3-rip-1]network 23.0.0.0
[R3-rip-1]network 192.168.2.0
[R3-rip-1]network 3.0.0.0
验证信息
R1
R2
R3