Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2019 18:45:15 -0700
From:      "Kurt Buff - GSEC, GCIH" <kurt.buff@gmail.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   dhclient question
Message-ID:  <CADy1Ce4i%2BvAFbxwHQdWHdjrK6WpuBnaEPuzgPAo1vvP4m3tabg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I've got a FreeBSD 12-RELEASE-p1 VM running in VMware Workstation Pro.

I traveled from network to another, and wanted to refresh my IP address
after suspending and resuming the VM.

To do this, I performed the following after resuming the VM:
     rm /var/db/dhclient.leases/em0
then
     service dhclient restart em0

This seemed to work. However, ifconfig reveals something unexpected
[image: image.png]

After I saw that, I did:
     ifconfig em0 down
     ifconfig em0 up

and there was no change in the results.

It seems a bit weird.

Anyone know why this doesn't work as expected?

Is there a better way of releasing/renewing the lease?

Kurt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADy1Ce4i%2BvAFbxwHQdWHdjrK6WpuBnaEPuzgPAo1vvP4m3tabg>