Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
regenerating net.eth0 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nanoo
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 150

PostPosted: Tue Feb 15, 2005 3:18 pm    Post subject: regenerating net.eth0 [SOLVED] Reply with quote

Hi,
It seems that in trying to create a second network interface, and using a symbolic link between my existing /etc/init.d/net.eth0 file and a new net.eth1 file, I have somehow erased my net.eth0 file. Perhaps I created the symbolic link in the wrong order... It was a Monday.... At any rate, in trying to secure wireless internet I'm now stuck with no internet access at all.
I'm wondering whether it's possible to regenerated that net.eth0 file. Is there a package I can run that can re-write the file? I've tried using the net-setup command that I used when I was installing gentoo, but my system can't seem to find it now...

Any help with this would be greatly appreciated. Thanks very much,

nanoo


Last edited by nanoo on Wed Feb 16, 2005 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Tue Feb 15, 2005 4:16 pm    Post subject: Reply with quote

Code:
emerge -f baselayout
tar xfvj /usr/portage/distfiles/rc-scripts-${VERSION}


Then you'll find it in the init.d directory created when you untarred the rc-scripts package.

Håkan
Back to top
View user's profile Send private message
nanoo
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 150

PostPosted: Tue Feb 15, 2005 6:09 pm    Post subject: Reply with quote

Ok, excellent - I'll try that when I get back from work.
Quick question: the VERSION - is it the version of the kernel, or the version of baselayout?

Thanks for your help,

nanoo
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Wed Feb 16, 2005 5:50 am    Post subject: Reply with quote

It's the version of the rc-scripts package. Don't worry, just use tab completion and you'll notice what version(s) you have.


Håkan
Back to top
View user's profile Send private message
nanoo
Apprentice
Apprentice


Joined: 23 Jan 2005
Posts: 150

PostPosted: Wed Feb 16, 2005 3:12 pm    Post subject: Reply with quote

Thanks so much for your help - I realized as I was looking at /usr/portage/distfiles that you had probably meant the version of rc-scripts, and after unpacking I found net.eth0 and after moving it to /etc/init.d and rebooting I now have access to the internet again.

Thanks again for your help,

nanoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum