LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Yoper
User Name
Password
Yoper This forum is for the discussion of Yoper Linux.

Notices


Reply
  Search this Thread
Old 11-09-2004, 07:10 PM   #1
jasmith
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
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
 
Old 11-10-2004, 11:13 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
ifconfig needs to be given some extra parameters, eg at least an ip number..

Try using ifup eth0 and ifdown eth0 instead..

 
Old 11-10-2004, 01:40 PM   #3
jasmith
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
it says that the command ifdown or ifup is not found. do i have to set a path for it?
 
Old 11-10-2004, 02:04 PM   #4
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
well, try this:
ifconfig eth0 up (or /sbin/ifconfig eth0 up)


R
 
Old 11-10-2004, 02:16 PM   #5
jasmith
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 11-10-2004, 02:37 PM   #6
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
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
 
Old 11-10-2004, 02:57 PM   #7
jasmith
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 11-10-2004, 03:42 PM   #8
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
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.
 
Old 11-10-2004, 04:39 PM   #9
jasmith
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks. Do you know how to auotomatically detect the gateway for use on other lans sorta how it does it at boot time?
 
Old 11-10-2004, 08:19 PM   #10
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
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.
 
Old 12-01-2004, 10:16 PM   #11
postal26
Member
 
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Red face 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
 
Old 12-02-2004, 08:56 PM   #12
ralvez
Member
 
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
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
 
Old 12-06-2004, 01:28 PM   #13
postal26
Member
 
Registered: Dec 2003
Location: north carolina
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Wink

Still no luck. Guess i'll just have to kill dhcpcd and restart it!

Thanks for trying rick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake is switching the eth1 and eth0 interfaces... how can I switch them back? LaptopLinux Mandriva 3 03-28-2005 09:23 PM
How make a eth0 connection between 2 machines hraposo Slackware 2 10-22-2004 04:36 PM
Linux slow to realize connection is back up wytiger Linux - Networking 0 09-28-2004 06:36 PM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
How to shorten the timeout for an eth0 connection? Mad Merlin Linux - Networking 7 08-12-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Yoper

All times are GMT -5. The time now is 09:13 AM.

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