Community discussions

MikroTik App
 
wwj
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Mon May 05, 2014 6:37 am

A difficault question about CLI

Tue Jul 16, 2019 1:02 pm

help!

In CLI mode how to set one parameter value to default

for exemple
/ip f m add chain=src-nat out-interface=ether1 action=masq
but now i dont want the "out-interface=ether1" ,if in winbox i can click the button of "set to default" to cancel this parameter , but in CLI how to do it

great help ,Thank you very much.
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: A difficault question about CLI  [SOLVED]

Tue Jul 16, 2019 2:21 pm

unset
/ip firewall nat unset [find action=masquerade] out-interface
 
wwj
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
Joined: Mon May 05, 2014 6:37 am

Re: A difficault question about CLI

Wed Jul 17, 2019 6:57 am

unset
/ip firewall nat unset [find action=masquerade] out-interface
WoW~~ I really didn't expect such a command to exist.

Thank you very much.
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: A difficault question about CLI

Wed Jul 17, 2019 2:13 pm

In Terminal, the [TAB] key can be your friend! :)

It can auto complete command and list: directories, commands and variables

Who is online

Users browsing this forum: Bing [Bot], GalZoltan, JokubasGer, mkx, rizan and 47 guests