Technical Tip: Configuring a FortiGate in Transparent mode to forward traffic on VLANs and remapping VlanID using forwarding domains
Description
This article gives a configuration example of how to forward traffic in between two VLANs in transparent mode.
VLAN forwarding allows to forward all VLANs traffic of a trunk that was connecting two network devices and where the FortiGate has been introduced, without having to perform any further configuration.
For more information on the trunk, VLAN, forwarding domain and VDOM, please refer to the related articles.
Case Scenario:
- Two VLANs share a common IP subnet
- Administrator wants the FortiGate in TP mode to forward traffic between the VLANs
- Traffic arriving on vlan104-105_intern with frame tagged vlanid 104 will be transferred to interface vlan104-105_extern with frame tagged vlanid 105
Solution:
- Assign both interfaces to the same forwarding domain
Scope
All FortiGates or VDOMs running in transparent mode.
Solution
| edit "vlan104-105_intern" set forward-domain 104 set interface "port2" set vlanid 104 next edit "vlan104-105_extern" set forward-domain 104 set interface "port3" set vlanid 105 next |
| edit 3 set srcintf "vlan104-105_intern" set dstintf "vlan104-105_extern" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ANY" next edit 4 set srcintf "vlan104-105_extern" set dstintf "vlan104-105_intern" set srcaddr "all" set dstaddr "all" set action accept set schedule "always" set service "ANY" next |
Related Articles
