[Solved] Configuring interfaces from the cli

Started by binaryanomaly, May 19, 2020, 09:20:56 PM

Previous topic - Next topic
May 19, 2020, 09:20:56 PM Last Edit: May 22, 2020, 12:16:26 PM by binaryanomaly
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.

Ok I guess what I'd wanted to know was:


sudo /usr/local/sbin/opnsense-shell


Maybe it sometime helps someone else as it's not documented anywhere, afaik.

It's there in the terminal menu, assignment is option 1. The same menu you got to when you installed Opnsense.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member