Cisco firepower 2140 run ASA and config failover

1 背景

在这里插入图片描述here we got 2 cisco firepower 2140 hardware appliance
we’re planning to run ASA on it. and config failover for Primary Unit and Secondary Unit
现场2台Cisco firepower 2140防火墙, 运行ASA模式, 双机组HA,心跳线使用E1/11, E1/12, 配置port-channel

先看看FPR2140物理外观长啥样?

在这里插入图片描述

左上角的是 管理口
左下角是console
然后就是数据接口了,12个千兆电口,4个万兆SFP+,另外最右侧还有个扩展卡,可以插万兆的SFP+子卡。
在这里插入图片描述

** 话说怎么管理FPR2140 ?

FPR2140面板 左上角的那个电口就是管理口,而FDM和里面跑的ASA的管理都是复用这一个管理接口
而FPR4000系列就有所不同,FXOS的管理是面板上的,ASA的管理是需要使用另外的接口。

那么这2个管理IP有啥要求?
这2个IP必须是在同一网段。

怎么设置管理口IP

以管理IP为10.248.1.211/24 ,网关为10.248.1.254为例

firepower-2110# scope system
firepower-2110 /system # scope services
firepower-2110 /system/services # disable dhcp-server
firepower-2110 /system/services* # commit-buffer

firepower-2110# scope fabric-interconnect a
firepower-2110 /fabric-interconnect # 
firepower-2110 /fabric-interconnect # set out-of-band static ip 10.248.1.211 netmask 255.255.255.0 10.248.1.254
Warning: When committed, this change may disconnect the current CLI session
firepower-2110 /fabric-interconnect # commit-buffer

配置完成后,查看生效的管理IP

firepower-2140 /fabric-interconnect # show

Fire Power:
    ID   OOB IP Addr     OOB Netmask     OOB Gateway     OOB IPv6 Address Prefix OOB IPv6 Gateway Operability
    ---- --------------- --------------- --------------- ---------------- ------ ---------------- -----------
    A    10.248.1.211   255.255.255.0    10.248.1.254   ::               64     ::               Operable
firepower-2140 /fabric-interconnect # 

配置完成后,就可以网页 https://10.248.1.211打开GUI界面了

2 配置步骤

2.1创建互联的port-channel

FPR2100系列在ASA里面可创建不了port-channel,ASA上根本没这命令,奇葩吧
需要在FPR2100的FDM管理页面上创建 (FDM全称: Firepower Device Manager, 即firepower自带的管理平台)
长这个样子
在这里插入图片描述

2.1.1 interfaces —> Add Portchannel
在这里插入图片描述

2.1.2 指定ID及接口
在这里插入图片描述

另一台FPR2140也同样操作配置port-channel

2.2 进入ASA

firepower-2140# conn asa 
Attaching to ASA CLI ... Press 'Ctrl+a then d' to detach.
Type help or '?' for a list of available commands.
FW-2140-1/pri/act# 

2.3 查看port-channel接口

FW-2140-1/pri/act# show int ip brief
Interface                  IP-Address      OK?           Method Status      Protocol
Internal-Data0/1           unassigned      YES           unset  up          up  
Port-channel10           unassigned      YES           unset  up          up         !!!!!这就是刚才创建的接口
Ethernet1/1                unassigned      YES           unset  down        down
Ethernet1/2                unassigned      YES           unset  down        down
Ethernet1/3                unassigned      YES           unset  admin down  down
Ethernet1/4                unassigned      YES           unset  admin down  down
Ethernet1/5                unassigned      YES           unset  admin down  down
Ethernet1/6                unassigned      YES           unset  admin down  down
Ethernet1/7                unassigned      YES           unset  down        down
Ethernet1/8                unassigned      YES           unset  down        down
Ethernet1/9                unassigned      YES           unset  down        down
Ethernet1/10               unassigned      YES           unset  down        down
Ethernet1/11               unassigned      unassociated  unset  down        down
Ethernet1/12               unassigned      unassociated  unset  down        down
Ethernet1/13               unassigned      unassociated  unset  down        down
Ethernet1/14               unassigned      unassociated  unset  down        down
Ethernet1/15               unassigned      YES           unset  down        down
Ethernet1/16               unassigned      YES           unset  down        down
Internal-Data1/1           169.254.1.1     YES           unset  up          up  
Management1/1              192.168.45.1    YES           CONFIG up          up  

2.4 ASA配置Failover

上面在物理层面已经创建好了用于心跳的port-channel接口
(当然心跳只用单个接口也是可以的,使用port-channel只是为了有链路冗余)

  • 打开failover功能
  • 定义物理角色(primary or secondary)
  • 指定Failover心跳使用port-channel 10这个接口
  • 指定Failover状态化同步使用port-channel 10这个接口
  • 配置心跳IP

2.2.1 第1台ASA配置failover

failover
failover lan unit primary    //角角为primary
failover lan interface FO Port-channel10
failover link FO Port-channel10
failover interface ip FO 100.64.1.1 255.255.255.0 standby 100.64.1.2

