OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: mrkinaujr on February 11, 2021, 12:16:52 pm

Title: No IP given by the DHCP Server
Post by: mrkinaujr on February 11, 2021, 12:16:52 pm
Hello,

i got a old PC today and i wanted to get OpnSense running on it via Unraid. My current Problem is that i can't reach the WebUI via a LAN Port.
I checked ipconfig and i do not get a IP Address from OpnSense but i can not reach it's Web Interface.

I'm currently directly connected via a CAT6 Cable from the Nic to my Laptop.

My server specs are:
 CPU: AMD Ryzen 5 2600
 RAM: 16 GB G.Skill Aegis @ 3000mhz
 MB: MSI B450 Gaming Pro Carbon AC
 NIC: InLine 4x Gigabit Netzwerkkarte, PCIe x4, 4x 1GBit/s

It's currently running Unraid Version 6.8.3
I currently have OPNsense 21.1 VM installed. [current KVM Config for OPNsense] (https://pastebin.com/3b1TCrBb)
OPNsense can see the NIC and has driver out of the box.
I configured re0 as a WAN Port (currently not connected)
re1 is a LAN Port
re2 and re3 are OPT Ports

I configured each LAN and OPT ports to have a static IP and started the dhcp server on them via the Console.

Does anyone have a idea what i could be doing wrong and might point me in the right direction?
Title: Re: No IP given by the DHCP Server
Post by: Patrick M. Hausen on February 11, 2021, 02:03:26 pm
Have you configured the DHCPv4 service for each of the interfaces? You need to configure address pool etc. in the UI.
Title: Re: No IP given by the DHCP Server
Post by: mrkinaujr on February 11, 2021, 02:34:42 pm
i can't configure the DHCPv4 service since i can't get into the GUI. I just installed it and it seems that i can't get any connectivity between server and my client.
Title: Re: No IP given by the DHCP Server
Post by: chemlud on February 11, 2021, 02:38:29 pm
use the serial console for initial interface setup
Title: Re: No IP given by the DHCP Server
Post by: mrkinaujr on February 11, 2021, 03:26:18 pm
I've done that. But i still get no real connection going so i can get into the Web GUI
Title: Re: No IP given by the DHCP Server
Post by: chemlud on February 11, 2021, 04:13:36 pm
.. i still get no real connection going so i can get into the Web GUI

What is an "unreal" connection? If you get an IP via DHCP, there is some kind of traffic flowing back and forth.

Is the interface an OPTx? Then there might be firewall rules missing, the anti-lock out rule is only on LAN iirc.
Dunno anymore if the GUI is listening on OPTx out of the box...
Title: Re: No IP given by the DHCP Server
Post by: Patrick M. Hausen on February 11, 2021, 04:18:25 pm
You need to configure your desktop system statically to connect to the OPNsense for initial setup. Then use the UI to proceed from there.
Title: Re: No IP given by the DHCP Server
Post by: mrkinaujr on February 11, 2021, 05:54:01 pm
You need to configure your desktop system statically to connect to the OPNsense for initial setup. Then use the UI to proceed from there.

Setting my IP, Netmask and Gateway manually did not help either sadly.

Just to doublecheck
IP: 192.168.1.2
Netmask: 255.255.255.0
Gateway: 192.168.1.1

Any other idea what i might be able to do? I can see my Connection via ifconfig re1 in the shell so i can for sure say that i'm plugged into the right port.
Title: Re: No IP given by the DHCP Server
Post by: mrkinaujr on February 11, 2021, 05:55:36 pm
.. i still get no real connection going so i can get into the Web GUI

What is an "unreal" connection? If you get an IP via DHCP, there is some kind of traffic flowing back and forth.

Is the interface an OPTx? Then there might be firewall rules missing, the anti-lock out rule is only on LAN iirc.
Dunno anymore if the GUI is listening on OPTx out of the box...

Unreal meant not working. Sorry english isn't my first language. I did not get any IP via DHCP but i can verify that i'm on the right interface since the terminal says LAN (re1) and if i do
Code: [Select]
ifconfig re1 i can see that i'm indeed connected.