华为防火墙实战配置教程

article/2025/9/29 1:13:33

防火墙(Firewall)也称防护墙,是由Check Point创立者Gil Shwed于1993年发明并引入国际互联网(US5606668(A)1993-12-15)防火墙是位于内部网和外部网之间的屏障,它按照系统管理员预先定义好的规则来控制数据包的进出。防火墙是系统的第一道防线,其作用是防止非法用户的进入。

今天给大家带来的是华为防火墙相关的实战,内容详实,可供参考!

目录

目录

初始化防火墙

初始化防火墙:

开启Web管理界面:

配置Console口登陆:

配置telnet密码认证:

配置telnet用户名密码认证:

常用查询命令:

防火墙基本配置

初始化防火墙:

配置内网接口:

配置外网接口:

配置安全策略:

配置源NAT:

配置目标NAT:

NAT 地址转换

配置内网区域:

配置外网区域:

配置源NAT:

配置目标NAT:

配置交换机

配置两台交换机:

配置防火墙:

添加防火墙区域:

主备双机热备

放行所有数据包(两台墙):

配置IP地址(两台) 给防火墙的两个接口配置好IP地址.

开启源NAT地址:

开启VRRP支持(两台)

HRP配置(两台):

检查配置:

配置负载均衡

配置防火墙接口:

加入相应的区域内:

放行数据包:

配置负载均衡:

初始化防火墙

初始化防火墙:

默认用户名为admin,默认的密码Admin@123,这里修改密码为wljsghq@163.

Username:admin
Password:*****
The password needs to be changed. Change now? [Y/N]: y
Please enter old password: Admin@123
Please enter new password: LyShark@163
Please confirm new password: LyShark@163<FW1> system-view                      // 进入系统视图
[FW1] sysname FW1                      // 给防火墙命名
[FW1] undo info-center enable          // 关闭日志弹出功能
[FW1] quit
<FW1> language-mode Chinese            // 将提示修改为中文
Change language mode, confirm? [Y/N] y提示:改变语言模式成功.

开启Web管理界面:

默认防火墙console接口IP地址是192.168.0.1.

<FW1> system-view
[FW1] web-manager enable                                // 开启图形管理界面
[FW1] interface GigabitEthernet 0/0/0
[FW1-GigabitEthernet0/0/0] ip address 192.168.0.1 24    // 给接口配置IP地址
[FW1-GigabitEthernet0/0/0] service-manage all permit    // 放行该端口的请求
[FW1-GigabitEthernet0/0/0] display this

配置Console口登陆:

<FW1> system-view                                               // 进入系统视图
[FW1] user-interface console 0                                  // 进入console0的用户配置接口
[FW1-ui-console0] authentication-mode password                  // 使用密码验证模式
[FW1-ui-console0] set authentication password cipher Admin1234  // 设置密码为Admin1234
[FW1-ui-console0] quit                                          // 退出用户配置接口

配置telnet密码认证:

配置密码认证模式,此处配置密码为Admin@123.

<FW1> system-view[FW1] telnet server enable                              // 开启Telnet支持
[FW1] interface GigabitEthernet 0/0/0                   // 选择配置接口
[FW1-GigabitEthernet0/0/0] service-manage telnet permit // 允许telnet
[FW1-GigabitEthernet0/0/0] quit[FW1] user-interface vty 0 4                                  // 开启虚拟终端
[FW1-ui-vty0-4] protocol inbound telnet                       // 允许telnet
[FW1-ui-vty0-4] authentication-mode password                  // 设置为密码认证模式
[FW1-ui-vty0-4] set authentication password cipher Admin@123  // 设置用户密码[USG6000V1] firewall zone trust                                // 选择安全区域
[USG6000V1-zone-trust] add interface GE0/0/0                   // 添加到安全区域

配置telnet用户名密码认证:

