实验拓扑图如下图所示: 浮动路由配置命令 R1上配置: [R1]interface g0/0/1 [R1-GigabitEthernet0/0/1]ip address 192.168.2.1 24 [R1]interface g0/0/2 [R1-GigabitEthernet0/0/2]ip address 192.168.3.1 24 [R1]interface g0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.168.1.254 24 [R1]ip route-static 192.168.4.0 255.255.255.0 192.168.2.2 preference 80 [R1]ip route-static 192.168.4.0 255.255.255.0 192.168.3.2 preference 90

R2上配置: [R2]interface g0/0/1 [R2-GigabitEthernet0/0/1]ip address 192.168.2.2 24 [R2]interface g0/0/2 [R2-GigabitEthernet0/0/2]ip address 192.168.3.2 24 [R2]interface g0/0/0 [R2-GigabitEthernet0/0/0]ip address 192.168.4.254 24 [R2]ip route-static 192.168.1.0 255.255.255.0 192.168.2.1 preference 80 [R2]ip route-static 192.168.1.0 255.255.255.0 192.168.3.1 preference 90