海外主机测评

您现在的位置是:首页 > 数据库 > 正文

数据库

FAILOVERfailover network

cds8202023-04-27数据库96
本文目录一览:1、如何让asa主机名显示failover状态2、思科的防火墙failover这个命令如何解释3、failover如何验证4、在思科ASA上部署Failove

本文目录一览:

  • 1、如何让asa主机名显示failover状态
  • 2、思科的防火墙failover这个命令如何解释
  • 3、failover 如何验证
  • 4、在思科ASA上部署Failover实例演示-上
  • 5、oracle数据库的failover是什么意思,工作机制是什么?
  • 6、failover的中文意思

如何让asa主机名显示failover状态

让asa主机名显示failover状态,设置及相关程序如下:

ASA failover可以通过一根交叉线直连,或者通过LAN的方式来实现。两种方式各有利弊,个人比较倾向LAN的方式,下面是一个LAN方式实现的配置实例。

如下图1所示,两台ASA上的outside口,Inside口以及DMZ口都必须分别在同一网段。可以用独立交换机分开,也可以用VLAN实现。

(图1)

在主ASA上的配置:

A.A.A.A与B.B.B.B, C.C.C.C与D.D.D.D, E.E.E.E与F.F.F.F  G.G.G.G与H.H.H.H要分别在同一个网段内。

interface Ethernet0/0

descriptiON Outside Public Network

nameif outside

security-level 0

ip address A.A.A.A 255.255.255.0 standbyB.B.B.B

interface Ethernet0/1

description Inside Private Network

nameif inside

security-level 100

ip address C.C.C.C 255.255.255.0 standbyD.D.D.D

interface Ethernet0/2

description LAN/STATE Failover Interface

interface Ethernet0/3

nameif dmz

security-level 50

ip address E.E.E.E 255.255.255.0 standbyF.F.F.F

failover

failover lan unit primary

failover lan interface lanfo Ethernet0/2

failover key mytest

failover replication http

failover link lanfo Ethernet0/2

failover interface ip lanfo G.G.G.G255.255.255.0 standby H.H.H.H

在辅ASA上的配置:

failover

failover lan unit secondary

failover lan interface lanfo Ethernet0/2

failover key mytest

测试:出现Active,StandbyReady状态说明配置成功:

ASA# show failover state

State          Last Failure Reason      Date/Time

This host -   Primary

Active         None

Other host -   Secondary

Standby Ready  None

注意:这里一定要搞清楚,所谓的主辅ASA只是针对正在运行的配置而言(running configure),物理的ASA不和主辅角色绑定。当failover发生时,角色是相互交换的。

思科的防火墙failover这个命令如何解释

failover的字面意思是失效切换,用于防火墙双机配置的,

使用这个命令可以配置主、备机,防止一台设备出现故障,导致网络故障。

failover 如何验证

使用show failover命令可以查看failover状态,输出如下:

Failover On //failover启用状态

Failover unit Primary //failover主用设备

Failover LAN Interface: lanfailover GigabitEthernet0/3 (up) //failover心跳接口

Unit Poll frequency 1 seconds, holdtime 15 seconds

Interface Poll frequency 5 seconds, holdtime 25 seconds

Interface Policy 1

Monitored Interfaces 3 of 250 maximum

Version: Ours 7.2(4), Mate 7.2(4)

Last Failover at: 13:39:28 UTC Dec 11 2009

This host: Primary - Active //此设备状态为主用活跃状态

Active time: 8799728 (sec)

slot 0: ASA5540 hw/sw rev (2.0/7.2(4)) status (Up Sys)

Interface outside (192.168.9.204): Normal

Interface inside (192.168.9.57): Normal

Interface management (192.168.1.1): No Link (Waiting)

slot 1: empty

Other host: Secondary - Standby Ready //其它设备状态为备用备份状态

Active time: 0 (sec)

slot 0: ASA5540 hw/sw rev (2.0/7.2(4)) status (Up Sys)

Interface outside (192.168.9.203): Normal

Interface inside (192.168.9.47): Normal

Interface management (0.0.0.0): No Link (Waiting)

slot 1: empty

Stateful Failover Logical Update Statistics

Link : Unconfigured.

在思科ASA上部署Failover实例演示-上

Part 1 - Failover简介

一. 什么是Failover

    Failover特性是Cisco安全产品高可用性的一个解决方案,目的是为了提供不间断的服务,当主设备down掉的时候,备用设备能够马上接管主设备的工作,进而保持通信的连通性。

二. 部署Failover的必要条件

在部署Failover时,要求两台防火墙的以下信息完全一致:

硬件条件:设备型号、接口数量和类型、SSM模块、内存;