<FW1> system-view                                       // 进入系统视图
[FW1] interface GigabitEthernet 0/0/0                   // 进入接口配置
[FW1-GigabitEthernet0/0/0] ip address 192.168.0.1 24    // 配置接口IP
[FW1-GigabitEthernet0/0/0] service-manage telnet permit // 允许telnet
[FW1-GigabitEthernet0/0/0] service-manage ping permit   // 允许ping
[FW1-GigabitEthernet0/0/0] quit                         //退出[FW1] firewall zone trust                              // 进入trust安全域配置
[FW1-zone-trust] add interface GigabitEthernet 0/0/0   // 把GE0/0/0加入到trust安全域
[FW1-zone-trust] quit[FW1] telnet server enable                // 启用telnet服务
[FW1] user-interface vty 0 4              // 进入vty0-4的用户配置接口
[FW1-ui-vty0-4] authentication-mode aaa   // 使用AAA验证模式
[FW1-ui-vty0-4] user privilege level 3    // 配置用户访问的命令级别为3
[FW1-ui-vty0-4] protocol inbound telnet   // 配置telnet
[FW1-ui-vty0-4] quit                      // 退出用户配置接口[FW1] aaa                                 // 进入AAA配置视图
[FW1-aaa] manager-user lyshark            // 创建用户vtyadmin
[FW1-aaa-manager-user-lyshark] password cipher admin@123   // 配置用户密码
[FW1-aaa-manager-user-lyshark] service-type telnet         // 配置服务类型
[FW1-aaa-manager-user-lyshark] quit                        // 退出[FW1-aaa] bind manager-user lyshark role system-admin     // 绑定管理员角色
[FW1-aaa] quit                                             // 退出AAA视图

常用查询命令:

查询防火墙的其他配置,常用的几个命令如下.

[FW1] display ip interface brief            // 查默认接口信息
[FW1] display ip routing-table              // 显示路由表
[FW1] display zone                          // 显示防火墙区域
[FW1] display firewall session table        // 显示当前会话
[FW1] display security-policy rule all      // 显示安全策略

配置到这里,我们就可以在浏览器中访问了,其访问地址是http://192.168.0.1

防火墙基本配置

图片

初始化防火墙:

初始化配置,并设置好防火墙密码,此处用户名admin密码是wljsghq@123.

Username:admin
Password:*****
The password needs to be changed. Change now? [Y/N]: y
Please enter old password: Admin@123
Please enter new password: Lyshark@163
Please confirm new password: Lyshark@163<USG6000V1> system-view                                 // 进入系统视图
[USG6000V1] sysname FW1                                 // 给防火墙命名
[FW1] undo info-center enable                           // 关闭日志弹出功能
[FW1] quit
<FW1> language-mode Chinese                             // 将提示修改为中文
[FW1] web-manager enable                                // 开启图形管理界面
[FW1] interface GigabitEthernet 0/0/0
[FW1-GigabitEthernet0/0/0] service-manage all permit    // 放行该端口的请求

配置内网接口:

配置内网的接口信息,这里包括个GE 1/0/0 and GE 1/0/1这两个内网地址.

<FW1> system-view
[FW1] interface GigabitEthernet 1/0/0
[FW1-GigabitEthernet1/0/0] ip address 192.168.1.1 255.255.255.0
[FW1-GigabitEthernet1/0/0] undo shutdown
[FW1-GigabitEthernet1/0/0] quit[FW1] interface GigabitEthernet 1/0/1
[FW1-GigabitEthernet1/0/1] ip address 192.168.2.1 255.255.255.0
[FW1-GigabitEthernet1/0/1] undo shutdown
[FW1-GigabitEthernet1/0/1] quit# -------------------------------------------------------
[FW1] firewall zone trust                                       // 将前两个接口加入trust区域
[FW1-zone-trust] add interface GigabitEthernet  1/0/0
[FW1-zone-trust] add interface GigabitEthernet  1/0/1

配置外网接口:

配置外网接口GE 1/0/2接口的IP地址,并将其加入到untrust区域中.

[FW1] interface GigabitEthernet 1/0/2                            // 选择外网接口
[FW1-GigabitEthernet1/0/2] undo shutdown                         // 开启外网接口
[FW1-GigabitEthernet1/0/2] ip address 10.10.10.10 255.255.255.0  // 配置IP地址
[FW1-GigabitEthernet1/0/2] gateway 10.10.10.20                   // 配置网关
[FW1-GigabitEthernet1/0/2] undo service-manage enable
[FW1-GigabitEthernet1/0/2] quit# -------------------------------------------------------
[FW1] firewall zone untrust                                      // 选择外网区域
[FW1-zone-untrust] add interface GigabitEthernet 1/0/2           // 将接口加入到此区域

配置安全策略:

配置防火墙安全策略,放行trust(内网)-->untrust(外网)的数据包.

