OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: knebb on January 12, 2024, 01:35:35 PM

Title: How to Ignore a Gateway on a DHCP Interface?
Post by: knebb on January 12, 2024, 01:35:35 PM
Hi all!

I have a local network where a DHCP server is running (not OPNSense!). It provides a default gateway to the clients. Unfortunately I can not change configuration of this DHCP server.

Now I have an interface on my OPNSense attached to this network, requesting an IP through DHCP.

The provided gateway is now visible in OPNSense which I do not need.

Is there a way to configure the interface to get an IP address through DHCP and ignore the provided gateway?

Thanks!

/KNEBB
Title: Re: How to Ignore a Gateway on a DHCP Interface?
Post by: Patrick M. Hausen on January 12, 2024, 01:59:13 PM
No. And you should have only one interface configured with DHCP. That's a general rule for every host. Unless you have completely seperate virtual IP stacks which OPNsense doesn't have.
Title: Re: How to Ignore a Gateway on a DHCP Interface?
Post by: knebb on January 12, 2024, 02:33:55 PM
Makes sense. Reconfigured to static IP, ignoring the crappy DHCP server.

runing fine!