No GUI and no Lan access

Started by Mr_G, March 25, 2023, 06:19:56 PM

Previous topic - Next topic
Quote from: Mr_G on March 27, 2023, 10:56:52 PM
The interfaces have been reset, no it's Lan A0, A1, A2, and WAN A3.

That doesn't make sense. Only one interface is LAN. Only one interface is WAN. If you want to turn your OPNsense in to a cheap switch replacement you can do that by creating a LAN bridge. But only later. After initial setup.

You boot whatever hardware you have from an install medium, most of the times USB nowadays.
You login as "installer" with password "opnsense". You go through the install procedure.
You shutdown the system and remove the install medium. You power up the system.

Without touching anything, just let it boot up, a PC on the first network interface will get an IP address via DHCP and the UI will be at 192.168.1.1.

When you have come to that point we can proceed.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

You're on to something fresh install got me online with the LAN A0 aka default. Now do I setup everything then connect the WAN?

Recommended steps:

- change the LAN IP address to e.g. 192.168.2.1/24
- give your PC an IP address like 192.168.2.2/24 (aka 255.255.255.0) manually
- reconnect to the UI at 192.168.2.1
- adjust the settings in Services > DHCP4 > LAN accordingly (change each 192.168.1.x to 192.168.2.x)
- reboot, set your PC to DHCP again, check if it gets an address from 192.168.2.0/24 now and if you can reach the UI

If that works, connect WAN to your existing home router. Internet should now work behind OPNsense just like it did directly behind your home router.

If after that you want to create a LAN bridge to have 3 of your 4 ports as LAN, follow this documentation:
https://docs.opnsense.org/manual/how-tos/lan_bridge.html

HTH,
Patrick
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

You were right the fresh install did the trick, I'm on the GUI, now I have to read up on this.

I have a vague idea what might have gone wrong.

So you assigned interfaces on the console?

Like ... A0 to WAN
A1 to LAN
A2 to LAN
A3 to LAN

Anything like that?

Then the later assignments to LAN always deleted the previous ones. You can only have one port assigned to one logical interface. So if the above is near the reality, you ended with

WAN: A0
LAN: A3

Yes, you have a four port device. One port is LAN, one port is WAN, two ports are inactive. It's supposed to be that way.

To get a common home router setup with e.g. 3 LAN ports you need to create a LAN bridge adhering to the documentation I linked above.

I wish you great success!  ;D
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

I was able to get into the GUI once I changed the Lan IP address it says it's applying changes and lost connection to the computer, the power is still on so I try the new IP address and it will not load, try rebooting it still no GUI at the new address? I found a windows PC has a range for IPs is that a possibility?

After changing the IP address of the OPNsense you must of course set a manual IP address matching the network for your PC. E.g. if you set OPNsense to 192.168.2.1, then 192.168.2.2 for your PC. I already wrote exactly that.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)