华为ENSP之防火墙虚墙实际运用

实验目的

         实例OA内用户流量去PC1,走防火墙过滤

实验过程

        

a.交换机创建VLAN,VLANif,配置接口类型,绑定实例

SW1

[S1]vlan batch 10 20

interface GigabitEthernet0/0/1

 port link-type access

 port default vlan 10

interface GigabitEthernet0/0/2

 port link-type access

 port default vlan 20

interface GigabitEthernet0/0/3

 port link-type trunk

 port trunk allow-pass vlan 10 20

ip vpn-instance oa

 ipv4-family

  route-distinguisher 1:1

interface Vlanif20

 ip binding vpn-instance oa

 ip address 2.2.2.254 255.255.255.0

此时交换机全局下有1.1.1.0/24路由

2.2.2.0/24的路由在实例OA里

b.防火墙放通VLAN,创建虚墙,绑定实例,放通虚墙策略

FW

interface GigabitEthernet1/0/0

 portswitch

 undo shutdown

 port link-type trunk

 port trunk allow-pass vlan 10 20

vsys name vsys1 1

 assign vlan 10

 assign vlan 20

interface Vlanif10

 ip binding vpn-instance vsys1

 ip address 1.1.1.21 255.255.255.0

interface Vlanif20

 ip binding vpn-instance vsys1

 ip address 2.2.2.22 255.255.255.0

[USG6000V1]switch vsys vsys1

[USG6000V1-vsys1]firewall zone trust

[USG6000V1-vsys1-zone-trust]add interface Vlanif 10

[USG6000V1-vsys1-zone-trust]add interface Vlanif 20

rule name xu

  source-zone trust

  destination-zone trust

  service icmp

  service ospf

  service udp

  action permit

上下联路由都在虚墙上

c.通过ospf互通路由

SW

ospf 1 router-id 1.1.1.1

 area 0.0.0.0

[S1-Vlanif10]ospf enable  1 ar 0

ospf 2 router-id 1.1.1.1 vpn-instance oa

 area 0.0.0.0

interface Vlanif20

 ip binding vpn-instance oa

 ip address 2.2.2.254 255.255.255.0

 ospf enable 2 area 0.0.0.0

FW

ospf 1 router-id 2.2.2.2 vpn-instance vsys1

 area 0.0.0.0

interface Vlanif10

 ip binding vpn-instance vsys1

 ip address 1.1.1.21 255.255.255.0

 ospf enable 1 area 0.0.0.0

 #

interface Vlanif20

 ip binding vpn-instance vsys1

 ip address 2.2.2.22 255.255.255.0

 ospf enable 1 area 0.0.0.0

查看邻居情况

查看路由

都学到了对方的路由。

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值