top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to obtain a new IP address from DHCP server in Linux ?

+1 vote
110 views
How to obtain a new IP address from DHCP server in Linux ?
posted Jun 11, 2014 by Vikram Luthra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Below are two different methods of how this can be done at the command line:

ifconfig eth0 down

Running the above command would take the eth0 interface (the first network card) down. Which is the same as releasing the IP address from that network card.

ifconfig eth0 up

After the interface is taken down, typing in the above command would bring that interface back up.

or

dhclient eth0
answer Jun 12, 2014 by Samardeep Acharya
Similar Questions
0 votes

My CentOS-7 home server has a static IP address.

Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?

0 votes

In my /etc/network/interfaces file has dhcp interface set like this

 #auto eth1
 iface eth1 inet dhcp

If I don't want this interface be enabled automatically at startup (as it has been configured without auto statement) how do I enable it in command line?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...