Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCP from OPT1 on LAN

    Scheduled Pinned Locked Moved DHCP and DNS
    22 Posts 7 Posters 13.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      marcusone
      last edited by

      I'm using the latest release 1.2.2

      I have the LAN setup to not do DHCP because I have another server that takes care of it on the LAN.
      ON OPT1 I have setup DHCP, and it appears to work fine.  However, the LAN starts getting DHCP requests from the OPT1 DHCP server (gives out the IP and info that I have setup there instead of from the default DHCP server I have on the LAN).

      I don't have them bridged or anything, and the logs show that it is sending out the DHCP request on the correct… although I see some "wrong network" entries... any ideas what is going on?

      -- Logs --
      Jan 28 15:35:10 dhcpd: DHCPACK to 10.opt1 (MA:CM:AS:KD:c6:16) via fxp1
      Jan 28 15:35:10 dhcpd: DHCPINFORM from 10.opt1 via fxp1
      Jan 28 15:35:01 dhcpd: DHCPACK on 10.opt1 to MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:01 dhcpd: DHCPREQUEST for 10.opt1 10.opt1.x.x from MA:CM:AS:KD:c6:16 (VMServer8 [lan]) via fxp1
      Jan 28 15:35:01 dhcpd: DHCPOFFER on 10.opt1.x.x to MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:01 dhcpd: DHCPDISCOVER from MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:00 dhcpd: DHCPACK on 10.opt1.x.x to MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:00 dhcpd: DHCPREQUEST for 10.opt1.x.x 10.opt1.x.x from MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:00 dhcpd: DHCPOFFER on 10.opt1.x.x to MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:00 dhcpd: DHCPDISCOVER from MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:35:00 dhcpd: DHCPOFFER on 10.opt1.x.x to MA:CM:AS:KD:c6:16 (VMServer8) via fxp1
      Jan 28 15:34:59 dhcpd: DHCPNAK on 10.lan.x.x to MA:CM:AS:KD:c6:16 via fxp1
      Jan 28 15:34:59 dhcpd: DHCPREQUEST for 10.lan.x.x (10.lan.x.x) from MA:CM:AS:KD:c6:16 via fxp1: wrong network.

      – end logs --

      Thanks,

      1 Reply Last reply Reply Quote 0
      • G
        ginosteel
        last edited by

        can u post the conf of the lan and opt1?

        1 Reply Last reply Reply Quote 0
        • M
          marcusone
          last edited by

          Thanks… where exactly do I find the file you need (or is it part of the large XML file)?

          1 Reply Last reply Reply Quote 0
          • G
            ginosteel
            last edited by

            just make some screenshoots and upload them to http://photobucket.com and insert them here

            1 Reply Last reply Reply Quote 0
            • M
              marcusone
              last edited by

              Here is the export of the interface config:

              I'll get some screen shots asap.

              
               <interfaces><lan><if>em0</if>
              		<ipaddr>10.LAN</ipaddr>
              		<subnet>24</subnet>
              		 <media><mediaopt><bandwidth>100</bandwidth>
              		<bandwidthtype>Mb</bandwidthtype></mediaopt></media></lan> 
              	 <wan><if>fxp0</if>
              		 <mtu><ipaddr>dhcp</ipaddr>
              		 <subnet><gateway><blockpriv>on</blockpriv>
              		<blockbogons>on</blockbogons>
              		 <disableftpproxy><dhcphostname><media><mediaopt><bandwidth>100</bandwidth>
              		<bandwidthtype>Mb</bandwidthtype>
              		 <spoofmac></spoofmac></mediaopt></media></dhcphostname></disableftpproxy></gateway></subnet></mtu></wan> 
              	 <opt1><descr>OPT1</descr>
              		<if>fxp1</if>
              		 <bridge><ipaddr>10.OPT1</ipaddr>
              		 <spoofmac><mtu><subnet>24</subnet>
              		 <gateway><enable></enable></gateway></mtu></spoofmac></bridge></opt1></interfaces> 
              
              
              1 Reply Last reply Reply Quote 0
              • M
                marcusone
                last edited by

                Images:

                LAN:

                OPT1:

                1 Reply Last reply Reply Quote 0
                • G
                  ginosteel
                  last edited by

                  Services->DHCP Server LAN and OPT screenshoots

                  1 Reply Last reply Reply Quote 0
                  • M
                    marcusone
                    last edited by

                    LAN DHCP:

                    OPT1 DHCP:

                    1 Reply Last reply Reply Quote 0
                    • G
                      ginosteel
                      last edited by

                      u must put on each interface the gateway u need to reach and some rules in firewall to your specific needs.

                      1 Reply Last reply Reply Quote 0
                      • M
                        marcusone
                        last edited by

                        @ginosteel:

                        u must put on each interface the gateway u need to reach and some rules in firewall to your specific needs.

                        That shouldn't have anything to do with listening to broadcast requests for DHCP!  If I enable DHCP on one interface, it should not be responding to DHCP boradcast requests that it detects on another interface!

                        Adding in the gateway is optional if I want to use a different one than the WAN interface.

                        Is there a firewall rule that will block DHCP requests from traversing to the OPT1 interface, that won't affect other broadcast requests?

                        1 Reply Last reply Reply Quote 0
                        • M
                          marcusone
                          last edited by

                          Is there another place to put bug reports?  As this has to be a bug.

                          1 Reply Last reply Reply Quote 0
                          • jahonixJ
                            jahonix
                            last edited by

                            Your WINS entry on OPT1 refers to a LAN host.

                            Other than that I can confirm that I saw similar behaviour recently on 1.2.2 and 1.2.3pre.

                            I have DHCP enabled on both LAN and OPT1 interface, though.
                            Moved a client from OPT1 to LAN and it still got an IP from OPT1 range. Both DHCP instances hold static ARP entries for this client's MAC which I supposed to cause this (and an error in the logs).

                            1 Reply Last reply Reply Quote 0
                            • M
                              marcusone
                              last edited by

                              So this is clearly a bug… where should this get logged so that it can be fixed in a future release?

                              1 Reply Last reply Reply Quote 0
                              • jahonixJ
                                jahonix
                                last edited by

                                @marcusone:

                                So this is clearly a bug… where should this get logged so that it can be fixed in a future release?

                                Usually you open a ticket in CVS.
                                Don't know how that's handled now since they changed to GIT.

                                If nothing has changed then start here: http://cvstrac.pfsense.org/

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cmb
                                  last edited by

                                  Can't replicate.  Same config with DHCP server enabled on OPT and not enabled on LAN, and I get only this on the LAN:
                                  02:29:58.934476 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:4c:12:22, length 300
                                  02:30:02.936510 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:4c:12:22, length 300
                                  02:30:09.940158 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:4c:12:22, length 300
                                  02:30:25.946657 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:0c:29:4c:12:22, length 300

                                  Taken from the firewall's LAN interface. Never a reply whatsoever.

                                  Ticket updated, will need a full config that exhibits this.

                                  1 Reply Last reply Reply Quote 0
                                  • jahonixJ
                                    jahonix
                                    last edited by

                                    @cmb:

                                    Can't replicate.  …  will need a full config that exhibits this.

                                    Replied by PM

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      marcusone
                                      last edited by

                                      What config files/etc would you need?  I will try to retest this on the weekend and send my configs.

                                      1 Reply Last reply Reply Quote 0
                                      • jahonixJ
                                        jahonix
                                        last edited by

                                        Usually the .XML file of your configuration which you get from:  Diagnostics  |  Backup/Restore
                                        You may want to delete sensitive information from this file with a text editor (PPPoE user/pwd etc).

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          cmb
                                          last edited by

                                          Get a configuration backup and attach it to an email, and reference this thread.

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            micro80
                                            last edited by

                                            Is somebody using a a dual LAN card or? I do.
                                            I have 3 LAN connection and to cards.
                                            If DHCP is enabled on all three interfaces you get IP from LAN interface and not OPT1 or OPT2
                                            My interfaces is like this.

                                            Dual interface: LAN and OPT1
                                            Singel interface: OPT2

                                            If I have DHCP enabled on LAN and OPT2 its working.
                                            If I enable on OPT1 I always get IP from LAN to computers connected to OPT1 interface.

                                            I think the problem is by using a dual interface card.
                                            Maybe its wrong but that has happend at my place.

                                            Somebody else?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.