cisco 交换机双引擎与双机 HSRP

cisco 交换机双引擎与双机 HSRP

双引擎切换

redundancy force-switchover

切换模块

session ….

同步

HA,SINGLE-ROUTER.

在bootconfig flags里面有个参数savetostandby设成true就行了,别忘了save bootconfig

Router(config)# redundancy

Router(config-r)# main-cpu

Router(config-r-mc)# auto-sync standard

Router(config-r-mc)# auto-sync bootvar

 

双引擎热备,关键就是针对VLAN的IP,在以下命令中alt后的是针对备份引擎设置的。

interface Vlan10

ip address 192.168.10.251 255.255.255.0 alt ip address 192.168.10.252 255.255.255.0

no ip redirects

standby 110 timers 5 15

standby 110 priority 120 preempt alt standby 110 priority 120 preempt

standby 110 authentication cisco

standby 110 ip 192.168.10.250 alt standby 110 ip 192.168.10.250

双机热备,也就是再增一台,配置几本一样。

interface Vlan10

ip address 192.168.10.253 255.255.255.0 alt ip address 192.168.10.254 255.255.255.0

no ip redirects

standby 110 timers 5 15

standby 110 priority 100 preempt alt standby 110 priority 100 preempt

standby 110 authentication cisco

standby 110 ip 192.168.10.250 alt standby 110 ip 192.168.10.250

判断端口

standby 2 track giga 1/48

以下是一个简单的HSRP配置

interface Vlan x
ip address x.x.x.x x.x.x.x

no ip redirects
no ip directed-broadcast
standby 1 ip y.y.y.y

standby 1 priority 100
standby 1 preempt

standby 1 authentication secret

在另一台上按下面模版进行配置
interface Vlan x
ip address x.x.x.x x.x.x.x
no ip redirects
no ip directed-broadcast
standby 1 ip y.y.y.y

standby 1 priority 110 ;这个优先级高,成为Master

standby 1 preempt

standby 1 authentication secret

 

配置NTP
NTP (Network Time Protocol) 为路由器、交换机和工作站之间提供了一种时间同步的机制。时间同步了,

多台网络设备上的相关事件记录可以放在一起看,更为清晰,方便了分析较复杂的故障和安全事件等。
(1)本地时钟设置:
clock timezone Peking +8 ;定义时区

clock calendar-valid ;允许使用硬件calendar作为时钟源

clock set hh:mm:ss ; month year ;如clock set 14:02:30 10 December 2003

clock update-calendar ;更新硬件时钟

(2)ntp server

ntp calendar-update ;允许NTP定期更新calendar
ntp master 3 ;允许本机作为NTP协议的主时钟,精度级别3,供其它对等体同步用。

ntp source int vlan 7 ;设置ntp时钟原的端口或IP地址

 

Comments are closed.