Skip to main content
DonD
New Member
October 5, 2018
Question

How do I set "Interface" Attribute

  • October 5, 2018
  • 1 reply
  • 37057 views

In the following:

conf sys int   edit port1     set vdom root     set description "LAN"     set alias "LAN"   next end   I get the following right after "next": "Attribute 'interface' MUST be set. Command fail. Return code 1"   I'm new to FG CLI and would greatly appreciate some help with this. Thank you! DonD

    1 reply

    Toshi_Esumi
    SuperUser
    SuperUser
    October 5, 2018

    What is your FGT model? Are you sure "port1" physical interface exist? If not, the default interface type of a logical interface is vlan, which requires "set interface INTERFACE_NAME". Then you get that error.

    You would know if you type "get" while you're in "edit port1" context before hitting "next". It would show you what kind of default values been set so far.

    DonD
    DonDAuthor
    New Member
    October 5, 2018

    I have a FortiWiFi 50E, which has 5 physical Ethernet ports on its back.  Isn't "port1" one of those ports?

    Attached is a screenshot of a PuTTY session with "get" while in "edit port1".

    DonD

     

    Toshi_Esumi
    SuperUser
    SuperUser
    October 5, 2018

    You needed hit one "space" bar. The attribute "type" is the next line after "wins-ip" you showd at the bottom.

    I'm not sure the port naming on FWF50E. But my FGT50E's port naming is "lan1", "lan2",....."lan5". And by default all those ports are bound in a hard-switch "lan". So I can't configure lan1 directly until I remove lan1 from lan hard-switch.

    Just go to GUI under Network->Interfaces to see what actually you have. I believe all FWF model use a soft-switch to combine "wifi" interface with LAN ports. You can see them when you drill down (Edit) each interface you see in GUI.

     

    You must have created a new logical interface "port1" and its type is vlan. That's why you got an error "must set interface attribute" when you try exit/save it.