[FW1] security-policy                                         // 配置安全策略
[FW1-policy-security] rule name lyshark                       // 规则名称
[FW1-policy-security-rule-lyshark] source-zone trust          // 原安全区域(内部)
[FW1-policy-security-rule-lyshark] destination-zone untrust   // 目标安全区域(外部)[FW1-policy-security-rule-lyshark] source-address any         // 原地址区域
[FW1-policy-security-rule-lyshark] destination-address any    // 目标地址区域
[FW1-policy-security-rule-lyshark] service any                // 放行所有服务
[FW1-policy-security-rule-lyshark] action permit              // 放行配置
[FW1-policy-security-rule-lyshark] quit

配置源NAT:

配置原NAT地址转换,仅配置源地址访问内网 --> 公网的转换.

[FW1] nat-policy                                                      // 配置NAT地址转换
[FW1-policy-nat] rule name lyshark                                    // 指定策略名称
[FW1-policy-nat-rule-lyshark] egress-interface GigabitEthernet 1/0/2  // 外网接口IP
[FW1-policy-nat-rule-lyshark] action source-nat easy-ip               // 源地址转换
[FW1-policy-nat-rule-lyshark] display this

配置目标NAT:

外网访问10.10.10.10自动映射到内网的192.168.2.1这台主机上.

[FW1] firewall zone untrust                                      // 选择外网区域
[FW1-zone-untrust] add interface GigabitEthernet 1/0/2           // 将接口加入到此区域# ----NAT规则---------------------------------------------------
# 外网主机访问10.10.10.10主机自动映射到内部的192.168.2.2
[FW1] firewall detect ftp
[FW1] nat server lyshark global 10.10.10.10 inside 192.168.2.2 no-reverse# ----放行规则---------------------------------------------------
[FW1] security-policy                                         // 配置安全策略
[FW1-policy-security] rule name untrs-trs                     // 规则名称
[FW1-policy-security-rule-lyshark] source-zone untrust        // 原安全区域(外部)
[FW1-policy-security-rule-lyshark] destination-zone trust     // 目标安全区域(内部)
[FW1-policy-security-rule-lyshark] action permit              // 放行配置
[FW1-policy-security-rule-lyshark] quit

NAT 地址转换

图片

配置内网区域:

分别配置防火墙内网接口GE1/0/0 and GE1/0/1设置IP地址,并加入指定区域内.

<FW1>system-view
[FW1]undo info-center enable# ----配置IP地址-----------------------------------------------
[FW1] interface GigabitEthernet 1/0/0
[FW1-GigabitEthernet1/0/0] ip address 192.168.1.1 24
[FW1-GigabitEthernet1/0/0] quit
[FW1] interface GigabitEthernet 1/0/1
[FW1-GigabitEthernet1/0/1] ip address 192.168.2.1 24
[FW1-GigabitEthernet1/0/1] quit# ----加入到指定区域--------------------------------------------
[FW1] firewall zone trust
[FW1-zone-trust] add interface GigabitEthernet 1/0/0[FW1] firewall zone dmz
[FW1-zone-dmz] add interface GigabitEthernet 1/0/1

配置外网区域:

然后配置外网地址,将Gig 1/0/2加入到untrust区域内.

[FW1] interface GigabitEthernet 1/0/2
[FW1-GigabitEthernet1/0/2] ip address 10.10.10.10 8[FW1] firewall zone untrust
[FW1-zone-dmz] add interface GigabitEthernet 1/0/2

配置源NAT:

配置原NAT地址转换,仅配置源地址访问内网 --> 公网的转换.

# ----配置源NAT转换---------------------------------------------
[FW1] nat-policy                                                      // 配置NAT地址转换
[FW1-policy-nat] rule name lyshark                                    // 指定策略名称
[FW1-policy-nat-rule-lyshark] egress-interface GigabitEthernet 1/0/2  // 外网接口IP
[FW1-policy-nat-rule-lyshark] action source-nat easy-ip               // 源地址转换
[FW1-policy-nat-rule-lyshark] display this# ----放行相关安全策略------------------------------------------
[FW1] security-policy
[FW1-policy-security] rule name trust_untrust
[FW1-policy-security-rule] source-zone trust
[FW1-policy-security-rule] destination-zone untrust
[FW1-policy-security-rule] action permit

配置目标NAT:

外网访问10.10.10.10自动映射到内网的192.168.2.2这台主机上.

