Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no net.eth1 script in /etc/init.d/
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
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Mon May 01, 2006 1:35 pm    Post subject: no net.eth1 script in /etc/init.d/ Reply with quote

When i installed gentoo , i only had 1 network card , some via onboard card.
i have added a new card to my computer , an realtek , recompiled my kernel.
lspci recognized it
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
and my old one
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74).

actually , what i am tring to do is make a router out of this computer.
the problem is that i don`t know how to configure eth1.
there is no /etc/init.d/net.eth1 script.
how do i create one?
Back to top
View user's profile Send private message
mutlu_inek
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2004
Posts: 141

PostPosted: Mon May 01, 2006 1:39 pm    Post subject: Reply with quote

Just make a symlink to eth0:
Code:
ln -s /etc/init.d/net.lo /etc/init.d/net.eth1

_________________
www.eff.org - www.fsf.org - www.againsttcpa.com - Video
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Mon May 01, 2006 2:01 pm    Post subject: Reply with quote

or you can actually just copy it

cp /etc/init.d/net.eth0 /etc/init.d/net.eth1
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon May 01, 2006 6:44 pm    Post subject: Reply with quote

bobspencer123 wrote:
or you can actually just copy it

cp /etc/init.d/net.eth0 /etc/init.d/net.eth1


That is a very very bad idea as it won't get updated when net.lo does.
symlinks are the answer.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
bobspencer123
Guru
Guru


Joined: 19 Dec 2005
Posts: 544

PostPosted: Mon May 01, 2006 8:17 pm    Post subject: Reply with quote

ok thanks for the tip I didn't know that sorry for any incorrect info.
Back to top
View user's profile Send private message
thestick
Guru
Guru


Joined: 07 Apr 2006
Posts: 531
Location: /dev/urandom

PostPosted: Tue May 02, 2006 12:21 pm    Post subject: Reply with quote

copiyng solved :)
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