2.2.2 第2台ASA配置failover

failover
failover lan unit secondary    //角角为secondary
failover lan interface FO Port-channel10
failover link FO Port-channel10
failover interface ip FO 100.64.1.1 255.255.255.0 standby 100.64.1.2

第2台ASA配置完成后,马上弹出提示,检测到1台Active的ASA,要开始同步配置

ciscoasa(config)# .

        Detected an Active mate
Configuration between unit doesn't match. Going for config sync.Beginning configuration replication from mate.
WARNING: Disabling auto import may affect Smart Licensing
/bin/sh: /asa/scripts/coredump_ops.sh: No such file or directory
livecore enabled
Creating trustpoint "_SmartCallHome_ServerCA" and installing certificate...

Trustpoint CA certificate accepted.
Creating trustpoint "_SmartCallHome_ServerCA2" and installing certificate...

Trustpoint CA certificate accepted.
WARNING: Failover is enabled but standby IP address is not configured for this interface.
WARNING: Failover is enabled but standby IP address is not configured for this interface.
INFO: object-group-search on access-control is already disabled
WARNING: This command will not take effect until interface 'outside' has been assigned an IPv4 address
WARNING: Trustpoint _SmartCallHome_ServerCA is already authenticated.
WARNING: Trustpoint _SmartCallHome_ServerCA2 is already authenticated.
End configuration replication from mate.

同步完成后,Check failover status
正常情况下,2台墙的角色分别为Active , Standby