# ----NAT规则---------------------------------------------------
# 外网主机访问10.10.10.10主机自动映射到内部的192.168.2.2
[FW1] firewall detect ftp
[FW1]nat server lyshark global 10.10.10.10 inside 192.168.2.2 no-reverse # ----放行规则---------------------------------------------------
[FW1] security-policy                                           // 配置安全策略
[FW1-policy-security] rule name untrs-DMZ                       // 规则名称
[FW1-policy-security-rule-untrs-DMZ] source-zone untrust        // 原安全区域(外部)
[FW1-policy-security-rule-untrs-DMZ] destination-zone trust     // 目标安全区域(内部)
[FW1-policy-security-rule-untrs-DMZ] destination-address 192.168.2.2 24
[FW1-policy-security-rule-untrs-DMZ] service any
[FW1-policy-security-rule-untrs-DMZ] action permit              // 放行配置
[FW1-policy-security-rule-untrs-DMZ] quit

配置交换机

图片

配置两台交换机:

分别配置两台交换机,并划分到相应的VLAN区域内.

# ----配置LSW1交换机--------------------------------------------
<Huawei> system-view
[LSW1] vlan 10                                     // 创建VLAN10
[LSW1] quit
[LSW1] interface Ethernet 0/0/1                    // 将该接口配置为trunk
[LSW1-Ethernet0/0/1] port link-type trunk
[LSW1-Ethernet0/0/1] port trunk allow-pass vlan 10 // 加入到vlan 10
[LSW1-Ethernet0/0/1] quit[LSW1] port-group group-member Eth0/0/2 to Eth0/0/3
[LSW1-port-group] port link-type access
[LSW1-port-group] port default vlan 10
[LSW1-port-group] quit# ----配置LSW2交换机--------------------------------------------
<Huawei> system-view
[LSW2] vlan 20
[LSW1] quit[LSW2] interface Ethernet 0/0/1
[LSW2-Ethernet0/0/1] port link-type trunk
[LSW2-Ethernet0/0/1] port trunk allow-pass vlan 20
[LSW2-Ethernet0/0/1] quit[LSW2] port-group group-member Eth0/0/2 to Eth0/0/3
[LSW2-port-group] port link-type access
[LSW2-port-group] port default vlan 20
[LSW2-port-group] quit

配置防火墙:

配置Gig1/0/0和Gig1/0/1接口为trunk模式,并分别配置好网关地址.

[FW1] vlan 10
[FW1-vlan10] quit
[FW1] vlan 20
[FW1-vlan20] quit# ----配置防火墙接口地址-----------------------------------------
[FW1] interface GigabitEthernet 1/0/0
[FW1-GigabitEthernet1/0/0] portswitch
[FW1-GigabitEthernet1/0/0] port link-type trunk
[FW1-GigabitEthernet1/0/0] port trunk allow-pass vlan 10[FW1] interface GigabitEthernet 1/0/1
[FW1-GigabitEthernet1/0/1] portswitch
[FW1-GigabitEthernet1/0/1] port link-type trunk
[FW1-GigabitEthernet1/0/1] port trunk allow-pass vlan 20# ----分别给VLAN配置IP地址---------------------------------------
[FW1]interface Vlanif 10
[FW1-Vlanif10]
[FW1-Vlanif10]ip address 192.168.10.1 255.255.255.0
[FW1-Vlanif10]alias vlan 10
[FW1-Vlanif10]service-manage ping permit[FW1] interface Vlanif 20
[FW1-Vlanif20]
[FW1-Vlanif20] ip address 192.168.20.1 255.255.255.0
[FW1-Vlanif20] alias vlan 20
[FW1-Vlanif20] service-manage ping permit

添加防火墙区域:

将vlan10和vlan20添加到trust区域内.

[FW1]firewall zone trust
[FW1-zone-trust] add interface Vlanif 10
[FW1-zone-trust] add interface Vlanif 20

主备双机热备

图片

放行所有数据包(两台墙):

为了演示实验,需要手动放行数据包

