OPNsense Forum

English Forums => General Discussion => Topic started by: binaryanomaly on May 19, 2020, 09:20:56 pm

Title: [Solved] Configuring interfaces from the cli
Post by: binaryanomaly on May 19, 2020, 09:20:56 pm
Hi,

How are interfaces configured the right way from the cli?
I recently changed nics on my vm which caused the interface auto assignment to kick in and configure my interfaces wrongly.

How can I properly configure them again from the cli?
Is there a way to invoke the original script from the installer to do that?

I only managed to set the ip manually via ifconfig and could then luckily connect to the webui again.
Guess there must be a better way but haven't found one.
Title: Re: Configuring interfaces from the cli
Post by: binaryanomaly on May 22, 2020, 10:05:21 am
Ok I guess what I'd wanted to know was:

Code: [Select]
sudo /usr/local/sbin/opnsense-shell

Maybe it sometime helps someone else as it's not documented anywhere, afaik.
Title: Re: [Solved] Configuring interfaces from the cli
Post by: marjohn56 on May 22, 2020, 06:19:12 pm
It's there in the terminal menu, assignment is option 1. The same menu you got to when you installed Opnsense.