Difference between revisions of "Dhcp client omnios"

From Asenjo
Jump to: navigation, search
(Created page with "Category:Omnios * release lease: <code><pre> ifconfig nicname dhcp release </pre></code> * request lease: <code><pre> ifconfig nicname dhcp start </pre></code> * dynami...")
 
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
* release lease:
 
* release lease:
<code><pre> ifconfig nicname dhcp release </pre></code>
+
<pre> ifconfig nicname dhcp release </pre>
  
 
* request lease:
 
* request lease:
<code><pre> ifconfig nicname dhcp start </pre></code>
+
<pre> ifconfig nicname dhcp start </pre>
  
 
* dynamic dns with dnsmasq (at least):
 
* dynamic dns with dnsmasq (at least):
Line 12: Line 12:
  
 
then release and request a dhcp lease. Your dnsmasq leases database contains then the host name, and the dnsmasq dns server is updated with the hostname
 
then release and request a dhcp lease. Your dnsmasq leases database contains then the host name, and the dnsmasq dns server is updated with the hostname
 +
 +
== update ==
 +
if you touch the file /etc/dhcp.interface_name (like vnic1, bge0, etc), you do not need to do anything. Just ifconfig nicname dhcp release/start and everything will just work

Latest revision as of 17:11, 15 March 2016


  • release lease:
 ifconfig nicname dhcp release 
  • request lease:
 ifconfig nicname dhcp start 
  • dynamic dns with dnsmasq (at least):

as indicated in /etc/default/dhcpagent, edit/create /etc/hostname.nicname with this info: inet hostname

then release and request a dhcp lease. Your dnsmasq leases database contains then the host name, and the dnsmasq dns server is updated with the hostname

update

if you touch the file /etc/dhcp.interface_name (like vnic1, bge0, etc), you do not need to do anything. Just ifconfig nicname dhcp release/start and everything will just work