Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Worknet
New Contributor

How to remove a subinterface

Hello, I have a problem. I have created a subinterface (VLAN) with a bad VLANID and a bad interface name. Unfortunately, the buttom " delete" in menu " Network/Interface" is grayed when I check this subinterface. How to remove or modify this subinterface ? Thank you for your help. N.B. : I have a F200B v4 MR2
5 REPLIES 5
emnoc
Esteemed Contributor III

Do you have anything bound to that sub-interfaces ( vpn,dhcp-server, fwpolicies, vips,etc...) if it has any objects attached via some configurations, then you would not beable to delete it. What you could do; rename the sub-interface and edit out the vlan-id to the correct vlan-id #. If you really need to delete it, upgrade to the new code which gives you a dependencies check/attach buttom or down load the config to a text editor and Find ( grep ) on the interface name.

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
Worknet
New Contributor

OK, I have only fw policies. Which CLI command for rename subinterface and modify vlan ID ? I have tried in config system but it' s not good. please
jmac
New Contributor

Backup the entire firewall configuration to a file, then search the file for the name of the sub-interface. You should be able to find the config section(s) where it is referenced.
ede_pfau
SuperUser
SuperUser

 config system interface
     edit " vlan12" 
         set vdom " root" 
         set interface " internal" 
         set vlanid 12
     next
     edit " vlan32" 
         set vdom " root" 
         set interface " internal" 
         set vlanid 32
     next
 end
 
 gate (interface) # ed vlan32
 gate (vlan32) # set vlanid 33
 next
 VLAN ID or physical interface cannot be changed once a VLAN has been created.
 object set operator error, -522 discard the setting
 
And there' s no ' rename' command in ' config system interface' . But a ' delete' ...
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
Worknet
New Contributor

Finally, I deleted the subinterface by removing all objects attached. Thank you for help
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors