Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Net configuration
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
luenqp
n00b
n00b


Joined: 18 Jul 2014
Posts: 13

PostPosted: Wed Aug 29, 2018 1:15 am    Post subject: Net configuration Reply with quote

Good day, I have done step by step gentoo handbook but the problem persists, I cant connect to internet, in /etc/conf.d I have
Code:
config_enp9s0="192.168.8.24 netmask 255.255.255.0"
routes_enp9s0="default via 192.168.8.1"
dns_servers_enp9s0="192.168.8.1 8.8.8.8"

What is the problem please help

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed Aug 29, 2018 8:54 am    Post subject: Reply with quote

luenqp ...

that should work, with the assumption that 'net.enp9s0' exists, and is in the runlevel:

Code:
# ln -s /etc/init.d/net.lo /etc/init.d/net.enp9s0
# rc-update add net.enp9s0 default
# /etc/init.d/net.enp9s0 start

If you've already done this, then you'll need to provide more information (ie, 'ip addr show dev enp9s0', 'dmesg' of the driver in use for that interface, 'lspci -v', etc).

Also, you can use CIDR notation to define mask:

/etc/conf.d/net:
config_enp9s0="192.168.8.24/24"

HTH & best ... khay
Back to top
View user's profile Send private message
orion777
Apprentice
Apprentice


Joined: 15 Mar 2017
Posts: 163
Location: Riga, Latvia

PostPosted: Sat Sep 01, 2018 8:34 am    Post subject: Reply with quote

If You have NetworkManager or dhcpcd running, they will override this configuration by its own. Unfortunately, it is not mentioned in the handbook.
Back to top
View user's profile Send private message
saturnalia0
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2016
Posts: 94

PostPosted: Sun Sep 02, 2018 4:33 pm    Post subject: Reply with quote

Quote:

If You have NetworkManager or dhcpcd running, they will override this configuration by its own. Unfortunately, it is not mentioned in the handbook.


DNS config being overwritten should not be the issue - if anything dhcpd will overwrite it with the DNS servers configured on the router, which should be correct. In any case, /etc/resolv.conf is the ultimate resolver. See man resolv.conf(5). Write your DNS servers of choice to it and then chattr +i /etc/resolv.conf and no software will overwrite it.
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