This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

renew dhcp

Could someone refresh me(havn't used linux in a bit) with the command to release/renew a dhcp address for a nic card w/o restarting the box?

thought it was something like /etc/rc.d/init.d/network restart  but it doesn't seem to work.  May have been a distro specif comman. [:S]

Asl ver 4 


This thread was automatically locked due to age.
Parents
  • I believe the startup script for the dhcp client in ASL4 is /etc/rc.d/dhcp_eth.  By looking at the script it doesn't look like it accepts a "restart" option only "start" and "stop".
    I think the syntax for eth0 would be:

    /etc/rc.d/dhcp_eth 0 stop
    /etc/rc.d/dhcp_eth 0 start
     
    I don't use the dhcp client so I haven't tried it yet.  
Reply
  • I believe the startup script for the dhcp client in ASL4 is /etc/rc.d/dhcp_eth.  By looking at the script it doesn't look like it accepts a "restart" option only "start" and "stop".
    I think the syntax for eth0 would be:

    /etc/rc.d/dhcp_eth 0 stop
    /etc/rc.d/dhcp_eth 0 start
     
    I don't use the dhcp client so I haven't tried it yet.  
Children