# ------------------------------------------------------------
# 将默认防火墙规则,设置为允许所有
[FW1] security-policy 
[FW1-policy-security] rule name anyall                   // 指定规则名称
[FW1-policy-security-rule-anyall] source-zone any        // 源地址允许所有
[FW1-policy-security-rule-anyall] destination-zone any   // 目标地址允许所有
[FW1-policy-security-rule-anyall] action permit          // 放行
[FW1-policy-security-rule-anyall] quit 
[FW1-policy-security] quit# ------------------------------------------------------------
# 将指定的接口加入到指定的区域内
[FW1] firewall zone trust                                // 选择trust区域
[FW1-zone-trust] add interface GigabitEthernet 1/0/0     // 添加内部的端口
[FW1-zone-trust] quit
[FW1] firewall zone untrust                              // 添加untru区域                            
[FW1-zone-untrust] add interface GigabitEthernet 1/0/1   // 添加外部接口
[FW1-zone-trust] quit

配置IP地址(两台) 给防火墙的两个接口配置好IP地址.

# ------------------------------------------------------------
# 配置防火墙FW1
[FW1] interface GigabitEthernet 1/0/0                       // 选择内部接口
[FW1-GigabitEthernet1/0/0] ip address 192.168.1.253 24      // 配置防火墙IP
[FW1-GigabitEthernet1/0/0] service-manage ping permit       // 开启接口ping
[FW1-GigabitEthernet1/0/0] quit[FW1] interface GigabitEthernet1/0/1
[FW1-GigabitEthernet1/0/1] ip address 10.10.10.20 8
[FW1-GigabitEthernet1/0/1] service-manage ping permit
[FW1-GigabitEthernet1/0/1] quit# ------------------------------------------------------------
# 配置防火墙FW2
[FW2] interface GigabitEthernet 1/0/0                       // 选择内部接口
[FW2-GigabitEthernet1/0/0] ip address 192.168.1.254 24      // 配置防火墙IP
[FW2-GigabitEthernet1/0/0] service-manage ping permit       // 开启接口ping
[FW2-GigabitEthernet1/0/0] quit
[FW2-GigabitEthernet1/0/0] quit[FW2] interface GigabitEthernet1/0/1
[FW2-GigabitEthernet1/0/1] ip address 10.10.10.30 8
[FW2-GigabitEthernet1/0/1] service-manage ping permit
[FW2-GigabitEthernet1/0/1] quit

开启源NAT地址:

将内网数据映射到外网.

# ------------------------------------------------------------
# 配置防火墙FW1
[FW1] nat-policy                                                       // 配置NAT地址转换
[FW1-policy-nat] rule name tru_untr                                    // 指定策略名称
[FW1-policy-nat-rule-tru_untr] egress-interface GigabitEthernet 1/0/1  // 外网接口IP
[FW1-policy-nat-rule-tru_untr] action source-nat easy-ip               // 源地址转换
[FW1-policy-nat-rule-tru_untr] display this# ------------------------------------------------------------
# 配置防火墙FW2
[FW2] nat-policy                                                       // 配置NAT地址转换
[FW2-policy-nat] rule name tru_untr                                    // 指定策略名称
[FW2-policy-nat-rule-tru_untr] egress-interface GigabitEthernet 1/0/1  // 外网接口IP
[FW2-policy-nat-rule-tru_untr] action source-nat easy-ip               // 源地址转换
[FW2-policy-nat-rule-tru_untr] display this

开启VRRP支持(两台)

# ------------------------------------------------------------
# 配置防火墙FW1
[FW1] interface GigabitEthernet 1/0/0                                 // 选择内部接口
[FW1-GigabitEthernet1/0/0] vrrp vrid 1 virtual-ip 192.168.1.1 active  // 配置虚拟接口为主
[FW1-GigabitEthernet1/0/0] quit[FW1] interface GigabitEthernet 1/0/1                                 // 选择外部接口
[FW1-GigabitEthernet1/0/1] vrrp vrid 2 virtual-ip 10.10.10.10 active
[FW1-GigabitEthernet1/0/1] quit# ------------------------------------------------------------
# 配置防火墙FW12
[FW2] interface GigabitEthernet 1/0/0                                 // 选择内部接口
[FW2-GigabitEthernet1/0/0] vrrp vrid 1 virtual-ip 192.168.1.1 standby // 配置虚拟接口为备
[FW2-GigabitEthernet1/0/0] quit[FW2] interface GigabitEthernet 1/0/1
[FW2-GigabitEthernet1/0/1] vrrp vrid 2 virtual-ip 10.10.10.10 standby
[FW2-GigabitEthernet1/0/1] quit

HRP配置(两台):

# ------------------------------------------------------------
# 配置防火墙FW1
[FW1] hrp enable
HRP_S[FW1] hrp interface GigabitEthernet 0/0/0 remote 172.16.1.2   // 指定接口和对端IP
HRP_M[FW1] interface GigabitEthernet 0/0/0                         // 选择虚拟接口
HRP_M[FW1-GigabitEthernet0/0/0] ip address 172.16.1.1 24           // 配置本端IP地址# ------------------------------------------------------------
# 配置防火墙FW2
[FW2] hrp enable
HRP_S[FW2] hrp standby-device
HRP_S[FW2] hrp interface GigabitEthernet 0/0/0 remote 172.16.1.1
HRP_S[FW2] interface GigabitEthernet 0/0/0
HRP_S[FW2-GigabitEthernet0/0/0] ip address 172.16.1.2 24

检查配置:

注意1:默认处于 standby 状态的设备不允许配置安全策略,只允许在主设 备配置安全策略,且安全策略会自动同步到备设备上面。

开启命令:hrp standby config enable

HRP_M[FW1] display hrp stateRole: active, peer: standbyRunning priority: 45000, peer: 45000Core state: normal, peer: normalBackup channel usage: 0.00%Stable time: 0 days, 0 hours, 0 minutesLast state change information: 2019-05-06 1:37:41 HRP core state changed, old_s
tate = abnormal(active), new_state = normal, local_priority = 45000, peer_priori
ty = 45000.HRP_S[FW2] display hrp stateRole: standby, peer: activeRunning priority: 45000, peer: 45000Core state: normal, peer: normalBackup channel usage: 0.00%Stable time: 0 days, 0 hours, 1 minutesLast state change information: 2019-05-06 1:37:42 HRP link changes to up.

配置负载均衡

图片

配置防火墙接口:

[FW1]interface GigabitEthernet 1/0/0
[FW1-GigabitEthernet1/0/0]ip address 192.168.1.1 24
[FW1-GigabitEthernet1/0/0]service-manage ping permit 
[FW1-GigabitEthernet1/0/0]service-manage http permit
[FW1-GigabitEthernet1/0/0]quit[FW1]interface GigabitEthernet 1/0/1
[FW1-GigabitEthernet1/0/1]ip address 10.10.10.10 8
[FW1-GigabitEthernet1/0/1]service-manage ping permit 
[FW1-GigabitEthernet1/0/1]service-manage http permit
[FW1-GigabitEthernet1/0/1]quit

加入相应的区域内:

[FW1]firewall zone trust
[FW1-zone-trust]add interface  GigabitEthernet 1/0/0
[FW1-zone-trust]quit[FW1]firewall zone untrust
[FW1-zone-untrust]add interface GigabitEthernet 1/0/1
[FW1-zone-untrust]quit

放行数据包:

[FW1]security-policy
[FW1-policy-security]rule name any_trust
[FW1-policy-security-rule-any_trust]source-zone any
[FW1-policy-security-rule-any_trust]destination-zone trust[FW1-policy-security-rule-any_trust]service http
[FW1-policy-security-rule-any_trust]service icmp
[FW1-policy-security-rule-any_trust]action permit

配置负载均衡:

[FW1] slb enable                                  // 启用SLB服务
[FW1] slb                                         // 进入SLB配置视图
[FW1-slb] group 1 WebServer                       // 创建服务器组webServer
[FW1-slb-group-1] metric weight-least-connection  // 使用加权轮询算法# -------------------------------------------------------
// 以下为真实服务设置   IP地址  端口 权重值 别名//[FW1-slb-group-1] rserver 1 rip 192.168.1.2 port 80 weight 1 description server1
[FW1-slb-group-1] rserver 2 rip 192.168.1.3 port 80 weight 1 description server2
[FW1-slb-group-1] rserver 3 rip 192.168.1.3 port 80 weight 1 description server3
[FW1-slb-group-1]
[FW1-slb-group-1] health-check type icmp tx-interval 5 times 3 // 配置服务健康检查参数  
[FW1-slb-group-1] persistence type source-ip aging-time 180    // 配置会话保持时间
[FW1-slb-group-1] quit                                         // 返回SLB视图
[FW1-slb]
[FW1-slb] vserver 1 WebServer            // 创建虚拟服务器WebServer
[FW1-slb-vserver-1] protocol tcp         // 配置虚拟服务器的协议类型
[FW1-slb-vserver-1] vip 1 10.10.10.100   // 设置虚拟服务器IP地址
[FW1-slb-vserver-1] vport 80             // 设置虚拟服务器端
[FW1-slb-vserver-1] group WebServer      // 关联真实服务器组
[FW1-slb-vserver-1] quit                 // 返回SLB视图

 



http://chatgpt.dhexx.cn/article/0TSxk0RC.shtml

相关文章

华为防火墙基本配置实例

实验背景 &#xff1a; 一、trust区域&#xff1a;G1/0/0、G1/0/1接口下的设备划分到此区域 1、SW1与SW2做lacp链路聚合&#xff1b; 2、公司trust区域划分两个VLAN分别在交换层做MSTP&#xff0c;实现流量负载分担&#xff1b; 3、trust区域核心路由器层做双DHCP服务器做双…

防火墙配置【最详细的实验演示】

目录 拓扑及拓扑分析 进入防火墙前准备工作 1.配置其他区域ip 2.如何进入防火墙 防火墙的安全域 1.防火墙的5个安全域 2.如何自定义安全域 3.接口加入安全域 ​ 4.配置接口ip 配置防火墙策略 1.内网到公网 2.内网到服务器 3.公网到服务器 4.内网到公网NAT转换 5.…

防火墙双机热备配置实例(一)

今天继续给大家介绍HCIE安全。本文以华为eNSP模拟器为例&#xff0c;实现了配置防火墙双击热备技术配置实例&#xff0c;采用的是上下行交换机配置VRRP的主备模式。 阅读本文&#xff0c;您需要有一定的防火墙配置基础和防火墙双机热备理论基础&#xff0c;如果您对此还存在困惑…

捷联惯导姿态解算基础

文章目录 姿态更新地位反对称矩阵方向余弦矩阵等效旋转矢量四元数 姿态更新地位 在捷联惯导系统的姿态、速度和位置更新算法中,姿态算法对整个系统精度的影响最大&#xff0c;它是算法研究和设计的核心。在非定轴转动情况下,描述姿态运动的微分方程是线性时变的(可视为零输入线…

捷联惯导系统(SINS)误差模型

目录 前言惯性传感器测量误差姿态误差速度误差位置误差误差方程整理 前言 本篇上接捷联惯导系统(SINS)机械编排。在做完机械编排后&#xff0c;往往需要通过组合导航来降低纯INS的累积误差&#xff0c;而SINS误差模型是构建组合导航卡尔曼滤波状态模型的重要部分&#xff0c;本…

惯性导航原理(二)-平台式+捷联式+INS精度

文章目录 惯性导航原理1D2D/3D 平台式系统捷联式系统平台式与捷联式惯导特点对比惯性导航系统特性优点缺点 INS的精度等级典型战术级惯导惯性器件的相对测量能力 惯性导航原理 航位推算&#xff08;Dead-Reckoning&#xff09;&#xff1a; 惯性导航就属于航位推算&#xff0c…

捷联惯导基础知识解析之一(姿态表示方法基础知识)

1、定轴运动与非定轴运动 即转轴固定不动的转动&#xff1b;因此可得知&#xff0c;在捷联惯导应用中&#xff0c;X、Y、Z轴在空间中都存在转动&#xff0c;所以整个过程为非定轴运动。 2、不可交换性误差&#xff1a; 起因&#xff1a;在非定轴转动情况下&#xff0c; 描述…

捷联惯导算法(三)姿态角和姿态矩阵

前言 文中算法公式摘自《捷联惯导算法与组合导航原理》&#xff08;严恭敏、翁浚 编著&#xff09;、《惯性导航》&#xff08;秦永元 编著&#xff09;&#xff0c;其他理解仅代表个人观点。本文是对姿态角和姿态矩阵之间转化的理解。 一、定义 机体坐标系b系定义&#xff1…

捷联惯导系统学习7.1(捷联惯导粗对准 )

初始对准&#xff1a;确定导航参数姿态、方位、速度、位置的初始值&#xff0c;方位的初始化是最难的。 单独的惯导难以长时间维持高精度定位导航&#xff0c;需要与其他方式综合。 捷联惯导粗对准 初始对准具体就是确定导航参考坐标系的一个过程&#xff0c;寻找导航坐标系…

04 捷联式惯导系统概要

捷联式惯导与平台式惯导最本质的区别在于用数学平台代替物理平台 捷联式惯导概要 捷联式惯导的加速度计是直接装在载体上的&#xff0c;得出的是载体坐标系&#xff08;b系&#xff09;内的数据&#xff0c;但是载体坐标系不能当作导航坐标系。 捷联式系统加速度计测得的比力…

低成本MEMS惯导系统的捷联惯导解算MATLAB仿真

低成本MEMS惯导系统的捷联惯导解算MATLAB仿真 一、姿态角转换为四元数二、四元数转换为姿态角三、反对称阵四、位置更新五、姿态更新六、程序及数据主程序&#xff1a;子程序&#xff1a;数据及完整程序 之前将高成本的捷联惯导忽略地球自转、圆锥曲线运动以及划桨运动等化简为…

捷联惯导更新算法及误差分析汇总

一、捷联惯导数值更新算法 导航坐标系&#xff1a;东-北-天 载体坐标系&#xff1a;右-前-上 1、姿态更新算法&#xff1a; <1>姿态更新微分方程&#xff1a; ,表示导航系相对于惯性系的旋转&#xff1b;包括两部分&#xff1a; (1)地球自转引起的导航系旋转&#x…

捷联惯导系统(SINS)机械编排

目录 前言姿态更新姿态微分方程姿态更新算法 速度更新速度微分方程速度更新算法重力/哥氏积分项比力积分项右端第三积分项右端第二积分项 速度更新方程 位置更新位置微分方程位置更新算法 前言 IMU中的加速度计及陀螺仪测得原始数据为速度增量及角度增量&#xff0c;需要通过机…

捷联惯导基础知识解析之四(粗/精对准和GPS/IMU和GPS/里程计组合导航)

初始对准&#xff08;粗、精对准&#xff09;/组合导航 一、捷联惯导粗对准 目的&#xff1a;寻找、确定参考导航坐标系&#xff1b;结果表现形式&#xff1a;得到姿态矩阵&#xff08;进而可以求出欧拉角、四元数等&#xff09; 前提&#xff1a;在导航坐标系&#xff08;比…

捷联惯导总结--初始对准,位置标定,INS姿态更新,GPS/INS组合

惯导及组合导航回顾 2018.09.16 今天和17系的同学一起把惯导的流程捋了一遍&#xff0c;为了加深自己的记忆&#xff0c;这里在前面把心得大致列出来。 我们这里只考虑捷联式惯导及松组合 首先拿到惯性传感器&#xff08;加速度计和陀螺仪&#xff09;需要对其进行标定&#x…

捷联式惯导系统初始对准

1 初始对准简介 1.1 初始对准任务 所谓对准指的是确定惯导系统各坐标轴相对于参考坐标系指向的过程。 捷联式惯导系统初始对准的任务有两项:第一&#xff0c;机体起飞前将初始速度和初始位置引人惯导系统;第二&#xff0c;机体坐标系与导航坐标系的初始变换短阵。另外&#…

c语言函数指针 的定义方法,C语言 函数指针一(函数指针的定义)

//函数指针 #include #include #include //函数指针类型跟数组类型非常相似 //函数名就是函数的地址&#xff0c;函数的指针&#xff0c;对函数名进行&取地址操作&#xff0c;还是函数名本身&#xff0c;这是C语言编译器的特殊处理 void test(int a){ printf("a%d\n&q…

C语言函数指针调用函数

C语言可以定义指针变量指向函数&#xff0c;通过指针来调用函数。 使用&#xff1a; 1、定义函数指针变量&#xff1a; 函数返回值类型 (*指针变量名)(); 2、将已有函数入口赋值给函数指针变量&#xff1a;fnPt avg; 3、使用指针变量调用函数&#xff1a;(*指针变量名)(参…

C语言函数指针与调用

C语言函数指针与调用 平时我们使用函数传递的参数一般为数据变量&#xff0c;那么是否可以传递函数呢&#xff1f; 答案是不但可以&#xff0c;而且习惯以后&#xff0c;会用上瘾的。通过传递不同的函数指针&#xff0c;我们可以实现在函数中调用不同的子函数。 下面就举个栗子…

C语言函数指针与指针函数

在大家刚开始学习c语言的时候&#xff0c;总是分不清函数指针和指针函数&#xff0c;就算是知道了它们之间的区别&#xff0c;也不了解它们的使用场景&#xff0c; 我写此博客帮大家缕一缕&#xff0c;也帮我自己缕一缕 1、函数指针与指针函数的概念以及区别 指针函数 从名…