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
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.
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
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.
Toshi,
Sorry about the space bar. Below is the entire "get" in two screenshots. Don't know why the first one has such small font. Maybe, you can zoom in to read it. Via GUI, I have successfully setup a software-switch interface. When I attempt to do another software-switch interface via GUI, and try to add interface members there are no interface sources. I expected to find "lan" and "wifi". I found references where others had experienced this problem and recommended the CLI code I showed you. Here's a link to where the CLI code was recommended - [link]https://github.com/librenms/librenms/issues/3859[/link]
By the way, my FortiWiFi 50E is running FortiOS 5.6.3
Thanks for helping me!
Don
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1741 | |
1109 | |
755 | |
447 | |
240 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.