FW-2140-1/pri/act# show failover 
Failover On 
Failover unit Primary
Failover LAN Interface: FO Port-channel10 (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 1293 maximum
MAC Address Move Notification Interval not set
Version: Ours 9.18(3)56, Mate 9.18(3)56
Serial Number: Ours JAD224809ZQ, Mate JAD22460JVP
Last Failover at: 11:04:55 CST Mar 22 2024
        This host: Primary - Active 
                Active time: 173202 (sec)
                slot 0: FPR-2140 hw/sw rev (1.3/9.18(3)56) status (Up Sys)
                  Interface management (192.168.45.1): Normal (Waiting)
                  Interface outside (0.0.0.0): No Link (Waiting)
                  Interface inside (10.30.255.4): No Link (Not-Monitored)
                  Interface outside-dmz-ds (10.30.252.23): No Link (Not-Monitored)
        Other host: Secondary - Standby Ready 
                Active time: 0 (sec)
                slot 0: FPR-2140 hw/sw rev (1.3/9.18(3)56) status (Up Sys)
                  Interface management (0.0.0.0): Normal (Waiting)
                  Interface outside (0.0.0.0): No Link (Waiting)
                  Interface inside (10.30.255.5): Normal (Not-Monitored)
                  Interface outside-dmz-ds (10.30.252.24): Normal (Not-Monitored)

3 防火墙failover切换命令

在某些时候,我们需要手工强制防火墙切换主备,比如升级版本时。
切换的命令在Active墙或Standby墙上都可以实现切换

  • 在当前的Active墙上
no failover active
  • 在当前Standby墙上
failover active

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/489301.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

服务器基础知识(物理服务器云服务器)

今天我们来介绍一下服务器的基础知识 一、服务器硬件基础知识 组件说明中央处理器(CPU)CPU是服务器的大脑,负责执行计算任务和指令。服务器通常配备多个CPU核心,以支持并行处理和提高性能。关键的CPU性能指标包括时钟频率、核心数…

sonarqube使用指北(三)-编写代码进行自动化扫描

一、引言 上一篇文章之后 我们应该已经成功完成的配置了扫描环境并执行了一次基本的本地扫描,但是之前的手动扫描需要我们每一次都手动切换到代码目标并手动执行扫描命令,效率很低。在代码库较大的情况下会占用大量的时间。这一章我们会通过编写python代码的形式来实现自动化…

Python学习:循环语句

Python循环语句 概念 循环语句是编程中常用的结构,用于多次执行相同或类似的代码块。Python中有两种主要的循环语句:for循环和while循环。 for循环: for循环用于遍历一个序列(如列表、元组、字符串等)中的元素&#x…

二十二、软考-系统架构设计师笔记-真题解析-2018年真题

软考-系统架构设计师-2018年上午选择题真题 考试时间 8:30 ~ 11:00 150分钟 1.在磁盘调度管理中,应先进行移臂调度,再进行旋转调度。假设磁盘移动臂位于21号柱面上,进程的请求序列如下表所示。如果采用最短移臂调度算法,那么系统…

PyPy为什么能让Python比C还快?一文了解内在机制

「如果想让代码运行得更快,您应该使用 PyPy。」—— Python 之父 Guido van Rossum 对于研究人员来说,迅速把想法代码化并查看其是否行得通至关重要。Python 是能够实现这一目标的出色语言,它能够让人们专注于想法本身,而不必过度…

万亿功能性食品市场爆火,北美膳食健康品牌GNITE如何抓住“朋克养生”年轻人!

近几年,年轻人的养生意识不断提升,“吃出健康”理念盛行,在中国年轻人独有的“懒养生”理念加持下,功能性软糖精准击中年轻人的健康焦虑,助眠、美白、护眼、补铁、减脂……等产品在新消费领域兴起,消费热度…

邮件接口与第三方平台的集成的方式有哪些?

邮件接口如何实现高效通信?怎么有效地利用邮件接口? 邮件接口与第三方平台的集成已经成为了企业提升工作效率、优化用户体验的关键环节。那么,邮件接口与第三方平台的集成方式究竟有哪些呢?接下来,AokSend就来探讨一下…

蓝桥杯练习题——博弈论

1.必胜态后继至少存在一个必败态 2.必败态后继均为必胜态 Nim游戏 思路 2 3,先手必赢,先拿 1,然后变成 2 2,不管后手怎么拿,先手同样操作,后手一定先遇到 0 0 a1 ^ a2 ^ a3 … ^ an 0,先…

STL----vector的模拟实现

1. vector的介绍与使用 1.1 vector的介绍 1. vector是表示可变大小数组的序列容器。 2. 就像数组一样,vector也采用的连续存储空间来存储元素。也就是意味着可以采用下标对vector的元素进行访问,和数组一样高效。但是又不像数组,它的大小是可…

Vscode + PlatformIO + Arduino 搭建EPS32开发环境

Vscode PlatformIO Arduino 搭建EPS32开发环境 文章目录 Vscode PlatformIO Arduino 搭建EPS32开发环境1. Vscode插件安装2. 使用PlatformIO新建工程3.工程文件的基本结构4.一个基本的测试用例Reference 1. Vscode插件安装 如何下载vscode这里不再赘述,完成基本…

2024-2028年中国丙二醇乙醚(PE)市场行情监测及未来发展前景研究报告

丙二醇乙醚(PE)又称1-乙氧基-2-丙醇,化学式为C5H12O2,是一种有机化合物。丙二醇乙醚外观呈无色透明液体,微含醚气味,能与水和多数有机溶剂混溶,微溶于乙酸乙酯和氯仿。丙二醇乙醚具有吸湿性、挥…

ensp中pc机访问不同网络的服务器

拓扑图如下,资源已上传 说明:pc通过2个路由访问server服务器 三条线路分别是192.168.1.0网段,192.168.2.0网段和192.168.3.0网段,在未配置的情况下,pc设备是访问不到server的 具体操作流程 第一;pc设备…

Redis桌面客户端

3.4.Redis桌面客户端 安装完成Redis,我们就可以操作Redis,实现数据的CRUD了。这需要用到Redis客户端,包括: 命令行客户端图形化桌面客户端编程客户端 3.4.1.Redis命令行客户端 Redis安装完成后就自带了命令行客户端&#xff1…

连接数据库(MySQL)的JDBC

目录 JDBC简介快速入门API详解DriverManager(驱动管理类)注册驱动:获取数据库连接(对象): Connection(数据库连接对象)获取执行SQL的对象管理事务 Statement(执行SQL语句)执行DML、DDL语句执行DQL语句 Resu…

ArcGIS矢量裁剪矢量

一、利用相交工具 Arctoolbox工具一分析工具一叠加分析一相交

深度|庖丁解InnoDB之Buffer Pool

以下文章来源于MySQL内核剖析 ,作者王康 前言 Buffer Pool是InnoDB中非常重要的组成部分,也是数据库用户最关心的组件之一。Buffer Pool的基本功能并不复杂,设计实现也比较清晰,但作为一个有几十年历史的工业级数据库产品&am…

那位拿了多个Offer的大佬分享了最新Go面经

和大家分享一下我们 Go就业训练营 和 升职加薪星球 中战友们投稿的真实面经。 这是第一篇,计划还会再更新4篇最新Go面经,都是拿到Offer的那种! 欢迎大家关注我的账号,关注之后不迷路。 先秀战绩 虽然不同的公司考察的侧重点不一…

Linux系统服务

文章目录 什么是daemon与服务(service)systemd使用unit分类 通过systemctl管理服务通过systemctl管理单一服务(service unit)通过systemctl查看系统上所有的服务通过systemctl管理不同的操作环境(target unit)通过systemctl分析各服务之间的依赖性与systemd的daemon运行过程相关…

Codeforces Round 930 (Div. 2) --- D. Pinball --- 题解

目录 D. Pinball&#xff1a; 题目大意&#xff1a; 思路解析&#xff1a; 代码实现&#xff1a; 代码一&#xff1a; 代码二&#xff1a; D. Pinball&#xff1a; 题目大意&#xff1a; 思路解析&#xff1a; 假设字符串为 >>><<<&#xff0c; 当前位…

程序员35岁会失业吗?【来自主流AI的回答】

程序员35岁会失业吗&#xff1f; 35岁被认为是程序员职业生涯的分水岭&#xff0c;许多程序员开始担忧自己的职业发展是否会受到年龄的限制。有人担心随着年龄的增长&#xff0c;技术更新换代的速度会使得资深程序员难以跟上&#xff1b;而另一些人则认为&#xff0c;丰富的经…