Cấu Hình Dự Phòng Với HSRP
Cấu Hình Dự Phòng Với HSRP
Cấu Hình Dự Phòng Với HSRP
Router Hanoi1:
Hanoi1#show running-config
Building configuration...
version 12.3
no service password-encryption
hostname Hanoi1
boot-start-marker
boot-end-marker
no aaa new-model
resource policy
memory-size iomem 5
ip subnet-zero
!
ip cef
no ftp-server write-enable
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
duplex auto
speed auto
standby 1 ip 192.168.10.100
standby 1 preempt
!
router rip
version 2
network 172.16.0.0
network 192.168.10.0
no auto-summary
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
Hanoi1#
Hanoi1#show ip route
Hanoi1#
Hanoi1#
Hanoi1#show standby
FastEthernet1/0 - Group 1
State is Active
Hanoi1#
Hanoi2#show running-config
Building configuration...
version 12.3
no service password-encryption
hostname Hanoi2
boot-start-marker
boot-end-marker
no aaa new-model
resource policy
!
memory-size iomem 5
ip subnet-zero
ip cef
no ftp-server write-enable
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
duplex auto
speed auto
standby 1 ip 192.168.10.100
standby 1 priority 105
standby 1 preempt
router rip
version 2
network 172.16.0.0
network 192.168.10.0
no auto-summary
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
Hanoi2#
Hanoi2#show ip route
Hanoi2#
Hanoi2#
Hanoi2#show standby
FastEthernet1/0 - Group 1
State is Standby
Preemption enabled
Hanoi2#
destination#show running-config
Building configuration...
version 12.3
no service password-encryption
hostname destination
boot-start-marker
boot-end-marker
!
!
no aaa new-model
resource policy
memory-size iomem 5
ip subnet-zero
ip cef
no ftp-server write-enable
interface Loopback0
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
router rip
version 2
network 10.0.0.0
network 172.16.0.0
no auto-summary
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
destination#
destination#show ip route
destination#
destination#
*Mar 1 01:45:08.567: %SYS-5-CONFIG_I: Configured from console by consoleshow ru
n
Building configuration...
version 12.3
no service password-encryption
hostname destination
boot-start-marker
boot-end-marker
no aaa new-model
resource policy
memory-size iomem 5
ip subnet-zero
!
ip cef
no ftp-server write-enable
interface Loopback0
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
no ip address
shutdown
duplex auto
speed auto
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
destination#
destination#show ip route
destination#
Hanoi1#show run
Building configuration...
version 12.3
no service password-encryption
hostname Hanoi1
boot-start-marker
boot-end-marker
no aaa new-model
!
resource policy
memory-size iomem 5
ip subnet-zero
ip cef
no ftp-server write-enable
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
duplex auto
speed auto
standby 1 ip 192.168.10.100
standby 1 preempt
standby 2 ip 192.168.10.99
standby 2 preempt
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
Hanoi1#show standby
FastEthernet1/0 - Group 1
State is Active
Preemption enabled
State is Standby
Preemption enabled
Hanoi1#
Hanoi2#show ru
Building configuration...
version 12.3
no service password-encryption
!
hostname Hanoi2
boot-start-marker
boot-end-marker
no aaa new-model
resource policy
memory-size iomem 5
ip subnet-zero
ip cef
no ftp-server write-enable
interface FastEthernet0/0
duplex auto
speed auto
interface FastEthernet1/0
duplex auto
speed auto
standby 1 ip 192.168.10.100
standby 1 preempt
standby 2 ip 192.168.10.99
standby 2 preempt
ip http server
no ip http secure-server
ip classless
control-plane
line con 0
line aux 0
line vty 0 4
end
Hanoi2#show ip route
Hanoi2#show standby
FastEthernet1/0 - Group 1
State is Standby
Preemption enabled
FastEthernet1/0 - Group 2
State is Active
Preemption enabled
Hanoi2#
Trên PC1:
Windows IP Configuration
Ethernet adapter Local Area Connection:
IP Address. . . . . . . . . . . . : 192.168.10.101
2 50 ms 39 ms 6 ms 172.16.10.100
Trace complete.
Trên PC2:
Windows IP Configuration
IP Address. . . . . . . . . . . . : 192.168.10.102
1 6 ms 3 ms 3 ms 192.168.10.1
2 47 ms 6 ms 6 ms 172.16.10.100
Trace complete.