网络环境:pc两台,3660路由器三个,交换机1台。如下图:R1分和连接PC1,R2,R3,SW1分别连接PC2,R2,R3.
R2,R3虚拟IP为192.168.4.1,其他IP如下图。
主要配置信息:
R1:
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet1/0
ip address 192.168.3.1 255.255.255.0
!
router rip
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
R2:
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.1 255.255.255.0
duplex auto
speed auto
standby 1 ip 192.168.4.3
standby 1 priority 120
standby 1 preempt
!
router rip
network 192.168.2.0
network 192.168.4.0
R3:
interface FastEthernet0/0
ip address 192.168.3.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.2 255.255.255.0
duplex auto
speed auto
standby 1 ip 192.168.4.3
standby 1 preempt
!
router rip
network 192.168.3.0
network 192.168.4.0
经过以上配置后,PC1和PC2可以互相ping通对方,对PC1做tracer测试,正常情况下路径为SW1--R2--R1。ping R3的端口测试结果为tineout。当shutdownR2的某个端口后,tracer路径变为SW1--R3--R1。
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
!
interface FastEthernet1/0
ip address 192.168.3.1 255.255.255.0
!
router rip
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
R2:
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.1 255.255.255.0
duplex auto
speed auto
standby 1 ip 192.168.4.3
standby 1 priority 120
standby 1 preempt
!
router rip
network 192.168.2.0
network 192.168.4.0
R3:
interface FastEthernet0/0
ip address 192.168.3.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.4.2 255.255.255.0
duplex auto
speed auto
standby 1 ip 192.168.4.3
standby 1 preempt
!
router rip
network 192.168.3.0
network 192.168.4.0
经过以上配置后,PC1和PC2可以互相ping通对方,对PC1做tracer测试,正常情况下路径为SW1--R2--R1。ping R3的端口测试结果为tineout。当shutdownR2的某个端口后,tracer路径变为SW1--R3--R1。
转载于:https://blog.51cto.com/cisco2600/214070