{"id":2259,"date":"2022-06-22T22:46:17","date_gmt":"2022-06-22T20:46:17","guid":{"rendered":"https:\/\/itsimple.info\/?p=2259"},"modified":"2022-06-22T22:46:19","modified_gmt":"2022-06-22T20:46:19","slug":"how-to-change-fortigate-switch-mode","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2259","title":{"rendered":"How To change Fortigate Switch mode"},"content":{"rendered":"\n<p><strong>Solution<\/strong><br>In 5.2 the port configuration could be changed by using the following commands:<\/p>\n\n\n\n<p>1) Command to change the FortiGate to switch mode:<br><em>config system global<\/em><br><em>&nbsp;&nbsp; set internal-switch-mode switch<\/em><br><em>end<\/em><\/p>\n\n\n\n<p>2) Command to change the FortiGate to interface mode:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>config system global<\/em><br><em>&nbsp;&nbsp; set internal-switch-mode interface<\/em><br><em>end<\/em><\/p><\/blockquote>\n\n\n\n<p>After this change the unit had to be rebooted and instead of a combined \u201cinternal\u201d switch the unit showed individual ports.<\/p>\n\n\n\n<p>In 5.4 the commands have been changed.<\/p>\n\n\n\n<p>In 5.4 some of the configuration modules were removed and changed. If you upgraded your unit with switch mode interface, the configuration is adapted.<\/p>\n\n\n\n<p>However, with factory resets or brand new units the default setting is that all ports are in the hardware switch.<\/p>\n\n\n\n<p>In order to have separate ports instead of running them in a switch, the configuration changes can be made as follows for new or factory reset units.<\/p>\n\n\n\n<p>Step 1 &#8211; Remove all policies referencing \u201cinternal\u201d or \u201clan\u201d.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>FWF90D3Z13xxxxxx (policy) # show<\/em><br><em>config firewall policy<\/em><br><em>&nbsp;&nbsp;&nbsp; edit 1<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set uuid 1dac0956-0e3f-51e7-9b91-b653bdf8af55<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set srcintf &#8220;lan&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set dstintf &#8220;wan1&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set srcaddr &#8220;all&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set dstaddr &#8220;all&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set action accept<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set schedule &#8220;always&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set service &#8220;ALL&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set nat enable<\/em><br><em>&nbsp;&nbsp;&nbsp; next<\/em><br><em>end<\/em><br><br><em>FWF90D3Z13xxxxxx (policy) # purge &nbsp;&nbsp; &#8212;-{ Caution! This will remove all policies<\/em><br><em>This operation will clear all table!<\/em><br><em>Do you want to continue? (y\/n)y<\/em><\/p><\/blockquote>\n\n\n\n<p>Step 2 (For WiFi units only) &#8211; Remove &#8220;internal&#8221; from software switch interface &#8220;lan&#8221;.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>FWF90D3Z13xxxxxx # config system switch-interface<\/em><br><em>FWF90D3Z13xxxxxx (switch-interface) # edit lan<\/em><br><em>FWF90D3Z13xxxxxx (lan) # show<\/em><br><em>config system switch-interface<\/em><br><em>&nbsp;&nbsp;&nbsp; edit &#8220;lan&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set vdom &#8220;root&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set member &#8220;wifi&#8221; &#8220;internal&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp; next<\/em><br><em>end<\/em><br><em>FWF90D3Z13xxxxxx (lan) # set member wifi<\/em><br><em>FWF90D3Z13xxxxxx (lan) # end<\/em><br><br><em>FWF90D3Z13xxxxxx (switch-interface) # show<\/em><br><em>config system switch-interface<\/em><br><em>&nbsp;&nbsp;&nbsp; edit &#8220;lan&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set vdom &#8220;root&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set member &#8220;wifi&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp; next<\/em><br><em>end<\/em><\/p><\/blockquote>\n\n\n\n<p>Step 3 \u2013 Remove all (or individual ports) from the virtual switch.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>FWF90D3Z13xxxxxx # config system virtual-switch<\/em><br><em>FWF90D3Z13xxxxxx (virtual-switch) # show<\/em><br><em>config system virtual-switch<\/em><br><em>&nbsp;&nbsp;&nbsp; edit &#8220;internal&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set physical-switch &#8220;sw0&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config port<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal1&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal2&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal3&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal4&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal5&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal6&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal7&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal8&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal9&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal10&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal11&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal12&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal13&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; edit &#8220;internal14&#8221;<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<\/em><br><em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<\/em><br><em>&nbsp;&nbsp;&nbsp; next<\/em><br><em>end<\/em><br><br><em>FWF90D3Z13xxxxxx (virtual-switch) # purge&nbsp;&nbsp;&nbsp; &#8212;-{ Caution! This will remove all ports.<\/em><br><em>This operation will clear all table!<\/em><br><em>Do you want to continue? (y\/n)y<\/em><\/p><\/blockquote>\n\n\n\n<p>If only remove some ports are to be removed from the switch, instead of \u201cpurge\u201d enter<em>:<\/em><em><\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><em>FWF90D3Z13xxxxxx # config system virtual-switch<\/em><em><br>FWF90D3Z13xxxxxx (internal) # config port<\/em><br><em>FWF90D3Z13xxxxxx (port) #&nbsp;<\/em><br><em>FWF90D3Z13xxxxxx (port) # delete internal1<\/em><br><em>FWF90D3Z13xxxxxx (port) # end<\/em><\/p><\/blockquote>\n\n\n\n<p>After removing the ports from the hardware switch the configuration of policies, routes and interface settings for each port can be completed.<\/p>\n\n\n\n<figure class=\"wp-block-pullquote has-vivid-green-cyan-color has-text-color has-small-font-size\" style=\"font-style:normal;font-weight:700\"><blockquote><p>Good Luck<\/p><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>SolutionIn 5.2 the port configuration could be changed by using the following commands: 1) Command to change the FortiGate to switch mode:config system global&nbsp;&nbsp; set internal-switch-mode switchend 2) Command to change the FortiGate to interface mode: config system global&nbsp;&nbsp; set internal-switch-mode interfaceend After this change the unit had to be rebooted and instead of a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12],"tags":[],"class_list":["post-2259","post","type-post","status-publish","format-standard","hentry","category-tech","category-tutorials"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2259"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2259\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}