Syntax of the CLI command interface
Last adaption: 12.1
New:
- New command: interface rename
- If multiple values are passed for a parameter, the values must be enclosed in square brackets with a space(!) between [ . Example: interface zone set id 4711 flags [ POLICY_IPSEC PPP_VPN ]
- If no values are to be passed for a parameter, two square brackets must be used. Example interface set name LAN1 flags [ ]
Command | Parameter | Description | Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
interfaceinterface getinterface get |
- | Listing of all interfaces
|
interface get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface newinterface new |
Create a new interface. The parameters name and type are required. The other parameters can be combined arbitrarily. | interface new name "eth6" type ETHERNET | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | Name of the interface to be configured. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
type | Interface type.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
zones | Zone assigned to the interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flags | flags [ flag1 flag2 ]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options | options [ option_name=option_value option2_name=option2_value ... ]
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
qos | QoS profile of the interface. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id / adi | Parameter not in use | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface setinterface set |
name | Editing an interface. The name parameter is required. The other parameters can be added arbitrarily. | interface set name "eth6" options mtu=1400 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The other parameters and their syntax are identical to the command interface new | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface deleteinterface delete |
name | Removing an interface. The name parameter is required. | interface delete name eth6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface renameinterface rename |
id | id of the interface whose name is to be changed (Can be determined beforehand with interface get |
interface rename id 156 name A99.7 Detailed example in the FAQ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | New name of the interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface addressinterface address getinterface address get |
- | Listing of all IP addresses | interface address get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface address get_old_listinterface address get_old_list |
- | Output of a list of IP addresses from the configuration that is stored in the version rollback. | interface address get_old_list | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface address newinterface address new |
device | Adding an IP address to an interface. Parameter device: Depending on the version with the prefix eth or LAN. | interface address new device "eth2" address 192.168.32.1/24 system update interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address | IPv4 or IPv6 address with subnet | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface address setinterface address set |
id | Changing an IP address. The ID of the interface can be determined with the command interface address get. |
interface address set id "43" address 192.168.33.1/24 system update interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
address | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface address deleteinterface address delete |
id | Removing an IP address. The ID of the interface can be determined with the command interface address get. |
interface address delete id 43 system update interface | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface zoneinterface zone getinterface zone get |
- | Listing of all zones
|
interface zone get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface zone newinterface zone new |
name | Adding a zone | interface zone new name dmz10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface zone setinterface zone set |
id | Adding a zone to an interface The ID of the zone can be determined with the command interface zone get. |
interface zone set id "213" interface eth2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
flags | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface zone deleteinterface zone delete |
id | Removing a zone from an interface The ID of the zone can be determined with the command interface zone get. |
interface zone delete id "213" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface neighborinterface neighbor getinterface neighbor get |
- | List of hosts that are reachable from the UTM | interface neighbor get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobileinterface mobile statusinterface mobile status |
- | Indicates the status for sim, modem, 3gpp and stats | interface mobile status | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile siminterface mobile sim sendpin |
modem | Syntax: interface mobile sim sendpin modem <id> pin <pin> Send the PIN to unlock the SIM card. The modem ID can be inquired with interface mobile modem get. |
interface mobile sim sendpin modem 1 pin 1234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile sim enable | modem | Syntax: interface mobile sim enable modem <id> pin <pin> Enable PIN checking. The modem ID can be inquired with interface mobile modem get. |
interface mobile sim enable modem 1 pin 1234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile sim disable | modem | Syntax: interface mobile sim disable modem <id> pin <pin> Disable PIN checking. The modem ID can be inquired with interface mobile modem get. |
interface mobile sim disable modem 1 pin 1234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile sim change | modem | Syntax: interface mobile sim change modem <id> pin <current_pin> newpin <new_pin> Changes the PIN code. The modem ID can be inquired with interface mobile modem get. |
interface mobile sim change modem 1 pin 1234 newpin 5678 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
newpin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile sim sendpuk | modem | Syntax: interface mobile sim sim sendpuk modem <id> puk <puk> newpin <new_pin> Send the PUK (Personal unlocking key / Super-Pin) and a new PIN to unlock the SIM card. The modem ID can be inquired with interface mobile modem get. |
interface mobile sim sim sendpuk modem 1 puk 12345678 newpin 2345 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
puk | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
newpin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modeminterface mobile modem get |
- | interface mobile modem get | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modem new | Syntax:interface mobile modem new bearerid <int> pin <pin> enabled <0|1> equipmentid <string> Creates a new modem entry. |
interface mobile modem new bearerid 1 pin 1234 enabled 1 equipmentid 8611070301234560 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bearerid | The ID of the provider entry. Retrieval with: interface mobile modem get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
pin | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enabled | Sets the newly configured modem in activated (1) or deactivated (0) state | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
equipmentid | The IMEI of the modem used. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modem set | id | Syntax:interface mobile modem set id <id>bearerid <int> pin <pin> enabled <0|1> equipmentid <string> Changes the modem settings. The parameter id is required |
interface mobile modem id 1 bearerid 1 pin 1234 enabled 1 equipmentid 8611070301234560 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
abc | The other parameters and their syntax are identical to the command modem mobile modem new | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modem enable | modem | Syntax:interface mobile modem enable <id> Enables the given modem. |
interface mobile modem enable modem 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modem disable | modem | Syntax:interface mobile modem disable <id> Disables the given modem. |
interface mobile modem disable modem 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile modem delete | id | Syntax:interface modem mobile delete id <id> Deletes a modem entry. |
interface mobile modem delete id 1 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile bearerinterface mobile bearer get |
- | Syntax: interface mobile bearer get Retrieves the provider configuration. Multiple configurations can be saved. |
interface mobile bearer get | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile bearer new | carrier | Syntax: interface mobile bearer new carrier <carrier> apn <apn> password <password> username <username> proxy <ipaddr> port <port> operatorid <id> roaming <0/1> limit <limit> billingstart <1-31> Creates a new provider configuration |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
apn | Access Point Name. DNS name of the access server of the provider. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
password | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
username | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
proxy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
port | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
operatorid | Operator ID of the mobile network operator | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
roaming | Parameter not in use | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
limit | Parameter not in use | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
billingstart | Parameter not in use | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile bearer set | id | Syntax: interface mobile bearer set id <id> carrier <carrier> apn <apn> password <password> username <username> proxy <ipaddr> port <port> operatorid <id> roaming <0/1> limit <limit> billingstart <1-31> Changes the settings of the provider |
interface mobile bearer set id 1 carrier "Telekom Internet" apn internet.telekom password telekom username telekom operatorid 26201 roaming 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
abc | The other parameters and their syntax are identical to the command interface mobile bearer new | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
interface mobile bearer delete | id | Syntax: interface mobile bearer delete id <id> Deleting a provider entry. |
interface mobile bearer delete id 1 |