华三防火墙旁挂VRF方式部署

一、网络拓扑分析:

华三防火墙旁挂VRF方式部署
华三防火墙旁挂VRF方式部署

. 设备角色

  • MSR36-20_1(路由器):连接ISP(8.8.8.8/24),作为出口网关。
  • S5820V2-54QS-GE_4(核心交换机):承担VLAN间路由和流量转发。
  • 华三防火墙(F100系列):旁挂在核心交换机上,通过VRF实现多实例隔离和安全检查。
  • PC_2:终端用户,位于VLAN 10。

2. 接口与IP规划

设备接口IP/网段说明
MSR36-20_1GE0/04.1.1.2/24连接核心交换机
S5820V2GE0/54.1.1.1/24连接路由器MSR36-20
S5820V2GE0/3GE0/3连接F1090链路聚合
S5820V2GE0/4GE0/4连接F1090链路聚合
S5820V2GE0/2PC_2VLAN10
PC_2GE0/1192.168.10.1/24测试终端

二、交换机S5820V2:54QS-GE-4配置

1,创建VLAN10 ,20 ,30

#              
vlan 10
#
vlan 20
#
vlan 30
#######################################
配置Vlan接口地址
#
interface Vlan-interface10
 ip binding vpn-instance test1
 ip address 192.168.10.254 255.255.255.0
#
interface Vlan-interface20
 ip binding vpn-instance test1
 ip address 20.1.1.1 255.255.255.0
#              
interface Vlan-interface30
 ip address 30.1.1.1 255.255.255.0
#

2,创建聚合组interface Bridge-Aggregation1

#
interface Bridge-Aggregation1
 port link-type trunk
 port trunk permit vlan 1 20 30
 link-aggregation mode dynamic
#
##################################
将接口划入聚合组
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 20 30
 combo enable fiber
 port link-aggregation group 1
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 20 30
 combo enable fiber
 port link-aggregation group 1
#

3,创建ip vpn-instance test1实例

#
ip vpn-instance test1
 route-distinguisher 1:1
#
################################
将vlan10,vlan20划入ip binding vpn-instance test1实例中
#
interface Vlan-interface10
 ip binding vpn-instance test1
 ip address 192.168.10.254 255.255.255.0
#
interface Vlan-interface20
 ip binding vpn-instance test1
 ip address 20.1.1.1 255.255.255.0
#  

4,配置静态路由

#
 ip route-static 0.0.0.0 0 4.1.1.2  默认路由到路由器MSR36-20_1
 ip route-static 192.168.10.0 24 30.1.1.2  回程路由到F1090防火墙
 ip route-static vpn-instance test1 0.0.0.0 0 20.1.1.2  实例分隔后默认路由
#

三、防火墙F1090配置

1,创建VLAN20 ,30


#
vlan 20
#
vlan 30
#######################################
配置Vlan接口地址
#
interface Vlan-interface20
 ip address 20.1.1.2 255.255.255.0
#
interface Vlan-interface30
 ip address 30.1.1.2 255.255.255.0
#

2,创建聚合组interface Bridge-Aggregation1

#              
interface Bridge-Aggregation1
 port link-type trunk
 port trunk permit vlan 1 20 30
 link-aggregation mode dynamic
#
##################################
将接口划入聚合组
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 20 30
 combo enable copper
 port link-aggregation group 1
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 port link-type trunk
 port trunk permit vlan 1 20 30
 combo enable copper
 port link-aggregation group 1
#

3,划分安全区域security-zone

#
security-zone name Trust
 import interface Vlan-interface20
#

#
security-zone name Untrust
 import interface Vlan-interface30
#

4,放行安全策略

#
security-policy ip
 rule 0 name T-L
  action pass
  source-zone trust
  destination-zone Local
 rule 1 name T-U
  action pass
  source-zone trust
  destination-zone untrust
 rule 2 name L-T
  action pass
  source-zone local
  destination-zone trust
#

5,配置静态路由

#
 ip route-static 0.0.0.0 0 30.1.1.1  默认路由Untrust出去
 ip route-static 192.168.10.0 24 20.1.1.1 回程路由核心交换机过来的流量
#

四,路由器MSR36-20_1配置

1,接口配置

#
interface LoopBack0
 ip address 8.8.8.8 255.255.255.0   模拟测试ISP地址
#
interface GigabitEthernet0/0
 port link-mode route
 combo enable copper
 ip address 4.1.1.2 255.255.255.0
#

2,静态路由配置

#
 ip route-static 192.168.10.0 24 4.1.1.1  #回程路由到核心交换机
#

五,测试验证

华三防火墙旁挂VRF方式部署
华三防火墙旁挂VRF方式部署

1,用PC_2 Ping 8.8.8.8,然后在防火墙上查看流量通过Trust-Untrust出去再回来,如下图:

display session table ipv4 verbose
华三防火墙旁挂VRF方式部署
华三防火墙旁挂VRF方式部署

华三单臂路由+VRF配置实验:https://www.hao0564.com/5823.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注