Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to connect to Internet during Gentoo installation
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
Joakitex
n00b
n00b


Joined: 30 Aug 2012
Posts: 3
Location: Argentina

PostPosted: Fri Aug 31, 2012 1:31 am    Post subject: Unable to connect to Internet during Gentoo installation Reply with quote

Hello, I'm new to the forums and to the Linux world in general. I've finally decided to give Linux a try, so I downloaded the AMD64 Gentoo Minimal Install CD and booted from it, but even though I've been following the handbook step by step it seems impossible to get my computer connected to Internet.

This is what I've got (I don't know how to take a screenshot there, so I used my camera):

eth0 is being detected:
http://i.imgur.com/fZldk.jpg

ifconfig right after booting (the device is lo):
http://imgur.com/mpAcs

ifconfig -a (also after booting, device on top: eth0; at the bottom: lo):
http://imgur.com/Vgbvr

At this point, I am unable to ping anything

ifconfig after doing a net-setup eth0
http://imgur.com/GJZfP

Still unable to ping

dhcpcd:
http://imgur.com/Q74zJ

Still unable to ping

pppoe-setup and pppoe-start:
http://imgur.com/eoK8f

ping errors:
http://imgur.com/kupqB
http://imgur.com/tuvvu

This is basically my network setup:
http://i.imgur.com/yI8HF.jpg

And this is the info I've got on my router:
Removed as a precautionary measure. @Joakitex, if you decide to re-post, please obscure your public IP address. — JRG


As I stated before, I'm really new to Linux so please bare with my ignorance. Thank you.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Aug 31, 2012 1:43 am    Post subject: Reply with quote

Welcome to Gentoo!
I hope we can make you linux experience informative, although I should warn you Gentoo is a rather advanced distro. But don't worry. We try to be as friendly and helpful as we can.

first off, net.lo is a local thing that never goes to the net.

So your device is eth0. You should be able to just run netsetup on eth0 and then use ping -c 3 www.gentoo.org.

If this does not work, you might want to use the system rescue cd to install. It will not change anything but it will give you a GUI network interface. I would guess that most of us use it.

You do NOT need to mess around with pppoe. Your router does that for you.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Aug 31, 2012 1:56 am    Post subject: Reply with quote

After looking at your eth0 after net-setup, it looks like it should work. Can you ping your router (I mean before you try using the pppoe-* commands)? Use this command ping -c 3 192.168.2.1 the command you were using will not terminate on its own. You would need to stop it using ctr+c

If that works but websites fail that it is just name resolution problems. You can fix those by using this: echo nameserver 8.8.4.4 >> /etc/resolv.conf.head This will tell the install environment to use the Google name server.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Joakitex
n00b
n00b


Joined: 30 Aug 2012
Posts: 3
Location: Argentina

PostPosted: Fri Aug 31, 2012 2:34 am    Post subject: Reply with quote

After messing around with the net-setup and dhcpcd commands for a while, I got it working.

http://i.imgur.com/eAUc0.jpg

After this huge success for me, I rebooted and tried to do that again. As I was expecting, I failed. I have absolutely no clue what could have happened so it started working, but I guess I'll have to keep trying until I get it right.

This is the output for ping 192.168.2.1
Code:
ping 192.168.2.1
connect: Network is unreachable
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Fri Aug 31, 2012 2:42 am    Post subject: Reply with quote

Well, hopefully you can repeat your success. One thing to note is the command you want to use to kill something in your terminal is ctr+c. ctr+z keeps the process running and puts it in the background. For something like ping, you really don't want to leave it running as it will just drain your resources without providing any benefit.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sat Sep 01, 2012 7:06 am    Post subject: Reply with quote

What is the inside ip address of the router? 192.168.2.1?
That should be your default gateway, and on my system,
I direct dns queries there, too (the router proxies them
to whatever it gets from the ISP for a default nameserver).

After you do net-setup eth0 (and exit the little dialog
thing), do this:
Code:

route
grep nameserver /etc/resolv.conf


Post the results.
_________________
TIA
Back to top
View user's profile Send private message
Joakitex
n00b
n00b


Joined: 30 Aug 2012
Posts: 3
Location: Argentina

PostPosted: Sat Sep 01, 2012 7:13 pm    Post subject: Reply with quote

wcg wrote:
What is the inside ip address of the router? 192.168.2.1?
That should be your default gateway, and on my system,
I direct dns queries there, too (the router proxies them
to whatever it gets from the ISP for a default nameserver).

After you do net-setup eth0 (and exit the little dialog
thing), do this:
Code:

route
grep nameserver /etc/resolv.conf


Post the results.


Thanks, that helped me solve the problem. I wasn't setting up the gateway correctly (I was using the one that appeared on my router's config).

I solved it by doing this:

Code:
net-setup eth0
Manual setup
IP: 192.168.2.2
Broadcast: 192.168.2.255
Mask: 255.255.255.0
Gateway: 192.168.2.1
Nameserver: 200.63.155.91


Again, thanks a lot.
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Mon Sep 03, 2012 1:20 am    Post subject: Reply with quote

De nada.

/etc/conf.d/ has configuration files that will be used by setup
scripts in /etc/init.d/ that run at boot. You can create a confguration
file /etc/conf.d/net that will by read by a boot script that sets up
your ip address on eth0, netmask, broadcast address, and
default gateway.

For example, on my current (ipv4-only, not using dhcp) desktop I have this
in /etc/conf.d/net:

Code:

modules=ifconfig
config_eth0="192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255"
routes_eth0="default via 192.168.1.1"


192.168.1.1 is the lan-side ip address of the router.
_________________
TIA
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