[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP request IP address



Am Montag, 24. Februar 2014, 14:07:22 schrieb Ric Moore:
> Which file do you edit to request an IP address from a DHCP server? It's
> been awhile! Ric

Try execute "dhclient xxx0 IP-of-Server" as root. For example

dhclient eth0 192.168.1.1 

or 

dhclient wlan0 192.168.1.1
 you 
You can request each interface as needed.

If you want it automatically at boot, edit /etc/network/interfaces.

The syntax i.e. for eth0 is 

auto io eth0

iiface eth0 dhcp

If you do so, each command "/etc/network/interfaces restart" let you request 
an IP from the dhcp-server. All interfaces named in the "auto"-line are 
initialized new then.

Hope this helps.

Good luck!

Hans

 


Reply to: