You are not logged in.

#1 2020-08-09 11:16:06

maboleth
Member
Registered: 2020-01-03
Posts: 220

Thinking to ditch Networkmanager - is that ok?

I use Gnome. But had some issues with NM connecting here and there.

What is the best alternative or some native Arch linux way to implement networking?

All I need is 1 ethernet connection and occasional (when cable service is broken) USB tethering.

I like GUI, but it's not required. Once it is set, I don't need to fiddle with it ever again.

Last edited by maboleth (2020-08-09 11:16:48)

Offline

#2 2020-08-09 11:27:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: Thinking to ditch Networkmanager - is that ok?

https://wiki.archlinux.org/index.php/Ne … k_managers

You could also use dhcpcd/dhclient standalone. No there isn't anything that would inherently prevent you from doing this. NM has the best general GUI integration for desktop environments a few others might have other applets/options

Last edited by V1del (2020-08-09 11:29:28)

Offline

#3 2020-08-09 11:30:39

tpfkanep
Member
From: South Africa
Registered: 2009-12-15
Posts: 121

Re: Thinking to ditch Networkmanager - is that ok?

+1 for dhcpcd/dhclient

All I need is 1 ethernet connection and occasional (when cable service is broken) USB tethering.

I used to use wvdial for my usb modem. Have not tyouched it in years.

Not knowledgable on NM: but what issues are you having? Maybe someone can assist...?

Offline

#4 2020-08-09 11:42:44

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

Thanks guys! I will try dhcpcd!

Well, @tpfkanep, thank you! Sometimes re-connection fails after suspend/wake. Not sure why, but NM fails to connect until restart. It happens like every 7-10th suspend.

Also there were issues with connecting both Android phone USB tether and ethernet (kept reappearing that I couldn't turn off). I did get some help there in another thread that fixed it, but I thought about experimenting with other alternatives that would be more reliable.

Last edited by maboleth (2020-08-09 11:44:44)

Offline

#5 2020-08-09 21:19:49

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

Guys I installed dhcpcd so easily, I couldn't believe it. Install, enable systemctl, add noarp option to conf file, done. Restart, works.

I tested USB Tethering and works out of the box. Now I tested it by disconnecting the ethernet cable. I'm not sure if it will be available when connection breaks down at my cable operator? Can I test that somehow without disconnecting the router?

Can dhcpcd co-exist with NetworkManager? I thoroughly uninstalled it. I don't need it anymore, but good to know.

Offline

#6 2020-08-09 21:43:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,431

Re: Thinking to ditch Networkmanager - is that ok?

All networkmanagers can theoretically coexist if you configure properly, so that each gets control of one specific network device. What you never should do is mix network managers and let multiple try to control the same interface at the same time, bad things will happen.

Offline

#7 2020-08-09 22:18:44

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

Thanks. Well, NM did interfere with my usb tether and ethernet, by default. I had to add metric data to level the priorities. I guess I could fiddle with that, but somehow dhcpcd just works, so I guess I won't. We'll see what the future brings in that regard. :-)

Offline

#8 2020-08-10 12:18:31

rsmarples
Member
Registered: 2009-05-12
Posts: 287

Re: Thinking to ditch Networkmanager - is that ok?

maboleth wrote:

Guys I installed dhcpcd so easily, I couldn't believe it. Install, enable systemctl, add noarp option to conf file, done. Restart, works.

I tested USB Tethering and works out of the box.

Yay, another satisifed user big_smile

Now I tested it by disconnecting the ethernet cable. I'm not sure if it will be available when connection breaks down at my cable operator? Can I test that somehow without disconnecting the router?

Disconnecting the cable is good enough.
I run dhcpcd (eat my own dog food!) on my router and when the ISP modem disconnects it essentially brings the WAN interface down/up so dhcpcd restarts and gets a local IP instead.
Once the ISP modem reconnects it does the same thing but this time dhcpcd gets the global IP address.

Can dhcpcd co-exist with NetworkManager? I thoroughly uninstalled it. I don't need it anymore, but good to know.

Yes, but I wouldn't recommend it as it would require exact config in both.

Offline

#9 2020-08-10 13:55:33

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

rsmarples wrote:

Yay, another satisifed user big_smile

You bet! smile It's also much faster than NM at reconnecting after suspend/wake and after reboot!

rsmarples wrote:

I run dhcpcd (eat my own dog food!)

Oh you're the creator! yikes High five! /respect!

on my router and when the ISP modem disconnects it essentially brings the WAN interface down/up so dhcpcd restarts and gets a local IP instead.
Once the ISP modem reconnects it does the same thing but this time dhcpcd gets the global IP address.

