Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No internet connection
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
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Thu Nov 04, 2010 7:20 pm    Post subject: No internet connection Reply with quote

I installed the base system, reboot, and now i'm trying to install the X system but can't emerge because i don't have an internet connection.
I emerged (while installing, i did it with Ubuntu live cd, that's why i had internet connection) ipw2200-firmware (i have an Intel Pro/Wireless 2200) and did what says here: http://en.gentoo-wiki.com/wiki/Iwlwifi (just a few things, since i have a newer kernel).

[ping -c 3 www.gentoo.org returns:
ping: unknown host www.gentoo.org]
Back to top
View user's profile Send private message
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Thu Nov 04, 2010 9:00 pm    Post subject: Reply with quote

I'm running /etc/init.d/net.eth0 start and i get:
Code:
Starting eth0
.......... ok
* No DHCP client installed [ !! ]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46296
Location: 56N 3W

PostPosted: Thu Nov 04, 2010 9:13 pm    Post subject: Reply with quote

JuszR,

You need to emerge dhcpcd or use static networking. I can't tell if your wireless setup is correct or not.

To emerge dhcpcd, boot your Ubuntu live cd, mount your partitions, don't forget /dev/ and /proc and do the chroot steps.
You will be back into your Gentoo jas as you were when you installed. Networking will work.

Now you can do
Code:
emerge dhcpcd
which is what Gentoo needs to start you network.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Thu Nov 04, 2010 9:30 pm    Post subject: Reply with quote

Ok, i used static networking (config_eth0... 192.168 netmask 255.... /etc/conf.d/net and comment out dhcp) and emerged dhcpcd.
My /etc/conf.d/net looks like:
config_eth0=( "dhcp" )

And i ran /etc/init.d/net.eth0 start
Everything is ok, till it says:
Quote:
dhcp
Running dhcpcd...
eth0: dhcpcd 4.0.15 starting
eth0: waiting for carrier
eth0: timed out [!!]


and is not connected.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46296
Location: 56N 3W

PostPosted: Thu Nov 04, 2010 9:56 pm    Post subject: Reply with quote

JuszR,

I've just realised you are wireless. eth0 is your first wired network port.
Boot gentoo and look in
Code:
ifconfig -a
to see what networking interfaces you have. Wireless interfaces are rarely ethX.

For the sake of this illustration, I'll assume its wlan0. You use whatever your interface is called.

You need a script in /etc/init.d to start wlan0. Create that with
Code:
cd  /etc/init.d
ln -s net.lo net.wlan0
This makes a symlink to the net.lo script, which runs as whatever its called as.

In /etc/conf.d/net you need something like config_wlan0=(" ... to allocate an IP to your wireless lan.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Thu Nov 04, 2010 11:17 pm    Post subject: Reply with quote

Fine, ethernet worked as you said. I'll worry about wireless later on, at least i have now an internet connection.
Now i'm dealing with X.

[By the way i forgot to say that the cable was unplugged, that's why it said "timed out". :P]

Thanks!
Back to top
View user's profile Send private message
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Fri Nov 05, 2010 12:37 pm    Post subject: Reply with quote

Well, i have the same problem once again after emerge -av net-misc/networkmanager (http://www.gentoo-wiki.info/HOWTO_NetworkManager), this didn't work and messed up the connection.
(I already have X and gnome-light).

Quote:
Bringing up eth0
dhcp
Running dhcpcd ...
dhcpcd: unknown option -- send
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46296
Location: 56N 3W

PostPosted: Fri Nov 05, 2010 7:27 pm    Post subject: Reply with quote

JuszR,

You can use NetworkManager *or* the init.d startup scripts but not both.

add NetwokManager to your default runlevel and remove any net.eth... or net.wlan... you may have there.
Its a very bad idea to have two tools attempting to manage the same devices.

Reboot and configure Network manager.

I have had mixed results with NetworkManager. It works on my two amd64 laptops and manages WiFi, Wired and 3G. On my x86 netbook, it fails miserably.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
JuszR
Tux's lil' helper
Tux's lil' helper


Joined: 03 Nov 2010
Posts: 134
Location: Tlv

PostPosted: Sat Nov 06, 2010 3:13 pm    Post subject: Reply with quote

I didn't know, thank you!
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