FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
spathak
Staff
Staff
Article Id 190563

Description
This article explains how to add or remove physical interface from Hardware/Software switch

Solution
To add the Physical interface to hardware switch please follow below steps:

Note: 

- All Reference to the Physical interface should be removed.
- One interface at least should be as the member of switch or else need to delete switch configuration completely.

Via GUI:


1) Go to: Interface -> Hardware Switch
2) On Interface Members, Click on 'add'
Select the respective physical interface from 'Select Entries list'

To remove the interface, deselect the interface from Interface Members list, by clicking on “x” mark from “Interface Members”.

Via CLI :

To add a Physical interface to hardware switch
#config system virtual-switch
    edit lan
        config port
            edit <interface name>                               <----- physical interface name
        end
To remove the interface from hardware switch
#config system virtual-switch
    edit lan
        config port
            delete <interface name>                             <----- physical interface name
        end
To add the Physical interface in the software switch please follow below steps:

Via GUI:

1) Go to: Interface -> Software Switch -> edit    
Interface Name: Internal
Type: Software Switch
2) On Interface Members, Click on 'add'
Select the respective physical interface from 'Select Entries list'



To remove the interface, deselect the interface from Interface Members list.

Via CLI :

To add a Physical interface to software switch
#config system switch-interface
    edit internal
        set member <list of interface>
    end
When adding an interface to software switch configuration, make sure  all other interface are added to the member list.
   
For example:
#config system switch-interface
    edit internal
        set member lan1 lan2                           <----- Currently lan1 and lan2 are members of internal software switch
    next

To add lan4, re-add all the interface to the member list again.
#config system switch-interface
    edit internal
        set member lan1 lan2 lan4
    next
end
To remove the interface from software switch
#config system switch-interface
    edit internal
        unselect member  lan4                          <----- physical interface name
    next
end:

Contributors