软件条件:运行模式(透明模式或路由模式)、系统主次版本号;

授权信息:Lincense;

三. Failover的部署方案

    在部署Failover时,有两种部署方式:

    第一种:Active-Standby(A/S)模式

    当使用A/S模式时,两台物理防火墙中,一台(Active设备)对外提供服务,转发流量;另外一台(Standby设备)作为备份。当Active设备宕机后,Standby设备开始接管流量转发。

    第二种:Active-Active(A/A)模式

    当使用A/A模式时,两台防火墙可以同时工作,同时转发流量,再实现高可靠性的同时,还可以提供流量负载。

    failover部署方案图示:

Part 2 - Active-Standby模式的工作原理

注:Actvie-Actvie的部署方式将在下一篇文章中给大家详细介绍!

一. 角色定义

配置层面:Primary和Secondary角色

    一台防火墙被配置成Primary角色,另外一台防火墙被配置成Secondary角色;

逻辑层面:Active和Standby状态

    被配置成Primary角色的设备,会被选举成为Active,从而处理流量的转发;被配置成为Secondary角色的设备,会被选举成为Standby,从而做为备份设备;

二. 管理接口

    在部署Failover时,除了正常的业务接口以外,还需要定义两个特殊的接口来管理Failover的运行。

LAN-Based Failover link:该接口用来检测Failover的运行状态,并且进行配置信息的同步,使用独立的接口来充当;

Stateful Failover Link:该接口用来同步状态化信息,即Active设备会将当前流量的连接信息(例如,TCP连接)或者是一些表项同步给Standby设备,使得Standby设备在切换到Active后,能更快的进行数据转发,思科推荐使用独立接口来充当;

    管理接口的图示如下:

E0/2接口为LAN-Based Failover link;

E0/3接口为Stateful Failover Link;

三. Failover的选举过程

    当两台防火墙被配置成Primary或者Secondary角色后,它们会通过LAN-Based Failover link进行Active和Standby状态的选举,具体过程如下:

当两台防火墙都能正常启动时,Primary角色的设备会被选择成Active,Secondary角色的设备会被选择成Standby;

当两台防火墙只有一台能正常启动,则能正常启动的设备被选择为Active,不管它是Primary设备还是Secondary设备;

如果防火墙能正常启动,但是已检测到有Active状态的设备存在,则启动后被选择成Standby状态;

如果防火墙启动后,被选择成为Active,但是又检测到另外一台设备也是Active,则进行重新选举;

四. 邻居设备的健康状态监控

    参与Failover的两台防火墙,彼此会通过LAN-Based Failover link接口和Monitired interface(默认除了管理口外的其它接口都属于Monitired interface)发送Hello报文,来检测健康状态。

    健康状态的检测原则为:

如果能从LAN-Based Failover link接口周期性收到Hello报文,则邻居状态健康,不需要进行切换;

如果不能从LAN-Based Failover link接口收到Hello报文,但是可以从Monitired interface收到Hello报文,也被认为邻居状态健康,不需要进行切换;

如果既不能从LAN-Based Failover link接口收到Hello报文,也不能从Monitired interface收到Hello报文,则被认为是Fail状态,这时就需要进行切换;

五. 状态信息的同步

    当Active设备出现故障时,Standby状态的设备会切换到Active状态来接管流量的转发。

    为了使得切换速度更块,我们可以开启状态化同步的特性,使得Active设备在还没有出现故障之前,通过Stateful Failover Link接口,将自己的状态化表项同步给Standby,使得Standby在切换后能迅速的进行流量的转发

    需要同步的信息如下表所示:

需要同步的信息

不需要同步的信息

NAT table entriesUser Authentication Cut-Through Proxy

ARP table entriesDHCP server address leases

MAC address table entriesPhone proxy information

UDP connectionsSecurity Services Module activity

TCP connections

H.323 and SIP signaling sessions

MGCP connections

HTTP connections (if explicitly enabled)

Dynamic routing table entries*

Part 3 - 实验配置

一. 实验环境

实验物理拓扑图:

设备及IP地址说明:

R1为outside设备,模拟互联网,R2为inside设备,模拟局域网。

ASA1和ASA2接口分配情况

接口

接口命名

G0/0

Inside

G0/3

Outside

G0/2

LAN-Based Failover

G0/1

Statefull Failover

VLAN规划情况

VLAN

接口

VLAN 10

E0/0、E1/0、E2/1

VLAN 11

E0/1、E1/1

VLAN 12

E0/2、E1/2

VLAN 13

E0/3、E1/3、E2/0

IP地址规划情况

设备

接口

IP地址

R1

E0/0

209.165.200.254/24

R2

E0/0192.168.1.254/24

ASA1

G0/0

192.168.1.10/24

ASA1

G0/1192.168.201.1/24

ASA1

G0/2192.168.200.1/24

ASA1

G0/3209.165.200.225/24

ASA2

G0/0192.168.1.11/24

ASA2G0/1192.168.201.2/24

ASA2G0/2192.168.200.2/24

ASA2G0/3209.165.200.226/24

二. 实验需求

部署无状态化Failover Active-Standby模式,ASA1为Active,ASA2为standby,当LAN-Based Failover link断开,观察Failover切换情况。

部署状态化Failover Active-Standby模式,ASA1为Active,ASA2为standby,当LAN-Based Failover link断开,观察Failover切换情况。以及状态化表项

三. 具体配置步骤

Step 1:在交换机上将接口划分进相应的VLAN

Switch#show vlan brief

VLAN Name                             Status    Ports

---- -------------------------------- --------- -------------------------------

1    default                          active    Et2/2, Et2/3

10   inside                           active    Et0/0, Et1/0, Et2/1

11   Stateful                          active    Et0/1, Et1/1

12   FO                              active    Et0/2, Et1/2

13   outside                          active    Et0/3, Et1/3, Et2/0

Step 2:在ASA1上配置相关参数

2.1 配置inside和outside接口的IP地址

Hostname ASA1

interface GigabitEthernet0/0

nameif inside

security-level 100

ip address 192.168.1.10 255.255.255.0 standby 192.168.1.11

interface GigabitEthernet0/3

nameif outside

security-level 0

ip address 209.165.200.225 255.255.255.0 standby 209.165.200.226

2.2 将ASA1配置成Primary设备,同时将G0/2接口配置成LAN-Based Failover接口,并配置IP地址

interface GigabitEthernet0/2

no shutdowm

failover lan unit primary

failover lan interface FO GigabitEthernet0/2

failover interface ip FO 192.168.200.1 255.255.255.0 standby 192.168.200.2

Failove

Step 3:在ASA2上配置相关参数

注:Secondary设备中无需配置inside接口和outside接口IP,直接从Active设备同

3.1 将ASA2配置成Secondary设备,同时将G0/2接口配置成LAN-Based Failover接口,并配置IP地址

Hostname ASA2

interface GigabitEthernet0/2

no shutdowm

failover lan unit secondary

failover lan interface FO GigabitEthernet0/2

failover interface ip FO 192.168.200.1 255.255.255.0 standby 192.168.200.2

Failove

Step 4:查看Failover的状态,ASA1为Active,ASA2为Standby

ASA1/pri/act# show failover

Failover On

Failover unit Primary

Failover LAN Interface: FOGigabitEthernet0/2 (up)

Reconnect timeout 0:00:00

Unit Poll frequency 1 seconds, holdtime 15 seconds

Interface Poll frequency 5 seconds, holdtime 25 seconds

Interface Policy 1

Monitored Interfaces 2 of 61 maximum

MAC Address Move Notification Interval not set

Version: Ours 9.5(2)204, Mate 9.5(2)204

Last Failover at: 01:56:09 UTC Jan 10 2019

This host: Primary - Active

Active time: 3163 (sec)

slot 0: empty

Interface inside (192.168.1.10): Normal (Monitored)

Interface outside (209.165.200.225): Normal (Monitored)

Other host: Secondary - Standby Ready

Active time: 91 (sec)

Interface inside (192.168.1.11): Normal (Monitored)

Interface outside (209.165.200.226): Normal (Monitored)

Stateful Failover Logical Update Statistics

Link : Unconfigured

Step 5:通过Telnet进行测试

5.1 在R2上,对R1进行Telnet访问,并保持连接不要中断

R2#

R2#telnet 209.165.200.254

Trying 209.165.200.254 ... Open

User Access Verification

Password:

R1

5.2 在ASA1和ASA2上查看状态化表项,此时,ASA1上应该有状态化表项,而ASA2上没有状态化表项

ASA1/pri/act# show conn

7 in use, 14 most used

TCP outside  209.165.200.254:23 inside  192.168.1.254:36816, idle 0:00:04, bytes 139, flags UIO

ASA2/sec/stby# show conn

6 in use, 13 most use

Step 6:故障测试

6.1 断开交换机连接Active设备的Ethernet0/0口,观察切换情况,此时,Active设备切换成了Standby状态。

Switch(config)#interface Ethernet0/0

Switch(config)#shutdown

ASA1/pri/act#

Switching to Standby

ASA1/pri/stby)# show failover

Failover On

Failover unit Primary

