设置列表
1、SW1、SW2配置了IRF,逻辑成一台设备。
2、FW1、FW2需要配置成IRF主备,网关都部署在FW设备。
3、我理解的两台SW的接口都配置成trunk模式,但是我不知道是SW1的G0/1、G0/2捆绑在一个Group组中还是SW1的G0/1和SW2的G0/2捆绑在一个Group组中。
4、SW下边有接入交换机的,划分了不同的VLAN,所以FW上建议用子接口打vlan-id的形式还是建议用vlanif接口配置呢?如果有vlanif配置,那FW就只能把接口划分成二层,但是二层口好像不能绑定到冗余接口中。
5、FW这边如果用子接口的形式,那FW1是G0/1、G0/2捆绑在一个Reth组中还是FW1的G0/1和FW2的G0/2捆绑在一个Reth组中?
设置列表
压缩文件是 .hcl结尾的格式,不知道你们能否导入到自己的模拟器,我在模拟器配置了但是发现ping不通过,查看社区都说模拟器有BUG。
但是我想请大家看看我的配置有没有问题,按照这个刷入到真机设否可行。(现在没真机测试)
(1)
最佳答案
两台SW的接口都配置成trunk模式,但是我不知道是SW1的G0/1、G0/2捆绑在一个Group组中还是SW1的G0/1和SW2的G0/2捆绑在一个Group组中。
如果SW的接口配置成trunk,那么防火墙向下就是二层部署,SW1和SW2的四根链路捆绑成一个组,最大选中2个接口,将SW1的G0/2和SW2的G0/1优先级调高。
SW下边有接入交换机的,划分了不同的VLAN,所以FW上建议用子接口打vlan-id的形式还是建议用vlanif接口配置呢?如果有vlanif配置,那FW就只能把接口划分成二层,但是二层口好像不能绑定到冗余接口中。
推荐用vlanif,FW向下的四根接口配置成二层接口,然后和交换机一样,四根聚合,最大选2,将FW2的两个接口优先级调高,这时候配置冗余组,使用node-member interface这种方式完成和交换机的对接,然后防火墙出口使用正常的冗余口冗余组的方式去配置。
模拟器配置冗余组的时候有bug,但是可以敲命令,刷的真机测试。
以下两个案例,仔细看,看明白了就可以完成。一个是对接出口,一个是对接交换机,两种方式,都要配置。
· 如图2-4所示,Device A和Device B组成IRF,Router 1和IRF相连的接口与Router 2和IRF相连的接口不在同一网段,Router 3和IRF相连的接口与Router 4和IRF相连的接口不在同一网段。
· 正常情况下,流量走Router 1——Device A——Router 3;当这条通道上的任一链路或者设备故障时,流量切换到Router 2——Device B——Router 4。正常通道故障恢复时,流量再切回。
请参见“虚拟化配置指导”中的“IRF”,将Device A和Device B组成IRF。本文只描述IRF组成后,在IRF上配置冗余组。
(1) 配置三层接口及其IP地址
请按照图2-4所示,配置各接口的IP地址和子网掩码,具体配置过程略。
(2) 配置Track,监测上、下行接口的物理状态。
<Sysname> system-view
[Sysname] track 1 interface gigabitethernet 1/0/1 physical
[Sysname] track 2 interface gigabitethernet 1/0/2 physical
[Sysname] track 3 interface gigabitethernet 2/0/1 physical
[Sysname] track 4 interface gigabitethernet 2/0/2 physical
(3) 配置冗余组。
# 创建Node 1,Node 1和Device A绑定,为主节点,成员接口为GE1/0/1和GE1/0/2。关联的Track项为1和2。
[Sysname] redundancy group aaa
[Sysname]redundancy-group-aaa] node 1
[Sysname-redundancy-group-aaa-node1] bind slot 1
[Sysname-redundancy-group-aaa-node1] priority 100
[Sysname-redundancy-group-aaa-node1] node-member interface gigabitethernet 1/0/1
[Sysname-redundancy-group-aaa-node1] node-member interface gigabitethernet 1/0/2
[Sysname-redundancy-group-aaa-node1] track 1 interface gigabitethernet 1/0/1
[Sysname-redundancy-group-aaa-node1] track 2 interface gigabitethernet 1/0/2
[Sysname-redundancy-group-aaa-node1] quit
# 创建Node 2,Node 2和Device B绑定,为备节点,成员接口为GE2/0/1和GE2/0/2。关联的Track项为3和4。
[Sysname]redundancy-group-aaa] node 2
[Sysname-redundancy-group-aaa-node2] bind slot 2
[Sysname-redundancy-group-aaa-node2] priority 50
[Sysname-redundancy-group-aaa-node2] node-member interface gigabitethernet 2/0/1
[Sysname-redundancy-group-aaa-node2] node-member interface gigabitethernet 2/0/2
[Sysname-redundancy-group-aaa-node2] track 3 interface gigabitethernet 2/0/1
[Sysname-redundancy-group-aaa-node2] track 4 interface gigabitethernet 2/0/2
[Sysname-redundancy-group-aaa-node2] quit
(1) 缺省情况下的显示信息
# 显示冗余组信息。可以看到优先级高的Node 1为主节点,Node 1和Node 2下面的成员接口都处于UP状态。
[Sysname-redundancy-group-aaa] display redundancy group aaa
Redundancy group aaa (ID 1):
Node ID Slot Priority Status Track weight
1 Slot1 100 Primary 255
2 Slot2 50 Secondary 255
Preempt delay time remained : 0 min
Preempt delay timer setting : 1 min
Remaining hold-down time : 0 sec
Hold-down timer setting : 1 sec
Manual switchover requeset : No
Member interfaces:
Member failover groups:
Node 1:
Node member Physical status
GE1/0/1 UP
GE1/0/2 UP
Track info:
Track Status Reduced weight Interface
1 Positive 255 GE1/0/1
2 Positive 255 GE1/0/2
Node 2:
Node member Physical status
GE2/0/1 UP
GE2/0/2 UP
Track info:
Track Status Reduced weight Interface
3 Positive 255 GE2/0/1
4 Positive 255 GE2/0/2
(2) 冗余组内主备倒换后的显示信息
# 手工关闭接口GE1/0/2,显示冗余组信息。可以看到优先级低的Node 2为主节点,Node 1的成员接口GE1/0/2故障(DOWN),GE1/0/1被协议关闭(DOWN(redundancy down)),Node 2的成员接口转发报文。
[Sysname-redundancy-group-aaa] quit
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] shutdown
[Sysname-GigabitEthernet1/0/2] display redundancy group aaa
Redundancy group aaa (ID 1):
Node ID Slot Priority Status Track weight
1 Slot1 100 Secondary -255
2 Slot2 50 Primary 255
Preempt delay time remained : 0 min
Preempt delay timer setting : 1 min
Remaining hold-down time : 0 sec
Hold-down timer setting : 1 sec
Manual switchover requeset : No
Member interfaces:
Member failover groups:
Node 1:
Node member Physical status
GE1/0/1 DOWN(redundancy down)
GE1/0/2 DOWN
Track info:
Track Status Reduced weight Interface
1 Negative 255 GE1/0/1
2 Negative 255 GE1/0/2 (Fault)
Node 2:
Node member Physical status
GE2/0/1 UP
GE2/0/2 UP
Track info:
Track Status Reduced weight Interface
3 Positive 255 GE2/0/1
4 Positive 255 GE2/0/2
· 如图2-5所示,Device A和Device B组成IRF,Device A和Device B分别用一个接口连接上行设备Router 1,再分别用一个接口连接下行设备Router 2。
· Device A和Device B分别使用三层聚合接口连接Router 1和Router 2。
· 正常情况下,流量走Router 1——Device A——Router 2;当这条通道上的任一链路或者设备故障时,流量切换到Router 1——Device B——Router 2。正常通道故障恢复时,流量再切回。
请参见“虚拟化配置指导”中的“IRF”,将Device A和Device B组成IRF。本文只描述IRF组成后,在IRF上配置冗余组。
(1) 配置以太网冗余接口
# 创建Reth1,IP地址为1.1.1.2/24,成员接口为GE1/0/1和GE2/0/1,其中GE1/0/1的优先级为255,GE2/0/1的优先级为50。
<Sysname> system-view
[Sysname] interface reth 1
[Sysname-Reth1] ip address 1.1.1.2 24
[Sysname-Reth1] member interface gigabitethernet 1/0/1 priority 255
[Sysname-Reth1] member interface gigabitethernet 2/0/1 priority 50
[Sysname-Reth1] quit
# 创建Reth2,IP地址为2.2.2.2/24,成员接口为GE1/0/2和GE2/0/2,其中GE1/0/2的优先级为255,GE2/0/2的优先级为50。
[Sysname] interface reth 2
[Sysname-Reth2] ip address 2.2.2.2 24
[Sysname-Reth2] member interface gigabitethernet 1/0/2 priority 255
[Sysname-Reth2] member interface gigabitethernet 2/0/2 priority 50
[Sysname-Reth2] quit
(2) 配置Track,监测上、下行接口的物理状态。
[Sysname] track 1 interface gigabitethernet 1/0/1 physical
[Sysname] track 2 interface gigabitethernet 1/0/2 physical
[Sysname] track 3 interface gigabitethernet 2/0/1 physical
[Sysname] track 4 interface gigabitethernet 2/0/2 physical
(3) 配置冗余组
# 创建Node 1,Node 1和Device A绑定,为主节点。关联的Track项为1和2。
[Sysname] redundancy group aaa
[Sysname-redundancy-group-aaa] node 1
[Sysname-redundancy-group-aaa-node1] bind slot 1
[Sysname-redundancy-group-aaa-node1] priority 100
[Sysname-redundancy-group-aaa-node1] track 1 interface gigabitethernet 1/0/1
[Sysname-redundancy-group-aaa-node1] track 2 interface gigabitethernet 1/0/2
[Sysname-redundancy-group-aaa-node1] quit
# 创建Node 2,Node 2和Device B绑定,为备节点。关联的Track项为3和4。
[Sysname-redundancy-group-aaa] node 2
[Sysname-redundancy-group-aaa-node2] bind slot 2
[Sysname-redundancy-group-aaa-node2] priority 50
[Sysname-redundancy-group-aaa-node2] track 3 interface gigabitethernet 2/0/1
[Sysname-redundancy-group-aaa-node2] track 4 interface gigabitethernet 2/0/2
[Sysname-redundancy-group-aaa-node2] quit
# 将Reth1和Reth2添加到冗余组中。
[Sysname-redundancy-group-aaa] member interface reth 1
[Sysname-redundancy-group-aaa] member interface reth 2
[Sysname-redundancy-group-aaa] quit
(1) 缺省情况下的显示信息
# 显示冗余组信息。可以看到优先级高的Node 1为主节点,Reth1和Reth2中优先级高的成员接口处于激活状态。
[Sysname] display redundancy group aaa
Redundancy group aaa (ID 1):
Node ID Slot Priority Status Track weight
Node1 Slot1 100 Primary 255
Node2 Slot2 50 Secondary 255
Preempt delay time remained : 0 min
Preempt delay timer setting : 1 min
Remaining hold-down time : 0 sec
Hold-down timer setting : 300 sec
Manual switchover requeset : No
Member interfaces:
Reth1 Reth2
Member failover groups:
Node 1:
Track info:
Track Status Reduced weight Interface
1 Positive 255 GE1/0/1
2 Positive 255 GE1/0/2
Node 2:
Track info:
Track Status Reduced weight Interface
3 Positive 255 GE2/0/1
4 Positive 255 GE2/0/2
# 显示Reth信息。可以看到Reth1和Reth2中优先级高的成员接口处于激活状态。
[Sysname] display reth interface reth 1
Reth1 :
Redundancy group : aaa
Member Physical status Forwarding status Presence status
GE1/0/1 UP Active Normal
GE2/0/1 UP Inactive Normal
[Sysname] display reth interface reth 2
Reth2:
Redundancy group : aaa
Member Physical status Forwarding status Presence status
GE1/0/2 UP Active Normal
GE2/0/2 UP Inactive Normal
(2) 冗余组内主备倒换后的显示信息
# 手工关闭接口GE1/0/2,显示冗余组信息。可以看到优先级低的Node 2为主节点。
[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/2] shutdown
[Sysname-GigabitEthernet1/0/2] display redundancy group aaa
Redundancy group aaa (ID 1):
Node ID Slot Priority Status Track weight
Node1 Slot1 100 Secondary -255
Node2 Slot2 50 Primary 255
Preempt delay time remained : 0 min
Preempt delay timer setting : 1 min
Remaining hold-down time : 0 sec
Hold-down timer setting : 300 sec
Manual switchover requeset : No
Member interfaces:
Reth1 Reth2
Member failover groups:
Node 1:
Track info:
Track Status Reduced weight Interface
1 Negative 255 GE1/0/1
2 Negative 255 GE1/0/2(Fault)
Node 2:
Track info:
Track Status Reduced weight Interface
3 Positive 255 GE2/0/1
4 Positive 255 GE2/0/2
# 显示Reth的信息。Reth2下的接口GE1/0/2故障(DOWN),Reth1下的接口GE1/0/1被协议关闭(DOWN(redundancy down))。GE2/0/1和GE2/0/2激活。
[Sysname-GigabitEthernet1/0/2] display reth interface reth 1
Reth1 :
Redundancy group : aaa
Member Physical status Forwarding status Presence status
GE1/0/1 DOWN(redundancy down) Inactive Normal
GE2/0/1 UP Active Normal
[Sysname-GigabitEthernet1/0/2] display reth interface reth 2
Reth2 :
Redundancy group : aaa
Member Physical status Forwarding status Presence status
GE1/0/2 DOWN Inactive Normal
GE2/0/2 UP Active Normal
(1)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论