Can dhcpcd co-exist with NetworkManager? I thoroughly uninstalled it. I don't need it anymore, but good to know.

Yes, but I wouldn't recommend it as it would require exact config in both.

Good to know, thanks a lot! I don't need NM, except for that fancy icon in the tray that shows internet is/is not working, but that's so minor compared to the fast connection and USB tethering working ootb, without fighting with the PCI ethernet.

Now I noticed you also created dhcpcd-ui for the icon! I might try that in AUR flavour package.

Last edited by maboleth (2020-08-10 14:07:39)

Offline

#10 2020-08-22 22:37:38

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

Since I have switched to dhcpcd and removed networkmanager, I cannot upload with my FTP client - filezilla.

I did a settings wizard and I get the following errors during test:

Connecting to probe.filezilla-project.org
Connection established, waiting for welcome message.
Response: 220 FZ router and firewall tester ready
USER FileZilla
Response: 331 Give any password.
PASS 3.46.3
Response: 230 logged on.
Checking for correct external IP address
Retrieving external IP address from http://ip.filezilla-project.org/ip.php
Checking for correct external IP address
IP 87.116.162.18 ih-bbg-bgc-bi
Response: 200 OK
PREP 44961
Response: 200 Using port 44961, data token 1964279867
PORT 87,116,162,18,175,161
Connection timed out.
Connection closed

What did I miss?

Last edited by maboleth (2020-08-22 22:37:55)

Offline

#11 2020-08-23 05:55:11

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Thinking to ditch Networkmanager - is that ok?

87.116.162.18 doesn't respond to ICMP (ping) and on a stealth scan, 20 is "filtered" - IP belongs to "Serbia BroadBand" (surprisingly a Serbian ISP)
=> Is that your private system?
Please elaborate on the connection (what are client & server and notably which is the arch system) and esp. check https://ipinfo.io/ip on whether the filezilla provided IP is correct.


It's unlikely that the dhcp client broke a specific TCP protocol only (so this is likely coincidental or you were relying on further scripts that were executed by NM and didn't bind them to dhcpcd)

Offline

#12 2020-08-23 08:31:58

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

I'm a total rookie when it comes to troubleshooting IP/internet.

Yes, I'm on the Serbia Broad Band icp.
ipinfo.io/ip gives 87.116.182.230

I didn't set anything particular in dhcpcd, it was all automatic.

Regular (prior) settings in filezilla that worked before this change couldn't even connect so I checked in the wizard "get external IP address from the following URL" http://ip.filezilla-project.org/ip.php and after that, it connected, but alas, timed out.

Pasting that address in firefox does produce security risk issue, giving "Error code: SSL_ERROR_BAD_CERT_DOMAIN"

Last edited by maboleth (2020-08-23 08:32:55)

Offline

#13 2020-08-23 13:44:08

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Thinking to ditch Networkmanager - is that ok?

ipinfo.io/ip gives 87.116.182.230

On the arch system (w/ dhcpcd)?

Is that also the system you're trying to connect to (ie. where the ftp server runs)?

Offline

#14 2020-08-23 14:45:34

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

seth wrote:
ipinfo.io/ip gives 87.116.182.230

On the arch system (w/ dhcpcd)?

Yes. It's a dynamic address. Now it's 87.116.182.124

Is that also the system you're trying to connect to (ie. where the ftp server runs)?

No, FTP server is the host of my website that I keep at Hostgator.

The problem I have with my FTP is that I can connect, browse the files, but as soon as I want to upload a file it says

Command:	STOR shuffle.webm
Response:	552 Disk full - please upload later
Error:	Critical file transfer error

Of course, I have a disk space. And when I run the wizard setting in Filezilla it found out the stuff above that I copy/pasted.

Last edited by maboleth (2020-08-23 14:46:52)

Offline

#15 2020-08-23 14:57:51

seth
Member
Registered: 2012-09-03
Posts: 50,012

Re: Thinking to ditch Networkmanager - is that ok?

Can you upload to ftp://speedtest.tele2.net/upload/ ?
(It's a testserver, ftp://speedtest.tele2.net/ also has files for download that you can re-up if you want)

Offline

#16 2020-08-23 16:32:39

maboleth
Member
Registered: 2020-01-03
Posts: 220

Re: Thinking to ditch Networkmanager - is that ok?

seth wrote:

Can you upload to ftp://speedtest.tele2.net/upload/ ?
(It's a testserver, ftp://speedtest.tele2.net/ also has files for download that you can re-up if you want)

Apparently, yes. I can upload. Hmmm, not sure to think about Hostgator now. :-/

Thanks a lot!

Last edited by maboleth (2020-08-24 10:22:54)

Offline

Board footer

Powered by FluxBB