Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Connect to Local Network
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
gentoosurfer
n00b
n00b


Joined: 15 Oct 2019
Posts: 1

PostPosted: Tue Oct 15, 2019 7:19 pm    Post subject: Can't Connect to Local Network Reply with quote

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
View user's profile Send private message
jecepede
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 239

PostPosted: Tue Oct 15, 2019 7:30 pm    Post subject: /etc/resolve Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Oct 15, 2019 8:02 pm    Post subject: Reply with quote

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
Code:
ping google.com
fails but
Code:
ping 216.58.204.78
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
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