Yoper This forum is for the discussion of Yoper Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-09-2004, 08:10 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 12
Rep:
|
eth0 back up but no connection
On bootup it automatically connects but when I do ifconfig eth0 down and bring it back up with ifconfig eth0 up, I can't connect to anything. Any ideas out there?
Thanx
|
|
|
11-10-2004, 12:13 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
ifconfig needs to be given some extra parameters, eg at least an ip number..
Try using ifup eth0 and ifdown eth0 instead..
|
|
|
11-10-2004, 02:40 PM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 12
Original Poster
Rep:
|
it says that the command ifdown or ifup is not found. do i have to set a path for it?
|
|
|
11-10-2004, 03:04 PM
|
#4
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
well, try this:
ifconfig eth0 up (or /sbin/ifconfig eth0 up)
R
|
|
|
11-10-2004, 03:16 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Posts: 12
Original Poster
Rep:
|
Re: eth0 back up but no connection
Quote:
Originally posted by jasmith
On bootup it automatically connects but when I do ifconfig eth0 down and bring it back up with ifconfig eth0 up, I can't connect to anything. Any ideas out there?
Thanx
|
That is what i did.
ifconfig eth0 up.
|
|
|
11-10-2004, 03:37 PM
|
#6
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
You did not read my posting carefully enough ;-)
See I also indicated /sbin/ifconfig eth0 up
Try that.
Failing that also try this
<code>
whereis ifconfig
</code>
to find the path to the program
R
|
|
|
11-10-2004, 03:57 PM
|
#7
|
LQ Newbie
Registered: Jul 2004
Posts: 12
Original Poster
Rep:
|
Quote:
Originally posted by ralvez
You did not read my posting carefully enough ;-)
See I also indicated /sbin/ifconfig eth0 up
Try that.
Failing that also try this
<code>
whereis ifconfig
</code>
to find the path to the program
R
|
The problem is not with finding ifconfig. I can run it and it will show the interfaces. The problem is that when I pull down eth0 and bring it up again there is no connection to the internet which i had at bootup.
Sorry if I didn't communicate my problem clearly.
|
|
|
11-10-2004, 04:42 PM
|
#8
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
OK, I understand now.
After you bring the interface up does it have an address? To make sure it does run /sbin/ifconfig (no parameters).
If it does assing a gateway to the internet pointing to the machine that is the inernet gateway like this:
route add default gw <address of the gateway> ethX
where X is the inteface of the gateway.
That should get you connected.
Hope this helps.
R.
|
|
|
11-10-2004, 05:39 PM
|
#9
|
LQ Newbie
Registered: Jul 2004
Posts: 12
Original Poster
Rep:
|
Thanks. Do you know how to auotomatically detect the gateway for use on other lans sorta how it does it at boot time?
|
|
|
11-10-2004, 09:19 PM
|
#10
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
Well as far as I know it is done by a script. I use Slackware and I have a small network; therefore, I do not use DHCP and I have a static IP for each machine. With that, then, I have a specific address for the gw.
If you set up your system to run on DHCP I believe it should do it for you. Enabling your system on DHCP depends a bit on your distro, and if you are using something like Mandrake or SuSE it's very easy; other distros could be a bit more involed.
Hoe this helps.
R.
|
|
|
12-01-2004, 11:16 PM
|
#11
|
Member
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33
Rep:
|
ifdown and ifup = debian
ifdown and ifup is for debian bud =)
I have the same issue after ifconfig eth0 down. I've gotta reboot to get a connection to the n3t
|
|
|
12-02-2004, 09:56 PM
|
#12
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
Just a thought ... do you have your /etc/hosts file set up?
It should have something like:
127.0.0.1 localhost # that is the loopback
192.168.1.1 it2web it2web # this is the gateway
192.168.1.2 spitfire spitfire # this is a computer in the network
So when you get the eth0 up it does know its ip.
HOpe this helps.
Rick
|
|
|
12-06-2004, 02:28 PM
|
#13
|
Member
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33
Rep:
|
Still no luck. Guess i'll just have to kill dhcpcd and restart it!
Thanks for trying rick.
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|