组网描述:
(1)
V7防火墙常见冗余组网配置举例(上下交换机三层组网)
目录
本案例适用于软件平台为Comware V7系列防火墙:F100-X-G2、F1000-X-G2、F100-X-WiNet、F1000-AK、F10X0等。
防火墙A与防火墙B堆叠后上联交换机A下联交换机B,应用户业务需求:
1、
2、
交换机配置vlan 10将下联防火墙的15和16接口加入vlan10,并创建vlan10接口IP地址为1.1.1.1
<H3C>system
[H3C]vlan10
[H3C-vlan10]port GigabitEthernet 1/0/15 GigabitEthernet 1/0/16
[H3C]interface Vlan-interface 10
[H3C-Vlan-interface10]ip address 1.1.1.1 24
配置到内网网段的回程路由,下一跳为防火墙Reth1接口地址。
[H3C]ip route-static 2.2.2.0 24 1.1.1.2
注:实际组网中应该将内网网段全部添加进回程路由。
交换机配置vlan 20将上联防火墙的14和15接口加入vlan20,并创建vlan20接口IP地址为2.2.2.1。
<H3C>system
[H3C]vlan20
[H3C-vlan20]port GigabitEthernet 1/0/14 GigabitEthernet 1/0/15
[H3C]interface Vlan-interface 20
[H3C-Vlan-interface20]ip address 2.2.2.1 24
配置默认路由到防火墙Reth2接口地址。
[H3C]ip route-static 0.0.0.0 0 2.2.2.2
具体配置可参考防火墙虚拟化配置举例,本章不做介绍。
创建Reth1接口配置IP地址为1.1.1.2/24,并配置1/0/15成员优先级为255,2/0/15成员优先级为50。
<H3C> system-view
[H3C] interface reth 1
[H3C-Reth1] ip address 1.1.1.2 24
[H3C-Reth1] member interface gigabitethernet 1/0/15 priority 255
[H3C-Reth1] member interface gigabitethernet 2/0/15 priority 50
[H3C-Reth1] quit
创建Reth2接口配置IP地址为2.2.2.2/24,并配置1/0/14成员优先级为255,2/0/14成员优先级为50。
<H3C> system-view
[H3C] interface reth 2
[H3C-Reth2] ip address 2.2.2.2 24
[H3C-Reth2] member interface gigabitethernet 1/0/14 priority 255
[H3C-Reth2] member interface gigabitethernet 2/0/14 priority 50
[H3C-Reth2] quit
配置track检测上下行端口的物理状态
[H3C] track 1 interface gigabitethernet 1/0/15 physical
[H3C-track-1] quit
[H3C] track 2 interface gigabitethernet 1/0/14 physical
[H3C-track-2] quit
[H3C] track 3 interface gigabitethernet 2/0/15 physical
[H3C-track-3] quit
[H3C] track 4 interface gigabitethernet 2/0/14 physical
[H3C-track-4] quit
[H3C] redundancy group aaa
[H3C-redundancy-group-aaa] node 1
[H3C-redundancy-group-aaa-node1] bind slot 1
[H3C-redundancy-group-aaa-node1] priority 100
[H3C-redundancy-group-aaa-node1] track 1 interface gigabitethernet 1/0/15
[H3C-redundancy-group-aaa-node1] track 2 interface gigabitethernet 1/0/14
[H3C-redundancy-group-aaa-node1] quit
[H3C-redundancy-group-aaa] node 2
[H3C-redundancy-group-aaa-node2] bind slot 2
[H3C-redundancy-group-aaa-node2] priority 50
[H3C-redundancy-group-aaa-node2] track 3 interface gigabitethernet 2/0/15
[H3C-redundancy-group-aaa-node2] track 4 interface gigabitethernet 2/0/14
[H3C-redundancy-group-aaa-node2] quit
[H3C-redundancy-group-aaa] member interface reth 1
[H3C-redundancy-group-aaa] member interface reth 2
[H3C-redundancy-group-aaa] quit
[H3C] session synchronization enable
将Reth加入Untrust区域
[H3C]security-zone name Untrust
[H3C-security-zone-Untrust]import interface Reth1
将Reth2加入trust区域
[H3C]security-zone name trust
[H3C-security-zone-Trust]import interface Reth2
[H3C-security-zone-Trust]quit
防火墙目前版本存在两套安全策略,请在放通安全策略前确认设备运行那种类型的安全策略?以下配置任选其一。
[H3C]display cu | in security-policy
security-policy disable
#创建对象策略pass。
[H3C]object-policy ip pass
[H3C-object-policy-ip-pass] rule 0 pass
[H3C-object-policy-ip-pass]quit
#创建Trust到Untrust域的域间策略调用pass策略。
[H3C]zone-pair security source Trust destination local
[H3C-zone-pair-security-Trust- local]object-policy apply ip pass
[H3C-zone-pair-security-Trust- local]quit
[H3C]zone-pair security source local destination Trust
[H3C-zone-pair-security-local -trust]object-policy apply ip pass
[H3C-zone-pair-security-local -trust]quit
[H3C]zone-pair security source Untrust destination local
[H3C-zone-pair-security-Untrust- local]object-policy apply ip pass
[H3C-zone-pair-security-Untrust- local]quit
[H3C]zone-pair security source local destination Untrust
[H3C-zone-pair-security-local -Untrust]object-policy apply ip pass
[H3C-zone-pair-security-local -Untrust]quit
[H3C]zone-pair security source Trust destination Untrust
[H3C-zone-pair-security-Trust -Untrust]object-policy apply ip pass
[H3C-zone-pair-security-Trust -Untrust]quit
[H3C]display cu | in security-policy
security-policy ip
创建安全策略并放通local到trust和trust到local的安全策略。
[H3C]security-policy ip
[H3C-security-policy-ip]rule 10 name test
[H3C-security-policy-ip-10-test]action pass
[H3C-security-policy-ip-10-test]source-zone local
[H3C-security-policy-ip-10-test]source-zone Trust
[H3C-security-policy-ip-10-test]source-zone Untrust
[H3C-security-policy-ip-10-test]destination-zone local
[H3C-security-policy-ip-10-test]destination-zone Trust
[H3C-security-policy-ip-10-test]destination-zone Untrust
[H3C-security-policy-ip-10-test]quit
查看冗余组状态,可以看到节点Solt1为主节点。
显示Reth信息。可以看到Reth1和Reth2中优先级高的成员接口处于激活状态。
查看冗余组状态,可以看到节点2为主节点。(测试方法将1/0/14接口关闭)
显示Reth信息。节点2成员接口处于激活状态。
重新打开1/0/14接口后,冗余组主动切回。
配置冗余组后,所有加入冗余组的物理接口状态必须处于UP状态,否则会造成冗余组主备切换异常。
(1)
您好,我看了一下,您发的这个和我的组网不一样,我上行对接了2台设备,到每台设备只有一个端口,并且有两组互联ip,下行又接2层,网关在防火墙,又配置30位互联接其他三层设备。
看下官网资料https://www.h3c.com/cn/d_202203/1564001_30005_0.htm#_Toc96746567
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
看下官网资料https://www.h3c.com/cn/d_202203/1564001_30005_0.htm#_Toc96746567