How to setup an interface on the SonicWall via Command Line Interface connected over the console port.
Resolution
Open a terminal software (here TeraTerm is used).
Adjust the settings for the serial port as follows.
Press OK - a blank screen should appear. Press ENTER and the login prompt should appear as follows.
If there is another admin logged in on the unit (i.e. from the WebGUI) then you'll be asked to pre-empt it.
To see, what interfaces are available, type: show interfaces ip. The results should be similar to the picture below.
Type configure, press ENTER, then interface X2. The following screen should be seen.
Type ip-assignment LAN static. This will put X2 into the LAN zone with static IP assignment. The IP will be configured in next step.
Type ip 192.168.101.1 netmask 255.255.255.0 and press ENTER.
Type commit and press ENTER. The following output will be provided.
Type exit and press ENTER. Repeat it three more times. You should then land at the beginning mode of the command line. In there please type show interface X2 and press ENTER. A similar output to the one provided below should be given.