View previous topic :: View next topic |
Author |
Message |
gentoosurfer n00b

Joined: 15 Oct 2019 Posts: 1
|
Posted: Tue Oct 15, 2019 7:19 pm Post subject: Can't Connect to Local Network |
|
|
I have gentoo running on a small device running embedded software. For some reason, I can't ping any other machine in my local network, let alone outside networks. I can ping myself and the loopback address. I have read in other threads on this forum that this issue can happen with a bad resolv.conf file, but this device does not have a resolv.conf file. I have tried creating a resolv.conf file in \etc\ but it does not solve the problem and is deleted upon reboot. Has anyone else experienced a similar issue? |
|
Back to top |
|
 |
jecepede Apprentice


Joined: 19 Nov 2002 Posts: 239
|
Posted: Tue Oct 15, 2019 7:30 pm Post subject: /etc/resolve |
|
|
Aloha !
Uhmmm I think the : /etc/resolv.conf : file is automatically created by the net-scripts.
So make sure your : /etc/conf.d/net : contains something like this :
Code: | .
.
.
dns_servers_NETCRD="8.8.8.8"
.
.
.
|
where NETCRD is the name of your network card. For example : enp2s0
Oh and do not forget to add the default routes in the same : /etc/conf.d/net : file like so :
Code: | .
.
.
routes_NETCRD="default via x.x.x.x"
.
.
.
|
And fore even more fantastic info you can check out the manual : https://wiki.gentoo.org/wiki/Handbook:X86/Full/Networking
Cheeeeeeeeeeeeeeers,
Jecepede _________________ I've got that retro-feeling :
http://instagram.com/jecepede
Check out my YouTube channel
https://www.youtube.com/jecepede |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55215 Location: 56N 3W
|
Posted: Tue Oct 15, 2019 8:02 pm Post subject: |
|
|
gentoosurfer,
Welcome to Gentoo.
What is the name of the interface as shown by ifconfig?
How do you do your network setup?
/etc/resolv.conf tells the system where to go to turn domain names like google.com into IP addresses like 216.58.204.78.
Both work.
If fails but works, you hawe a name resolution problem.
If neither work, its something more fundamental. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
|