LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   net.eth0 problem (https://www.linuxquestions.org/questions/linux-newbie-8/net-eth0-problem-922189/)

csaenemy 01-05-2012 06:26 AM

net.eth0 problem
 
I've been building a Gentoo OS and mostly overcome problems along the way. Finally I rebooted and have a partially working system. Networking is not working. If I do
Quote:

cd /etc/init.d
ls -a
I see net.eth0 flashing red.
If I do
Quote:

less net.eth0
I get
Quote:

net.eth0: No such file or directory
If I do
Quote:

ln -s net.lo net.eth0
I get
Quote:

ln: failed to create a symbolic link 'net.eth0': File exists
What's happening here? Does it exist or does it not?
I am new to all this, my main OS being Pardus (easy beginners distro) so would appreciate if you treat me as a novice, I am at the lower end of the learning curve.

bigrigdriver 01-05-2012 08:27 AM

It may be that you simply need to start the interface. Try this as root:
Code:

/etc/init.d/net.eth0 stop
 /etc/init.d/net.eth0 start

If that doesn't work, here are instructions from the Gentoo documentation:
http://www.gentoo.org/doc/en/handboo...?part=4&chap=1

Good luck.

csaenemy 01-05-2012 08:51 AM

I keep getting the
Quote:

No such file or directory
message, so cannot start or stop. I've already been to the page you suggested, but no help. Problem still exists.

corp769 01-05-2012 09:50 AM

Could you show me the output of the following?
Code:

cd /etc/init.d
I am asking cause the sym link may exist, yet the original file it is supposed to point to may not exist.

Cheers,

Josh

csaenemy 01-05-2012 10:07 AM

@corp769

Contents of /etc/init.d are as follows:

bootmisc
consolefont
crypto-loop
devfs
dhcpcd
dmesg
fsck
functions.sh
git-daemon
hostname
hwclock
keymaps
killprocs
local
localmount
mdev
modules
mount-ro
mtab
net.eth0 (still flashing red)
net.lo
netmount
network
nscd
numlock
procfs
pydoc-2.7
pydoc-3.1
reboot.sh
root
rsyncd
savecache
shutdown.sh
sshd
staticroute
swap
swclock
sysctl
sysfs
syslog-ng
termencoding
udev
udev-dev-tarball
udev-mount
udev-postmount
urandom

corp769 01-05-2012 10:12 AM

Oops, major typo! Sorry about that.... Post the output of the following for me:
Code:

ls -al /etc/init.d/*

csaenemy 01-05-2012 10:18 AM

I removed net.eth0 and symlinked again and this has stopped it flashing. Hopefully I can move forward now

corp769 01-05-2012 10:53 AM

How did you symlink it in the first place? And what was it originally linked to?

csaenemy 01-05-2012 12:59 PM

To be honest I'm not sure what I did. I've been trying various things to get the network up and running, some from the Gentoo handbook and some based on what I've read in forums. Not sure how I ended up in that position. I'm still not networked, but I seem to be making progress. At least ifconfig now shows RX packets and TX packets. Previously there were none. As I said earlier, I am a complete noob, but I'll get there in the end. Gentoo is just a project for me to try and improve my understanding of how Linux works, so I've got plenty of time. :)


All times are GMT -5. The time now is 11:14 AM.