Description
This article describes the rules when creating VLAN and VDOM interface assignment.
Scope
FortiOS 6.0 and above.
Solution
VLAN:
VDOM interface assignment:
Example of VLAN setting and VDOM assignment:
VDOM 'Customer1':
CLI Configuration:
config system interface
edit "VLAN10_P1"
set vdom "Customer1"
set ip 192.168.100.254 255.255.255.0
set device-identification enable
set role lan
set snmp-index 24
set ip-managed-by-fortiipam disable
set interface "port1"
set vlanid 10
next
end
config system interface
edit "VLAN20_P1"
set vdom "Customer1"
set ip 172.16.100.254 255.255.255.0
set device-identification enable
set role lan
set snmp-index 25
set ip-managed-by-fortiipam disable
set interface "port1"
set vlanid 20
next
end
VDOM 'Customer2'.
CLI Configuration:
config system interface
edit "VLAN10_P2"
set vdom "Customer2"
set ip 192.168.200.254 255.255.255.0
set device-identification enable
set role lan
set snmp-index 26
set ip-managed-by-fortiipam disable
set interface "port2"
set vlanid 10
next
end
VDOM 'Customer3':
VLAN30_P1 (VLAN ID 30 on port1):
CLI Configuration:
config system interface
edit "VLAN30_P1"
set vdom "Customer3"
set ip 10.10.100.254 255.255.255.0
set device-identification enable
set role lan
set snmp-index 27
set ip-managed-by-fortiipam disable
set interface "port1"
set vlanid 30
next
end
CLI Configuration:
config system interface
edit "VLAN30_P2"
set vdom "Customer3"
set ip 10.10.200.1 255.255.255.0
set device-identification enable
set role lan
set snmp-index 28
set ip-managed-by-fortiipam disable
set interface "port2"
set vlanid 30
next
end
For the maximum number of VLANs or VDOMs, refer to the Maximum Values Matrix in FortiCare documents.
For additional information about VLANs and VDOMs, consult the VLAN and VDOM Guide.
Related article:
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.