[dhclient] Continuous vpn disconnections

Paul Procacci pprocacci at gmail.com
Wed Aug 26 06:36:16 UTC 2020

Hey all,

I'm having a problem I'm not entirely sure how to solve.
I have a vnet jail that grabs an ip address from my dhcp server using
dhclient upon startup.
Once logged into that vnet jail, I start an openvpn connection with a
foreign machine.
All works from this point forth for anywhere from 20 minutes to 30 minutes
before my vpn connection gets terminated.

This is always proceeded with the following in the log files:

Aug 25 23:06:47 x dhclient[7399]: New IP Address (epair2b):
Aug 25 23:06:47 x dhclient[7400]: New Subnet Mask (epair2b):
Aug 25 23:06:47 x dhclient[7401]: New Broadcast Address (epair2b):
Aug 25 23:06:47 x dhclient[7402]: New Routers (epair2b):

dhclient isn't as verbose as I'd like, but if the logs are to be believed,
then it shouldn't be getting a new (but same) ip address every 20-30
minutes.  I've since removed the dhcp assignments to get a stable vpn
connection and am still testing it, but like the idea of centrally managing
what on my network gets what ip address.

Why is dhclient behaving this way?
Any thoughts?
Thanks in advance.

[Host] Networking
mtu 1500
        ether d0:50:99:d4:b9:fe
        inet netmask 0xffffff00 broadcast
        groups: vlan
        vlan: 2 vlanpcp: 0 parent interface: igb1
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

bridge2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
        ether 02:b4:bd:ea:4e:02
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto stp-rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
        member: epair2a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 11 priority 128 path cost 2000
        member: vlan2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 7 priority 128 path cost 2000000
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>

[Host] dhcp.conf
option domain-name "myhome";
option domain-name-servers;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet netmask {
  option routers;
  option broadcast-address;


[Vnet Jail] pertinent rc.conf



:(){ :|:& };:

More information about the freebsd-questions mailing list