- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Managed FortiSwitch allow all vlan ids on 802.1q trunk port
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
- Labels:
-
FortiGate
-
FortiSwitch v6.4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
If you have found a solution, please like and accept it to make it easily accessible for others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
If you have found a solution, please like and accept it to make it easily accessible for others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
If you have found a solution, please like and accept it to make it easily accessible for others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
.
