LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2013, 01:16 AM   #1
vikramkerkar
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 01-28-2013, 06:19 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
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.
 
1 members found this post helpful.
Old 01-28-2013, 09:34 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,
Welcome to LQ!

Quote:
Originally Posted by vikramkerkar View Post
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using arp for converting ip address to mac address in kernel module programing in c karan2386 Linux - Kernel 1 03-31-2012 05:02 AM
Program to assign globa lIPv6 address and bind() to the previously assigned address. mwnn Linux - Networking 2 10-07-2010 02:29 AM
WARNING: IP: Hardware address '***' trying to be our address 172.016.104.065 sunram Solaris / OpenSolaris 1 05-30-2008 08:51 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration