dhclient does not assign ip to second interface

magnum

Member
Aug 31, 2021
42
0
11
35
Hello,
is it possible to switch to dhcpcd?

I have a problem where only one of my two nic's are getting an ip-address by dhclient. Even if i invoke directly with:
Code:
dhclient -v vmbr3

Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/vmbr1/ac:1f:6b:e9:7e:56
Sending on   LPF/vmbr1/ac:1f:6b:e9:7e:56
Listening on LPF/vmbr3/ac:1f:6b:e9:7e:58
Sending on   LPF/vmbr3/ac:1f:6b:e9:7e:58
Sending on   Socket/fallback
DHCPREQUEST for 10.181.116.181 on vmbr1 to 255.255.255.255 port 67
DHCPDISCOVER on vmbr3 to 255.255.255.255 port 67 interval 5
DHCPREQUEST for 10.181.116.181 on vmbr1 to 255.255.255.255 port 67
DHCPACK of 10.181.116.181 from 10.181.119.254
bound to 10.181.116.181 -- renewal in 18334 seconds.
 
Found a Solution.. One has to write explicit dhclient-conf..

Now, call it with:

dhclient -cf /etc/dhcp/dhclient.conf -v vmbr1 --no-pid dhclient -cf /etc/dhcp/dhclient-vmbr3.conf -v vmbr3 --no-pid



Bash:
:/etc/dhcp# cat dhclient.conf

interface "vmbr1" {
send host-name = gethostname();
select-timeout 3;
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes, ntp-servers;
}

#send host-name = gethostname();
#request subnet-mask, broadcast-address, time-offset, routers,
      #  domain-name, domain-name-servers, domain-search, host-name,
      #  dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
     #   netbios-name-servers, netbios-scope, interface-mtu,
      #  rfc3442-classless-static-routes, ntp-servers;



:/etc/dhcp# cat dhclient-vmbr3.conf

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

interface "vmbr3" {
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes, ntp-servers;
}

and
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!