Configure virtual domains for an 802.1q VLAN trunk

Introduction
This document describes how to configure virtual domains in Transparent mode to provide AV/IPS protection in an 802.1q VLAN trunk environment.
In a typical 802.1q VLAN trunk environment, the ports that connect the switch and the router are configured in trunk mode. All VLAN traffic passes through one physical cable.
In the Network Diagram below, traffic between the PC and the server is in VLAN 1 while voice traffic is in VLAN 2. Each VLAN is a single layer 2 broadcast domain, and no traffic can be forwarded to another VLAN. However, each VLAN is able to reach the router via the switch and router's trunk interface. A FortiGate-300 firewall in Transparent mode is inserted into the trunk to perform policy control and AV/IPS protection.

Products
·          Cisco Call Manager Express
·          Cisco2611XM
·          Cisco 7910SW IP phones
·          Cisco Cat 3550 Switch with voice VLAN feature

Prerequisites
The configuration is based on the following assumptions
·          Cisco Call Manager Express and the DHCP server are in one  Cisco2611XM.
·          The server and the PC are in Native VLAN 1.
·          The Cisco IP phones are in Voice VLAN 2.
·          Cisco Cat 3550 Switch has the voice VLAN feature

Configurations
Cisco Cat 3550 configuration
interface FastEthernet0/1
 switchport trunk encapsulation dot1q
 switchport mode trunk
interface FastEthernet0/2
 switchport voice VLAN 2
interface FastEthernet0/3
 switchport voice VLAN 2
interface FastEthernet0/13
 switchport voice VLAN 2
 
Cisco Router configuration
interface FastEthernet0/0
!
interface FastEthernet0/0.1
 encapsulation dot1Q 1 native
 ip address 10.11.14.1 255.255.255.0
 ip helper-address 10.202.1.15
interface FastEthernet0/0.2
 encapsulation dot1Q 2
 ip address 10.11.15.1 255.255.255.0
 ip helper-address 10.202.1.15
!
interface FastEthernet0/1
 ip address 10.202.1.1 255.255.255.0
Firewall FortiGate-300 configuration
The FortiGate-300 is configured into two VDOMs: root and Voice. The internal and external interfaces are in the root VDOM. The vlan2-internal and vlan2-external interfaces are in the Voice VDOM. VDOM root is used for data traffic while VDOM Voice is used for voice traffic.
config system vdom
    edit root
    next
    edit Voice
    next
end
config system interface
    edit internal
        set stpforward enable
    next
    edit external
        set stpforward enable
    next
 
    edit vlan2-internal
        set vdom Voice
        set interface internal
        set vlanid 2
    next
    edit vlan2-external
        set vdom Voice
        set interface external
        set vlanid 2
    next
end
config firewall policy
    edit 1
        set srcintf internal
        set dstintf external
        set srcaddr all
        set dstaddr all
        set action accept
        set schedule always
        set service ANY
        set profile_status enable
        set profile scan
    next
end
exec enter Voice
config firewall address
    edit all
    next
end
config firewall policy
    edit 1
        set srcintf vlan2-internal
        set dstintf vlan2-external
        set srcaddr all
        set dstaddr all
        set action accept
        set schedule always
        set service ANY
        set profile_status enable
        set profile scan
    next
    edit 2
        set srcintf vlan2-external
        set dstintf vlan2-internal
        set srcaddr all
        set dstaddr all
        set action accept
        set schedule always
        set service ANY
        set profil
Troubleshooting

·          diagnose debug enable -- enable output on remote console
·          diagnose sniffer packet -- display packets   coming in and
      out on interfaces
·         exec enter [vdom] -- change VDOM
·          exec ping -- ping tool
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值