Description |
This article describes how to route traffic between several VLANs that are configured in different VDOMs. |
Scope | FortiGate all firmware. |
Solution |
Topology :
VDOMs can communicate among themselves via VDOM connections instead of extra physical interfaces.
The communication between VDOMs is known as inter-VDOM routing. Virtual interfaces known as VDOM linkages link together VDOMs. A pair of interfaces that are each linked to a VDOM and serve as either end of the inter-VDOM connection make up a VDOM link.
Create the VDOM: To enable VDOMs:
# config system global
To create the BO and LAB VDOMs:
# config global
Configure the physical interfaces:
Next, configure the physical interfaces. This example uses three interfaces on the FortiGate unit: port2 (internal), and port1 (external). Port2 interface and VLAN is a department’s network connected. Port1 is for all traffic to and from the Internet and uses DHCP to configure its IP address, which is common with many ISPs.
To configure the interfaces:
# config global set alias BOLocal set interface port2 next set interface port2
To configure BO and LAB VDOM link:
# config global
To configure the static routes in BO VDOM to route from BO to LAB VLAN:
# config vdom edit BO config router static edit 1 set destination 192.168.2.0/24 -> IP from LAB internal subnet. set gateway 11.11.11.1 -> IP of LAB VDOM link. set distance 10 end
To configure the static routes in LAB VDOM to route from LAB to BO VLAN:
# config vdom edit LAB config router static edit 1 set destination 192.168.1.0/24 -> IP from BO internal subnet. set gateway 11.11.11.2 -> IP of BO VDOM link. set distance 10 end
To configure the firewall policies from BOVDOM link to BO internal interface:
# config vdom set srcaddr all
To configure the firewall policies from LABVDOM link to LAB internal interface:
# config vdom set srcaddr all
Any client from BO VLAN may now connect to any client in LAB VLAN, and vice versa.
Note. Check if the windows firewall is turned off on the Windows PC if it is impossible to ping each other's subnet.
Related articles: https://docs.fortinet.com/document/fortigate/6.4.5/administration-guide/335646/inter-vdom-routing |
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.