Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What else is needed to set the networking?
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
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2789

PostPosted: Tue Jul 13, 2010 3:04 am    Post subject: What else is needed to set the networking? Reply with quote

Hi, ALL,
In the Gentoo Handbook "Automatically Start Networking At Boot", it is said:

Quote:

If you have several network interfaces, you need to create the appropriate net.eth1, net.eth2 etc. initscripts for those. You can use ln to do this:
Code:

# cd /etc/init.d
# ln -s net.lo net.eth1
# rc-update add net.eth1 default



I created link "net.eth1", but running:

Code:

ifconfig eth1 up


result in "Device not found".

Im trying to pick up wireless interface on my laptop....

What else is needed?

Thank you.
Back to top
View user's profile Send private message
Jimini
Guru
Guru


Joined: 31 Oct 2006
Posts: 595
Location: Germany

PostPosted: Tue Jul 13, 2010 3:29 am    Post subject: Reply with quote

Have you installed the correct drivers?
What network device do you use exactly? (lspci)
What error message do you get exactly? I have tried to reproduce it on a few systems here, but without success.

By the way, I am used to start network connections the same way as daemons ("/etc/init.d/net.ethX start") - what happens, if you try it that way?

Best regards,
Jimini
_________________
"The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents." (H.P. Lovecraft: The Call of Cthulhu)
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2789

PostPosted: Tue Jul 13, 2010 4:04 am    Post subject: Reply with quote

Hi, Jimini,
Doing "/etc/init.d/net.eth1 start" gives:

Quote:

network interface net.eth1 does not exist
Please verify hardware or kernel module


Whats also confusing is that when doing "lsmod" it shows correct driver, however, when doing "lspci -k" the driver is wrong.

Thank you.


Last edited by ONEEYEMAN on Tue Jul 13, 2010 4:16 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15991

PostPosted: Tue Jul 13, 2010 4:16 am    Post subject: Reply with quote

What is the output of ip l? Your wireless device may not be named eth1. Some drivers name it wlan0 or ath0, depending on the underlying hardware.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 2789

PostPosted: Tue Jul 13, 2010 4:18 am    Post subject: Reply with quote

Hu,
Code:

bash: ip: command not found


Thank you.
Back to top
View user's profile Send private message
gcyoung
Apprentice
Apprentice


Joined: 04 Jul 2007
Posts: 153
Location: England

PostPosted: Tue Jul 13, 2010 5:43 pm    Post subject: Reply with quote

You need to read *ALL* of the Gentoo Handbook on wireless networking. Ie info on wireless tools & wpa_supplicant etc
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Jul 13, 2010 10:12 pm    Post subject: Reply with quote

ONEEYEMAN wrote:
Code:
bash: ip: command not found


Code:
emerge -av sys-apps/iproute2
:)
_________________
lxg.de – codebits and tech talk
Back to top
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Tue Jul 13, 2010 10:23 pm    Post subject: Reply with quote

By the way: The net.* stuff works as follows: /etc/init.d/net.foo is the runlevel script for the device foo. ifconfig/ifup have nothing directly to do with the runlevel scripts. However, both require foo to already exist as a device.

The /etc/init.d/net.* scripts are configured (routes, gateways, dhcp, etc.) in /etc/conf.d/net (NB: only *one* file for all net.* scripts). To see what you can do there, have a look at /etc/conf.d/net.example or /usr/share/doc/openrc-*/net.example.

Therefore, if you don't see the device with ifconfig -a or ip l, you don't even need to bother trying to configure the device. ;)
_________________
lxg.de – codebits and tech talk
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