Skip to main content
Mpoffal
New Member
October 21, 2014
Question

How to change Vlan Id on one subinterface

  • October 21, 2014
  • 1 reply
  • 20717 views

Hi,

 

I have tried to change the vlan id of a subinterface, but get the following error.

 

"VLAN ID or physical interface cannot be changed once a VLAN has been created. object set operator error, -522 discard the setting Command fail. Return code -522"

 

what would be the way to change the vlan id?

1 reply

pcraponi
New Member
October 21, 2014

Did a backup. Edit you file with the new vlan ID and restore backup file. The Fortigate will reboot with the new VLAN ID...

 

 

jmlux
New Member
May 20, 2016

What happens when you restore a config to a HA cluster? Will it be like an upgrade (secondary reboots, switch to secondary, primary reboot, switch back to primary)?

Toshi_Esumi
SuperUser
SuperUser
May 20, 2016

I think you just need to remove it once (of course any references first), then create a new one with a new vlan id.