Hello,
Is there a way to allow all vlans on a port (the whole range of vlan ids not only the vlans defined on the FGT),
Thanks in advance.
Best Regards,
Ahmed Elswify
There is the option from the GUI to choose All as seen below:
or CLI:
config switch-controller managed-switch
edit "port2"
set poe-capable 1
set vlan "Administrata"
set allowed-vlans-all enable
Hello Emirjon,
Thanks for your reply, as far as I understand, this option will only allow the "defined" vlans (vlans already created on the FGT).
BR,
Yes, the VLAN configured via FGT are the same VLAN configured on the switch. Each time you create a new VLAN you don't have to manually include it on each port that have the allow all. What are your trying to achieve here?
In my knowledge every switch (different vendors) will accept and forward tagged traffic coming only from already configured VLANs and drop any tagged traffic if they don't have a VLAN configured for it.
I ran into a use case in which I need to allow all the vlan range (1-4094) not only the configured ones,
I've found a way, under 'config switch-controller global' the option 'set vlan-all-mode' defines whether to allow the whole range 'all' or only the defined ones 'defined', but this will be applied to all the trunk ports on all the managed switches, also this option would increase the data processing on the switch.
I believe there is another way through executing a FortiSwitch custom script from the FGT, but I have not tested it yet.
config switch-controller custom-command
edit "allowed-vlan-range"
set command "config switch interface %0a edit port1 %0a set allowed vlans [1-4094] %0a end %0a"
next
end
I didn't know that command and don't know the consequences on the performance.
The technique used to pass this VLANs from one perimeter to another like a Service Provider is Q-in-Q, maybe you can give it a try: https://docs.fortinet.com/document/fortiswitch/7.0.0/administration-guide/146340/vlan-stacking-qinq
.
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 2023 Fortinet, Inc. All Rights Reserved.