Ignoring requests on vlan.216@eno2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Ignoring requests on vlan.216@eno2

Ermengol
Hi,
I know I'm not the first to ask something like that, but after looking for an answer around, I haven't found none yet....sorry :(
I tried to simplify as much as possible the scenario and still showing the issue..

Ubuntu  18.04.5

Configuration done with netplan with two network cards, one trunk with 2 vlans.


The dhcpd server can ping to all networks

* ethernet 1, eno1 192.168.0.30/22 --> ping to GW (192.168.0.1) OK
* ethernet 2 / vlan 216 eno2 192.168.216.202/24 --> ping to other machines like 192.168.216.101 OK, and verified with tracepath that there is direct connection to machines at vlan (no hops)
* ethernet 2 / vlan 202 --> ping to other machine line 192.168.203.1 OK, and also verified that is done with no hop


But when starting isc-dhcp it says

Jul  5 12:54:20 opengnsys dhcpd[21225]: No subnet declaration for vlan.216@eno2 (no IPv4 addresses).
Jul  5 12:54:20 opengnsys sh[21225]: No subnet declaration for vlan.216@eno2 (no IPv4 addresses).
Jul  5 12:54:20 opengnsys sh[21225]: ** Ignoring requests on vlan.216@eno2.  If this is not what
Jul  5 12:54:20 opengnsys sh[21225]:    you want, please write a subnet declaration
Jul  5 12:54:20 opengnsys sh[21225]:    in your dhcpd.conf file for the network segment
Jul  5 12:54:20 opengnsys sh[21225]:    to which interface vlan.216@eno2 is attached. **
Jul  5 12:54:20 opengnsys sh[21225]: Not configured to listen on any interfaces!
Jul  5 12:54:20 opengnsys sh[21225]: If you think you have received this message due to a bug rather
Jul  5 12:54:20 opengnsys sh[21225]: than a configuration issue please read the section on submitting
Jul  5 12:54:20 opengnsys sh[21225]: bugs on either our web page at www.isc.org or in the README file
Jul  5 12:54:20 opengnsys sh[21225]: before submitting a bug.  These pages explain the proper
Jul  5 12:54:20 opengnsys sh[21225]: process and the information we find helpful for debugging..
Jul  5 12:54:20 opengnsys sh[21225]: exiting.
Jul  5 12:54:20 opengnsys dhcpd[21225]: ** Ignoring requests on vlan.216@eno2.  If this is not what
Jul  5 12:54:20 opengnsys dhcpd[21225]:    you want, please write a subnet declaration
Jul  5 12:54:20 opengnsys dhcpd[21225]:    in your dhcpd.conf file for the network segment
Jul  5 12:54:20 opengnsys dhcpd[21225]:    to which interface vlan.216@eno2 is attached. **
Jul  5 12:54:20 opengnsys dhcpd[21225]:
Jul  5 12:54:20 opengnsys dhcpd[21225]:
Jul  5 12:54:20 opengnsys dhcpd[21225]: Not configured to listen on any interfaces!
Jul  5 12:54:20 opengnsys dhcpd[21225]:
Jul  5 12:54:20 opengnsys systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, status=1/FAILURE
Jul  5 12:54:20 opengnsys dhcpd[21225]: If you think you have received this message due to a bug rather
J




The configuration file /etc/dhcp/dhcpd.conf includes a subnet declaration for the same network that use vlan.216@eno2 ¿?¿? Any idea of what I'm doing wrong?

Here it is the file:


ddns-update-style none;
option arch code 93 = unsigned integer 16;
option domain-name "example.org";
log-facility local7;
not-authoritative;

subnet 192.168.216.0 netmask 255.255.255.0 {
        authoritative;
        option broadcast-address        192.168.216.255;
        option routers                  192.168.216.1;
        next-server                     192.168.216.1;
}




I tried to add thinks like
DHCPD_INTERFACE="eno2";  
DHCPD_INTERFACE="vlan.216@eno2";  
DHCPD_INTERFACE="vlan.216";  

without lucky...

The result of ip a command:
root@opengnsys:/etc/default# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 6c:c2:17:85:39:e8 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.30/22 brd 192.168.3.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::6ec2:17ff:fe85:39e8/64 scope link
       valid_lft forever preferred_lft forever
3: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 6c:c2:17:85:39:e9 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::6ec2:17ff:fe85:39e9/64 scope link
       valid_lft forever preferred_lft forever
4: vlan.203@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 6c:c2:17:85:39:e9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.203.202/24 brd 192.168.203.255 scope global vlan.203
       valid_lft forever preferred_lft forever
    inet6 fe80::6ec2:17ff:fe85:39e9/64 scope link
       valid_lft forever preferred_lft forever
5: vlan.216@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 6c:c2:17:85:39:e9 brd ff:ff:ff:ff:ff:ff
    inet 192.168.216.202/24 brd 192.168.216.255 scope global vlan.216
       valid_lft forever preferred_lft forever
    inet6 fe80::6ec2:17ff:fe85:39e9/64 scope link
       valid_lft forever preferred_lft forever
root@opengnsys:/etc/default#




NETPLAN configuration

root@opengnsys:/etc/default# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
  ethernets:
          eno1:
           addresses: [192.168.0.30/22]
           gateway4: 192.168.0.1
           nameservers:
            addresses: [192.168.0.15]
          eno2:   {} #Connected to  VLANs
  vlans:
     vlan.216:
            id: 216
            link: eno2
            #dhcp4: true
            addresses: [192.168.216.202/24]
     vlan.203:
            id: 203
            link: eno2
            addresses: [192.168.203.202/24]
  version: 2



Sorry for the extension....

Any idea where to look for an error?
Thanks a lot!!!

* Ermengol *