Community discussions

 
wwj
just joined
Topic Author
Posts: 16
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
Long time Member
Long time Member
Posts: 540
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
just joined
Topic Author
Posts: 16
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
Long time Member
Long time Member
Posts: 540
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: smbecker3673 and 77 guests