Skip to main content
sunu
New Member
October 30, 2014
Solved

Physical Lan Interface configuration

  • October 30, 2014
  • 12 replies
  • 89110 views

Hi,

I can't find find Lan Interfcae list in fortigate web consol. It showing only One Interface, so i cant create another Physical interface.so please anybody know how to solve this, please..

firmware is in this Versionv5.2.1,build618 (GA) and am using fortigate 60D.

    Best answer by ede_pfau

    hi,

     

    by default the LAN ports on desktop models are switch ports.

    They are represented as just one interface because all belong to the same broadcast domain / same subnet.

     

    If you want to use more ports you have to change the port mode from 'switch' to 'interface'. You can do so in the Network>Interface section. Beware that all configuration related to the 'internal' port need to be removed before you are allowed to switch the mode. Check these:

    - policies

    - address objects assigned to that interface

    - DHCP server

    - static routes

     

    12 replies

    ede_pfau
    SuperUser
    ede_pfauAnswer
    SuperUser
    October 30, 2014

    hi,

     

    by default the LAN ports on desktop models are switch ports.

    They are represented as just one interface because all belong to the same broadcast domain / same subnet.

     

    If you want to use more ports you have to change the port mode from 'switch' to 'interface'. You can do so in the Network>Interface section. Beware that all configuration related to the 'internal' port need to be removed before you are allowed to switch the mode. Check these:

    - policies

    - address objects assigned to that interface

    - DHCP server

    - static routes

     

    sunu
    sunuAuthor
    New Member
    November 1, 2014

    Hi,

    Thans for your replay. its really heaplfull...

    To change switch mode to Interface Mode i need to remove everything associated with that Port.  ??

    My problem is, we have  VPN Tunnels working in this system also some policies. so i need to remove all these..

    is there any other option, means without removing these policies, can i switch  to Interface mode...

    is any options, it really helpful..

    any way am really thanks four replay and hope some solution for this..

     

     

                                                                                                                             Sunusurendran,

    Dave_Hall
    New Member
    November 1, 2014

    sunu wrote:

    [...]is there any other option, means without removing these policies, can i switch  to Interface mode...

    is any options, it really helpful..[...]

     

     

    This works on 4.0 MR3 but not so sure (never tried it) on 5.x code ....Load an uncrypted backup config into a text editor, replace all references of " internal" to " internal1" , then look for the line " set internal-switch-mode switch" and change that to " set internal-switch-mode interface" ; save changes then load that back into the fgt. 

    Never under estimate the power of the forum search.

    ede_pfau
    SuperUser
    SuperUser
    November 3, 2014

    sunu,

    the good news is that you only have to remove policies etc. using the 'internal' interface, not all policies. I assume that your VPNs are associated with the WAN port and not the 'internal' ports. But policies might be.

     

    And yes, I would rather go with the solution Dave posted: download the config file, edit it in an editor, restore it via WebGUI.

    BE AWARE that restoring will cause an immediate reboot of the FGT!!

     

    This is the reason why you change the switch mode right at the beginning of any configuration if you foresee that you will need more physical ports.

    sunu
    sunuAuthor
    New Member
    November 3, 2014

    Hi Ede_pfau

    I have created polices Police to allow traffic form WAN to LAN.

    what may be the problem. now am totally confused.. 

     

    sunu
    sunuAuthor
    New Member
    November 3, 2014

    Hi, 

    Actually from the remote network i need to access one software installed in Local network. 

    192.168.0.1 is my Local Lan gateway, and i can ping remote network local gateway from my fortigate CLI.

    but from the remote network(192.168.5.0) i can't access my server in Local network.

    i can't even ping to 192.168.0.1 from remote fortigate.

     

    In switch mode its working before..

    remote fortigate still in switch mode..

    sunu
    sunuAuthor
    New Member
    November 3, 2014

    Hi ede,

    My problem is i can't access one software installed in Local server from remote network.

    what may be the problem, is in polices? , please guide me to solve, actually am first to Fortigate.

    ede_pfau
    SuperUser
    SuperUser
    November 3, 2014

    What do you intend to do with a policy from WAN to LAN?

    You cannot access a private address like 192.168.x.y over the internet, they are not routed. That's why they are called 'private' addresses.

    So depending on your intentions you need to change the config.

    ede_pfau
    SuperUser
    SuperUser
    November 3, 2014

    OK, if I get you right you want to access a server on the remote subnet behind a VPN tunnel.

    For this, you need to allow that traffic.

     

    Traffic to the server is not coming from the WAN interface - it's coming from the tunnel! A VPN tunnel is represented by the tunnel interface. The interface is named like the phase1.

    So in your case you need (at least) these policies:

     

    on your FGT (local side):

    source IF: internal

    source addr: <local subnet>

    dest IF: <tunnel IF>

    dest addr: <remote subnet behind tunnel>

    no NAT

     

    on remote FGT:

    source IF: <tunnel IF>

    source addr: <remote subnet behind tunnel>

    dest IF: internal

    dest addr: <local subnet>

     

    where 'IF' stands for 'interface'.

     

     

    rwpatterson
    New Member
    November 3, 2014

    Also the remote router needs to know the path to your network is through the VPN tunnel. (it isn't the default)

    ede_pfau
    SuperUser
    SuperUser
    November 3, 2014

    sunu,

     

    please delete these policies.

    One of them is has action 'IPSEC' which it totally wrong.

     

    Let's clarify:

    - you need the tunnel definition (phase 1) in 'Interface mode'. Please check that this is enabled.

    This 'Interface mode' has nothing to do with your physical ports' switch/interface mode !!!

    - the policies need to be from 'internal' to 'tunnelname' and vice versa. The 'wan' interface is NEVER used in this. Please re-read my previous post.

    - you need one static route on each Fortigate, pointing the remote private LAN to the tunnel.

     

    If this seems all Greek to you then I suggest you read the basics on VPN in the FortiOS Handbook. Otherwise, I fear we don't talk the same language.

    ede_pfau
    SuperUser
    SuperUser
    November 5, 2014

    Don't worry, I'm glad it's working for you now. Enjoy!

    alinbuletin
    New Member
    June 9, 2015

    Hi all,

     

    Is there anybody who tried the procedure like Dave Hall suggested?

    "....Load an uncrypted backup config into a text editor, replace all references of " internal" to " internal1" , then look for the line " set internal-switch-mode switch" and change that to " set internal-switch-mode interface" ; save changes then load that back into the fgt."

    My Fortinet 100D, running v5.2.3,build670, has the same issue, only one physical interface active the rest up to port 16 looks like disabled.

    And by the way in my config there is no line containing "set internal-switch-mode" command.

    Thanks,

     

    Paul

    ede_pfau
    SuperUser
    SuperUser
    June 9, 2015

    Paul,

     

    yes I do! Done that a couple dozen times by now.

     

    As all references to the 'internal' interface have to be removed before doing the split up it's best to do that right after a factory reset. Let me suggest this sequence:

    1. backup your config, not encrypted

    2. in the CLI, type 'exec factoryreset' and confirm with 'y'. FGT reboots.

    3. Log back in with default credentials ('admin'/'') using the console port/serial connection. You have to delete the DHCP serve, a policy and a route all relating to the 'internal' interface, by

    'conf sys dhcp server', 'purge', 'end'

    'conf firewall policy', 'purge', 'end'

    'conf router static', 'purge', 'end'

     

    Of course, this leaves your FGT rather crippled.

    Then, do the switch

    'config sys global', 'set internal-switch-mode interface', 'end'.

    FGT reboots.

    4. log back in, note how the LAN interfaces are named now. 'internal1', 'internal2',...

    5. Edit a copy of your config file: search and replace all occurrences of 'lan' to 'internal1' (or whatever is appropriate for your model). In my experience this cannot be done without inspecting each occurrence found.

    6. Restore that edited config to your FGT (via GUI or uploading via serial).

    FGT will reboot.

    7. Log back in, using your credentials.

    8. Connect to GUI and check everything.

     

    Not too much hassle. You'll be thankful in the long run, there's always one more server to connect physically...

    Edit:

    In the config file, only settings which differ from the 'factoryreset' default settings are listed. That's why usually you won't see the 'config sys global/set internal-switch-mode' line. You will - after the switch.