View previous topic :: View next topic |
Author |
Message |
luenqp n00b
Joined: 18 Jul 2014 Posts: 13
|
Posted: Wed Aug 29, 2018 1:15 am Post subject: Net configuration |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Aug 29, 2018 8:54 am Post subject: |
|
|
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 |
|
|
orion777 Apprentice
Joined: 15 Mar 2017 Posts: 207 Location: Riga, Latvia
|
Posted: Sat Sep 01, 2018 8:34 am Post subject: |
|
|
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 |
|
|
saturnalia0 Apprentice
Joined: 13 Oct 2016 Posts: 161
|
Posted: Sun Sep 02, 2018 4:33 pm Post subject: |
|
|
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 |
|
|
|