LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not getting IP address (https://www.linuxquestions.org/questions/linux-newbie-8/not-getting-ip-address-4175447498/)

vikramkerkar 01-28-2013 01:16 AM

Not getting IP address
 
Hello,
On my device, I am using Linux-3.3.7.
when I boot the device, it give some IP addr, but at run time when I unplug ether-net cable and re-insert it, device is unable to get any IP addr.

In case, I use 'ifup' command, it brings up network and get some IP addr.
But I don't want to use 'ifup' command continuously to check for network.

If anyone can, please give me some hint to solve this problem.

camorri 01-28-2013 06:19 AM

Quote:

In case, I use 'ifup' command, it brings up network and get some IP addr.
But I don't want to use 'ifup' command continuously to check for network.
This is the way a normal system work. If you don't want to re-activate the interface after you disconnect it, either don't disconnect it, or us a program like Network Manager, or WICD. I use WICD, it has an option to re-connect 'Automatically reconnect' on the ethernet port when a signal is lost.

onebuck 01-28-2013 09:34 AM

Member Response
 
Hi,
Welcome to LQ!

Quote:

Originally Posted by vikramkerkar (Post 4878803)
Hello,
On my device, I am using Linux-3.3.7.
when I boot the device, it give some IP addr, but at run time when I unplug ether-net cable and re-insert it, device is unable to get any IP addr.

In case, I use 'ifup' command, it brings up network and get some IP addr.
But I don't want to use 'ifup' command continuously to check for network.

If anyone can, please give me some hint to solve this problem.

You might want to look at;
Quote:

ifplugd <- 'ifplugd is a Linux daemon which will automatically configure your ethernet device when a cable is plugged in and automatically unconfigure it if the cable is pulled. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. ifplugd interfaces with your distribution's native network configuration utilities.'
The above link is from Network section of SlackwareŽ-Links. More than just Slackware links!

HTH!


All times are GMT -5. The time now is 03:02 PM.