LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2007, 10:23 PM   #1
reena
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
ip address configuration


everytime when i boot my system i have to config my IP address by this command ifconfig eth0 ip address up..
but after some time it does not show me ip address by this command ifconfig..
so anybody tell me how to short out this problem.

Last edited by reena; 01-24-2007 at 10:25 PM.
 
Old 01-24-2007, 10:42 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Do you have dhclient or dhcpc process running? Check with 'pgrep dhc' . I guess it resets IP address.
 
Old 01-24-2007, 11:27 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I don't see which distro you have. For some, distro's you can put your ifconfig commands in a standard network startup script so that it runs when you boot. On others, you can use a GUI network devices configuration program that either produces a similar script, or creates a configuration file in /etc/sysconfig/network/.
Quote:
but after some time it does not show me ip address by this command ifconfig
Do you mean that after using ifconfig to set an IP address, when you check what you IP address is using ifconfig, that you don't have an IP address?

Could you try a different unused IP address? I am wondering if another host may have used that IP address.

Side note: Filling in the Distribution field in the User Profile on this site can help solicit the best advice from users familiar with the distribution you are using.

Last edited by jschiwal; 01-24-2007 at 11:29 PM.
 
Old 01-24-2007, 11:48 PM   #4
reena
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jschiwal
I don't see which distro you have. For some, distro's you can put your ifconfig commands in a standard network startup script so that it runs when you boot. On others, you can use a GUI network devices configuration program that either produces a similar script, or creates a configuration file in /etc/sysconfig/network/.
Do you mean that after using ifconfig to set an IP address, when you check what you IP address is using ifconfig, that you don't have an IP address?

Could you try a different unused IP address? I am wondering if another host may have used that IP address.

Side note: Filling in the Distribution field in the User Profile on this site can help solicit the best advice from users familiar with the distribution you are using.


how ifconfig command is put in standered network startup?? i tried to config it through GUI also but after activationg my network configuration after 2 min it deactivate..
after using ifconfig to set an IP address when i check my ip address using ifconfig it does not show me IP address information ..
no other is using that ip address..
 
Old 01-24-2007, 11:58 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What does your NIC connect to? Are you running on a laptop on batteries?

Do you have a built in NIC interface of a PCMCIA card?

Which distro are you using? Is there anything mentioned in the logs, such as /var/log/messages?

I'm wondering if you may have a bad ethernet cable. It doesn't sound right that a standard NIC device will suddenly loose it's IP address.

I asked about a laptop, because some laptops will shutdown the NIC device as a power saving feature to save battery power. This may happen after being idle a short period of time.
 
Old 01-25-2007, 12:46 PM   #6
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Do you disable everything related with dynamic IP and DHCP?
 
Old 04-21-2007, 06:11 PM   #7
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

On the right side of this web page/web site is a box called "MY LQ". Second line "Edit Profile". Please click on it. Change YOUR profile to list YOUR present Distro(s). Thank YOU my friends.
 
  


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
Firefox Configuration via url address box b18b Linux - Software 3 02-06-2007 05:36 PM
Network configuration returns MAC address in the lower case Julianus Fedora 0 11-14-2004 02:38 PM
ip address configuration disinformation Debian 2 02-18-2004 06:47 AM
ip address configuration Goma_2 Linux - Networking 4 10-13-2003 03:40 AM
Mandrake 8.2 - modem configuration - IP address? (not a winmodem) Haldir Linux - Newbie 2 05-07-2002 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:06 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