View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Feb 07, 2006 2:03 pm 
Offline
Joined: Tue Jul 26, 2005 2:49 pm
Posts: 26
KnoppMyth version R5A16.

I can't get eth0 to start up on boot.

I have run netcardconfig, select 'no' on the first prompt so I can use static ip addresses, enter in all the info, and exit. (The ip I chose is 192.168.2.103) I then run ifconfig to confirm eth0 is up and is correct with the ip addresses I just entered (there is also an entry showing for lo - the loopback at ip 120.0.0.1). The address of 192.168.2.103 is also what I entered in the mythtv-setup->general section for the frontend and backend addresses.

Everything works - meaning I can ssh in from another machine as well as being able to select Watch TV on the front end.

Then whenever I reboot, the frontend can't connect to the backend server anymore (giving me a message about making sure I have the right ip in the setup.) In the sea of messages that scroll by on startup, I did catch a glimpse of "Failed to bring up eth0".

I run ifconfig to check on eth0, and see that eth0 is not showing anymore, only the loopback entry is there.

I then need to manually bring up eth0 by using the command: "ifup eth0"
Then all networking works again - until the next reboot. Can someone please help?

Here is the content of my ifcfg-eth0 file:


Code:
root@mythtv:~# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.2.103
NETMASK=255.255.255.0
NETWORK=192.168.2.0
BROADCAST=192.168.2.255
ONBOOT=yes



Here is the content of the interfaces file:


Code:
root@mythtv:~# more /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback


# I added the auto eth0 line below. It wasn't in the original file.
# But it doesn't seem to make a difference,
# eth0 won't start up automatically either way.
auto eth0

iface eth0 inet static
        address 192.168.2.103
        netmask 255.255.255.0
        network 192.168.2.0
        broadcast 192.168.2.255
        gateway 192.168.2.1



Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 07, 2006 3:21 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
No help here, other than to say that I'm having the same problem. I have to do a "pump" command after bootup. I tried putting into bootmisc.sh, but that's apparently "too early" to help, and I get (another) "network unavailable".

The command to fix is:
pump -i eth0

Then I (re) run my smbmounts and start samba (it fails if I set it to auto run, because the network isn't there...)

I'm on R5A26, using onboard ethernet on MSI K8N NEO4-F (non-platinum) mobo.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 11, 2006 6:12 pm 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
Anyone find a solution yet??? I am on R5A26. My onboard NIC died after a power outage... So I put in a new one, and it works only if I run netcardconfig after every reboot.....

Help please....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 11, 2006 7:02 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Come on people, work a little harder on those searches. It seems like I've had to post the same simple answer to 4 different threads in the last couple weeks. :?

Figure out what kernel module your card needs and make sure that it gets loaded before the ethernet start up is attempted. Using the lsmod command before and after you bring the network up is a good start.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 6:10 am 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
The fundamental problem with search is that everyone thinks and words things differently. Just because we posed the question, doesn't mean we didn't search.

Might have been easier and better for the community had you just posted the answer, rather than criticize, because we asked a question.

Anywone posting the answer would be greatly appresiated. :D


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 8:27 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
in /etc/network/interfaces you don't have to use two seperate auto lines for the loopback and eth0

auto lo eth0

in /etc/modules.conf put

alias eth0 <module>

where <module> is the kernel module that your card uses.

if your using dhcp, add eth0 to to auto line like above and put this in interfaces.

iface eth0 inet dhcp

do a "man interfaces" for more information


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 10:54 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
scanman717 wrote:
The fundamental problem with search is that everyone thinks and words things differently.

Demonstratably not true. Just for instance, ever seen a game show called "Family Feud"? The answers to the survey questions show remarkable clustering. This is also the whole principle behind the keyword searching they tried to teach you for using a library card catalog in middle/high school English.

Also, as I've said before, 9 times out of 10 searching for the exact words that people put in the titles of their posts will immediately find a relevant match. In this case a search for "eth0" and "boot" would have found one of the threads I was talking about in the top 5: http://mysettopbox.tv/phpBB2/viewtopic.php?t=8844&highlight=eth0+boot I find this result extremely frustrating, if people can put these words in their titles, why can't they use them successfully in their searches and avoid making yet another FAQ posting? :?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 11:57 am 
Offline
Joined: Wed Dec 14, 2005 4:42 pm
Posts: 59
For those who are having the same problem and want a solution rather than a bunch of flames and archaic tech speak:

at console:
Quote:
dmesg | grep eth

look at the first line it will have the kernel module name followed by the interface name, in my case:
Quote:
natsemi eth0: NatSemi DP8381[56] at 0xfa011000 (0000:00:08.0), 00:14:6c:2e:69:d3, IRQ 19, port TP.

natsemi is what we are looking for..

now
Quote:
su
nano /etc/modules

go about to the middle of the file and add natsemi (or whatever yours says) to a line of it's own. In my case I put it just prior to the soundcore entry.
ctl-O to write the file ad ctl-X to exit.

reboot and see if that helps.

See tjc, was that so hard????


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 2:35 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
scanman717 wrote:
at console:
Quote:
dmesg | grep eth


????
Here's what I get:
Code:
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.35.
eth0: forcedeth.c: subsystem: 01462:7125 bound to 0000:00:0a.0


Do I put "forcedeth" into the modules file?

I'm in the boat where: "at bootup, it says 'network unavailabl', but later if I issue a pump, it'll work"


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 6:40 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
looks like your module should be: nvnet
http://forums.debian.net/viewtopic.php? ... 21d02c985a

when you do a "lsmod" after the ehternet card is up, do you see the nvnet module?

scanman717, "archaic tech speak" ? Were not talking about gardening. The terminology is basic and directly related to the subject.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 7:50 pm 
Offline
Joined: Fri Nov 18, 2005 9:22 am
Posts: 777
Location: spencerport, ny (USA)
mac wrote:
looks like your module should be: nvnet
http://forums.debian.net/viewtopic.php? ... 21d02c985a

when you do a "lsmod" after the ehternet card is up, do you see the nvnet module?

Hmmm... Nope.

But I do see this:
Code:
forcedeth              18304  0


I can try that one, but it'll have to wait until tomorrow. Housewives is on in 14 min, and I'd take -WAF points if I messed that up.

I'll look for the forcedeth before/after my "fix" script, to see if that's the net result of my "pump" command that I perform manually after it boots.

BTW, it's the onboard lan on a "near-dragon" MSI K8N Neo4-F (non-Platinum).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 12, 2006 9:02 pm 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
figued you had already tried that.. yes add an it your modules.conf.
ie..

alias eth0 forcedeth


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu