Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom mac address for jail #159

gregf opened this issue Apr 2, 2017 · 3 comments


Copy link

@gregf gregf commented Apr 2, 2017

Is it possible to customize the mac address for a jail?

@olevole olevole self-assigned this Apr 2, 2017

This comment has been minimized.

Copy link

@olevole olevole commented Apr 2, 2017

You can change it only for vnet/VIMAGE-based jail.

Unfortunately, I have not yet made possible to change this through a dialog or cli, but you can change it directly in SQLite3. For example, if jail - vnet1, select current MAC :

% sqlite3 ~cbsd/jails-system/vnet1/local.sqlite "SELECT nic_hwaddr FROM jailnic"

To change it:

% sqlite3 ~cbsd/jails-system/vnet1/local.sqlite "UPDATE jailnic SET nic_hwaddr='02:ff:f0:e8:b4:b4'"

PS: Since CBSD 11.0.10, MAC address for vnet and bhyve is random-generated.


This comment has been minimized.

Copy link

@gregf gregf commented Apr 3, 2017

Thank you! Hope this makes it into the tui in the future.

olevole added a commit that referenced this issue Apr 11, 2017
Ability to change mac address for vnet-based jail. Issue #159

This comment has been minimized.

Copy link

@olevole olevole commented Apr 11, 2017

Will be available in CBSD 11.0.15

@olevole olevole closed this Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.