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

    KIA DHCP wants to put a DHCP scpoe on my PPPOE Interface....

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 384 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.
    • C
      cliffd
      last edited by

      ERROR [kea-dhcp4.dhcp4.0x21f40d012000] DHCP4_INIT_FAIL failed to initialize Kea server: configuration error using file '/usr/local/etc/kea/kea-dhcp4.conf': specified reservation '10.7.20.31' is not within the IPv4 subnet '81.159.6.21/32'

      every time I try and start the DHCP service - I get this error message...

      I've tried stripping the config back manually to a bare bones config - just supporting the single LAN interface em0

      but - every time i edit the file - then restart the service -

      "interfaces-config": {
      "interfaces": [
      "pppoe0"
      ]
      },

      this ends up back in the config...

      hence the reason it can't start - its trying to apply a LAN dhcp config to the PPPoE interface...

      is there any way of overriding it - and saying ignore that interface for Kia?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @cliffd
        last edited by

        @cliffd said in KIA DHCP wants to put a DHCP scpoe on my PPPOE Interface....:

        its trying to apply a LAN dhcp config to the PPPoE interface

        Oh, ok, that will fail, and that's normal.
        On a pppoe interface you wouldn't (and can't) be using a DHCP client, and a DHCP server doesn't even belong on a WAN type interface.

        pppoe is handling the IP settings for you, so its mutually exclusive with DHCP (client) setting on a WAN type interface.
        DHCP server should only be used on LAN type interfaces.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        C 1 Reply Last reply Reply Quote 0
        • C
          cliffd @Gertjan
          last edited by

          @Gertjan yes - I know it shouldn’t be there but pfsense is adding it back into the config every time I take it out!

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @cliffd
            last edited by Gertjan

            @cliffd

            Try this : backup your config.
            Then, from the console, go back to default.
            Some setup will be needed, as you have to re create a pppoe setup on your WAN.

            edit : and double check you have not set pppoe on a LAN interface somewhere.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            C 2 Replies Last reply Reply Quote 0
            • C
              cliffd @Gertjan
              last edited by

              @Gertjan what precisely denotes an interface as lan or wan??

              1 Reply Last reply Reply Quote 0
              • C
                cliffd @Gertjan
                last edited by

                seems a bit brutal to have to default the devices...

                I've got this in a HA pair - the interface PPPoE is defined on is actually kind of a dummy interface but I've set up a gateway for it to make it into a WAN interface - and its made no difference....

                I used to have loads of config on there - but I've paired it right back to try and isolate the problem...

                this is a real pain in the ar$£....

                config file having manually changed it to what I want...

                {
                "Dhcp4": {
                "interfaces-config": {
                "interfaces": [
                "em0.20"
                ]
                },
                "lease-database": {
                "type": "memfile",
                "persist": true,
                "name": "/var/lib/kea/dhcp4.leases"
                },
                "loggers": [
                {
                "name": "kea-dhcp4",
                "output_options": [
                {
                "output": "syslog"
                }
                ],
                "severity": "INFO"
                }
                ],
                "valid-lifetime": 7200,
                "max-valid-lifetime": 86400,
                "ip-reservations-unique": false,
                "echo-client-id": false,
                "option-data": [
                {
                "name": "domain-name",
                "data": "home.arpa"
                }
                ],
                "option-def": [
                {
                "space": "dhcp4",
                "name": "ldap-server",
                "code": 95,
                "type": "string"
                }
                ],
                "hooks-libraries": [
                {
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"
                }
                ],
                "control-socket": {
                "socket-type": "unix",
                "socket-name": "/tmp/kea4-ctrl-socket"
                },
                "authoritative": true,
                "subnet4": [
                {
                "id": 1,
                "subnet": "10.7.20.0/24",
                "option-data": [
                {
                "name": "domain-name-servers",
                "data": "10.7.20.1"
                },
                {
                "name": "routers",
                "data": "10.7.20.1"
                }
                ],
                "valid-lifetime": 60485000,
                "max-valid-lifetime": 60486000,
                "reservations": [
                {
                "hw-address": "44:19:b6:28:57:37",
                "ip-address": "10.7.20.31",
                "hostname": "cam1"
                },
                {
                "hw-address": "44:19:b6:4f:59:0a",
                "ip-address": "10.7.20.32",
                "hostname": "garagecam"
                },
                {
                "hw-address": "ac:cb:51:3c:97:2a",
                "ip-address": "10.7.20.35",
                "hostname": "cam6"
                },
                {
                "hw-address": "ac:cb:51:3c:97:34",
                "ip-address": "10.7.20.36"
                }
                ],
                "reservations-in-subnet": true
                }
                ],
                "reservations": [
                {
                "hw-address": "44:19:b6:28:57:37"
                },
                {
                "hw-address": "44:19:b6:4f:59:0a"
                },
                {
                "hw-address": "ac:cb:51:3c:97:2a"
                },
                {
                "hw-address": "ac:cb:51:3c:97:34"
                }
                ]
                }
                }

                config file after I tried to start the service...

                {
                "Dhcp4": {
                "interfaces-config": {
                "interfaces": [
                "pppoe0"
                ]
                },
                "lease-database": {
                "type": "memfile",
                "persist": true,
                "name": "/var/lib/kea/dhcp4.leases"
                },
                "loggers": [
                {
                "name": "kea-dhcp4",
                "output_options": [
                {
                "output": "syslog"
                }
                ],
                "severity": "INFO"
                }
                ],
                "valid-lifetime": 7200,
                "max-valid-lifetime": 86400,
                "ip-reservations-unique": false,
                "echo-client-id": false,
                "option-data": [
                {
                "name": "domain-name",
                "data": "home.arpa"
                }
                ],
                "option-def": [
                {
                "space": "dhcp4",
                "name": "ldap-server",
                "code": 95,
                "type": "string"
                }
                ],
                "hooks-libraries": [
                {
                "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so"
                }
                ],
                "control-socket": {
                "socket-type": "unix",
                "socket-name": "/tmp/kea4-ctrl-socket"
                },
                "authoritative": true,
                "subnet4": [
                {
                "id": 1,
                "subnet": "86.140.132.253/32",
                "option-data": [
                {
                "name": "domain-name-servers",
                "data": "10.7.20.1"
                },
                {
                "name": "routers",
                "data": "10.7.20.1"
                }
                ],
                "valid-lifetime": 60485000,
                "max-valid-lifetime": 60486000,
                "reservations": [
                {
                "hw-address": "44:19:b6:28:57:37",
                "ip-address": "10.7.20.31",
                "hostname": "cam1"
                },
                {
                "hw-address": "44:19:b6:4f:59:0a",
                "ip-address": "10.7.20.32",
                "hostname": "garagecam"
                },
                {
                "hw-address": "ac:cb:51:3c:97:2a",
                "ip-address": "10.7.20.35",
                "hostname": "cam6"
                },
                {
                "hw-address": "ac:cb:51:3c:97:34",
                "ip-address": "10.7.20.36"
                }
                ],
                "reservations-in-subnet": true
                }
                ],
                "reservations": [
                {
                "hw-address": "44:19:b6:28:57:37"
                },
                {
                "hw-address": "44:19:b6:4f:59:0a"
                },
                {
                "hw-address": "ac:cb:51:3c:97:2a"
                },
                {
                "hw-address": "ac:cb:51:3c:97:34"
                }
                ]
                }
                }

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