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

      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
                                    • W
                                      wombo
                                      last edited by

                                      I have a 4 port LAN card and the WAN is on the system board

                                      I have LAN1 set to 192.168.1.x/24
                                      I have LAN2 set to 10.10.x.x/16

                                      DHCP from LAN2 gets picked up by clients on LAN1

                                      john@wombo.com

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

                                        same problem here DHCP enable on LAN and OPT1 DHCP not working…

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