- On the console menu, press1and pressEnter.
- The first option will be for setting up VLANs. Since we don’t want to set up VLANs now, pressnandEnter:
- You will be prompted to enter the WAN interface name. Here, you must enter the device name for the interface that will be the WAN interface (for example,
em1, and so on). Enter the appropriate device name and pressEnter.
- You will be prompted to enter the LAN interface name, or nothing if finished. You only need to assign the WAN interface (in which case you will be able to log into pfSense using the WAN IP address). However, if you want to assign an interface to LAN, enter the device name and pressEnter. Otherwise, just pressEnter.
- If there are more than two network interfaces, you can assign optional interfaces at the console. To do so, enter the device name and press Enter. Otherwise, just pressEnter.
- The interface assignments will be listed, and you will be asked whether you want to proceed. PressingnandEnterwill result in no changes being made, while pressingyandEnterwill commit the changes.
- If you pressedyandEnter, the changes will be written and the settings will be reloaded. You will then be returned to the console menu.
In this recipe, we were able to assign interfaces (which was done earlier in the chapter via the web GUI) from the console. Many configurations can be done from the console—we can even restore earlier configurations and run utilities—and in this book, we will take advantage of this functionality.