Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow and not inicialzing with System Internet
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
m1shake
n00b
n00b


Joined: 08 Jan 2022
Posts: 17

PostPosted: Sat Oct 08, 2022 1:25 am    Post subject: Slow and not inicialzing with System Internet Reply with quote

HI!
I got my new fresh install running everything fine.
But some issues with the internet.
Im using the DHCPCD but when i reboot my computer it doesnt work out-of-the-box, i need to run doas dhcpcd enp3s0 to run and my connection is slow alot, not usual to my internet, i tested it on another computer and still good.
The daemon off dhcpcd is already add at rc-service.
like 80mb/s normal and i got only 8mb/s.
I would like some help to solve it!
I dont use Wireless.

I didnt rn the net-setup at installation, maybe that is the problem.


Last edited by m1shake on Wed Oct 12, 2022 1:08 am; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Sat Oct 08, 2022 9:55 am    Post subject: Reply with quote

m1shake,

if your ethernet is VERY slow (you might edit your post ;-) ) this can have many reasons:

1. Check your cable (change with another which is proofed to be okay).
2. Check your dmesg for errors of your ethernet (some ethernet modules needs firmware; you will see it here)
3. Maybe a problem with your switch. What happens if you set a static ip address instead using dhcp ?
4. If nothing helps - maybe you have a hardware problem with this port ... :-(
Back to top
View user's profile Send private message
m1shake
n00b
n00b


Joined: 08 Jan 2022
Posts: 17

PostPosted: Sat Oct 08, 2022 10:57 am    Post subject: Reply with quote

pietinger wrote:
m1shake,

if your ethernet is VERY slow (you might edit your post ;-) ) this can have many reasons:

1. Check your cable (change with another which is proofed to be okay).
2. Check your dmesg for errors of your ethernet (some ethernet modules needs firmware; you will see it here)
3. Maybe a problem with your switch. What happens if you set a static ip address instead using dhcp ?
4. If nothing helps - maybe you have a hardware problem with this port ... :-(


It works well with another system or distro, im sure the problem is the config.
Idk how to set a static ip, how i do that?
I would like to try, thanks for the help.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Sat Oct 08, 2022 11:09 am    Post subject: Reply with quote

m1shake wrote:
Idk how to set a static ip, how i do that?

It depends if you are using netifrc or networkmanager (dont use both at the same time); see more here: https://wiki.gentoo.org/wiki/Network_management

I am using netifrc because it is default in our AMD64 handbook: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/System

If you dont know what you should set, then do an:
Code:
# ip a
# ip netconf

Here you will see the name of your ethernet port and its IP address. If you have 192.168.0.1 for your router take 192.168.0.2 for your station (and if your router has 192.168.1.1 then take 192.168.1.2)

(Here is an example of my system: https://forums.gentoo.org/viewtopic-t-1112802.html )
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Mon Oct 10, 2022 12:09 pm    Post subject: Reply with quote

m1shake,

I would try these settings:
Code:
config_enp3s0="192.168.0.2/24"
routes_enp3s0="default via 192.168.0.1"
Back to top
View user's profile Send private message
m1shake
n00b
n00b


Joined: 08 Jan 2022
Posts: 17

PostPosted: Mon Oct 10, 2022 12:29 pm    Post subject: Reply with quote

pietinger wrote:
m1shake,

I would try these settings:
Code:
config_enp3s0="192.168.0.2/24"
routes_enp3s0="default via 192.168.0.1"


It works!
Maybe any from the kernel? Im running the gentoo bin kernel.


Last edited by m1shake on Mon Oct 10, 2022 1:12 pm; edited 2 times in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Mon Oct 10, 2022 1:09 pm    Post subject: Reply with quote

m1shake wrote:
Maybe any from the kernel? Im running the gentoo bin kernel.

If you run our bin kernel you should be fine ... EXCEPT ... IF your ethernet module needs firmware, you MUST install it:
Code:
# emerge -vD linux-firmware

(just look into your "dmesg" and look if you find some messages like described here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware )

If your ethernet module doesnt need some firmware, it could be also:
a) bad cable
b) bad switch / bad switch port (try another port)
c) bad ethernet card in your computer
d) mismatch with MTU sizes in your network

If you have experience with a sniffer you could try to install wireshark and have a look into your network. As your speed has factor 10 slower I think it is a problem with recognizing type of ethernet standard (100 mb/s instead 1 gb/s).
Back to top
View user's profile Send private message
m1shake
n00b
n00b


Joined: 08 Jan 2022
Posts: 17

PostPosted: Mon Oct 10, 2022 1:14 pm    Post subject: Reply with quote

pietinger wrote:
m1shake wrote:
Maybe any from the kernel? Im running the gentoo bin kernel.

If you run our bin kernel you should be fine ... EXCEPT ... IF your ethernet module needs firmware, you MUST install it:
Code:
# emerge -vD linux-firmware

(just look into your "dmesg" and look if you find some messages like described here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Driver_needs_Firmware )

If your ethernet module doesnt need some firmware, it could be also:
a) bad cable
b) bad switch / bad switch port (try another port)
c) bad ethernet card in your computer
d) mismatch with MTU sizes in your network

If you have experience with a sniffer you could try to install wireshark and have a look into your network. As your speed has factor 10 slower I think it is a problem with recognizing type of ethernet standard (100 mb/s instead 1 gb/s).


I already have linux-firmware installed.
But i updated the link to /etc/conf.d/net and everything works fine.
Probably the error was the recognizing of the internet standard, thanks for the help!
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4149
Location: Bavaria

PostPosted: Mon Oct 10, 2022 1:16 pm    Post subject: Reply with quote

m1shake wrote:
Probably the error was the recognizing of the internet standard, thanks for the help!

You are very welcome, m1shake ! :D

Have fun with Gentoo ! 8)


(Please add a [Solved] into the title of your first post)
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