Failover LAN Interface: FO GigabitEthernet0/2 (up)

Reconnect timeout 0:00:00

Unit Poll frequency 1 seconds, holdtime 15 seconds

Interface Poll frequency 5 seconds, holdtime 25 seconds

Interface Policy 1

Monitored Interfaces 2 of 61 maximum

MAC Address Move Notification Interval not set

Version: Ours 9.5(2)204, Mate 9.5(2)204

Last Failover at: 03:01:54 UTC Jan 10 2019

 This host: Primary - Failed

                Active time: 3936 (sec)

                slot 0: empty

                  Interface inside (192.168.1.11): Failed (Waiting)

                  Interface outside (209.165.200.226): Normal (Monitored)

  Other host: Secondary - Active

                Active time: 45 (sec)

                  Interface inside (192.168.1.10): Normal (Waiting)

                  Interface outside (209.165.200.225): Normal (Monitored)

Stateful Failover Logical Update Statistics

        Link : Unconfigured.

6.2 恢复交换机接口,由于非抢占的原因,ASA1依然为Standby状态,,可以使用Failover Active命令进行手动抢占

Switch(config)#int Ethernet0/0

Switch(config)#no shutdown

ASA1/pri/stby)# show failover

Failover On

Failover unit Primary

Failover LAN Interface: FO GigabitEthernet0/2 (up)

Reconnect timeout 0:00:00

Unit Poll frequency 1 seconds, holdtime 15 seconds

Interface Poll frequency 5 seconds, holdtime 25 seconds

Interface Policy 1

Monitored Interfaces 2 of 61 maximum

MAC Address Move Notification Interval not set

Version: Ours 9.5(2)204, Mate 9.5(2)204

Last Failover at: 03:01:54 UTC Jan 10 2019

 This host: Primary - Standby Ready

                Active time: 3936 (sec)

                slot 0: empty

                  Interface inside (192.168.1.11): Normal (Monitored)

                  Interface outside (209.165.200.226): Normal (Monitored)

        Other host: Secondary - Active

                Active time: 254 (sec)

                  Interface inside (192.168.1.10): Normal (Monitored)

                  Interface outside (209.165.200.225): Normal (Monitored)

Stateful Failover Logical Update Statistics

        Link : Unconfigured.

ASA1/pri/stby)# failover active

 Switching to Active

Step 7:开启状态化切换

7.1 配置Stateful Failover Link链路,该配置在Active端配置即可,Standby会自动同步

ASA1/sec/act#failover link Stateful GigabitEthernet0/1

ASA1/sec/act#failover interface ip Stateful 192.168.201.1 255.255.255.0 standby 192.168.201.2

7.2 查看状态化表项,ASA1和ASA2上均有状态化表项

ASA1/sec/act # show conn

9 in use, 14 most used

TCP outside  209.165.200.254:23 inside  192.168.1.254:13699, idle 0:00:06, bytes 146, flags UIO

ASA1/pri/stby)# show conn

9 in use, 13 most used

TCP outside  209.165.200.254:23 inside  192.168.1.254:13699, idle 0:00:01, bytes 146, flags UIO

Step 8:其他可选配置

8.1 修改Active/Standby切换时间

failover polltime unit msec 300 holdtime msec 900

failover polltime interface 1 holdtime 5

8.2 修改监控接口,设置切换策略

Monitor-interface xxx

Failover interface-policy x

Failover interface-policy xx%

oracle数据库的failover是什么意思,工作机制是什么?

顾名思义,oracle的failover是指在oracle集群汇总,客户端当前连接的实例发生故障时,oracle会

自动将连接切换到另外一个实例上的情况。

或者说,当用户连接到RAC环境时,用户实际是连接到RAC中的一个实例,用户的查询等操作也是由该

实例完成的,如果该实例down掉了,那么用户连接会被转移到其他健康实例,而这种转换对于用户是透明

的,用户的select语句仍然继续返回结果集,感觉不到异常。

可以尝试通过下面实例来体现以下:

1,连接到rac

$

sqlplus

user/password@instance1;

2,

确认用户当前连接的实例

SQL

slect

instance_name

from

v$instance;

instance1;

3,

关闭instance1

SQLshutdown

abort;

4,等待几秒后,在第一次连接的session中继续执行查询;

SQL

slect

instance_name

from

v$instance;

instance2;

failover的中文意思

failover

n.

【电脑】失效备援 (为系统备援能力的一种, 当系统中其中一项设备失效而无法运作时, 另一项设备即可自动接手原失效系统所执行的工作)

FAILOVER的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于failover network、FAILOVER的信息别忘了在本站进行查找喔。

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~