Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.