You are not logged in.

#1 2016-08-28 01:50:14

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Ethernet loses IP address seemingly at random

Over the last couple of weeks, I've noticed that my always-on Arch 6t4bit server is often losing its bound IP address; what happens is that I will be unable to connect (Plex, deluge, etc) and will need to connect via direct keyboard/mouse and restart the NetworkManager service. After that it finds an IP again. It doesn't seem to happen at any particular time or with any particular event/service.

Here is the output of journalctl, starting just before the machine lost its IP. I normally use a static reservation from the router (192.168.2.1) to 192.168.2.50.

Any ideas? I've ran the server this way for years. Thanks

Offline

#2 2016-08-28 01:56:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Ethernet loses IP address seemingly at random

NM seems unnecessarily complex for a server; see if you experience the same issue with systemd-networkd.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-08-28 02:02:01

jmp186
Member
Registered: 2016-08-13
Posts: 22

Re: Ethernet loses IP address seemingly at random

I would try to have a static ip from my machine. my guess is your router doesn't act the way it should and the problem seems to come from the dhcp server, it's just a guess though.

Offline

#4 2016-08-28 10:15:35

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Ethernet loses IP address seemingly at random

Run "ip addr" - does it show the IPs as lasting "forever", or only for e.g. 12 hours (assigned from DHCP)?

"forever" is safer wink

Offline

#5 2016-08-28 12:46:31

yochaigal
Member
From: Boston
Registered: 2011-02-06
Posts: 202

Re: Ethernet loses IP address seemingly at random

I prefer NM simply because I use this machine as a workstation from time to time, and the built-in VPN capabilities are nice.
The router is fine - I work at an MSP and we deploy these things everywhere (EdgeRouters). It's possible there's a problem with this specific one, though.

ip addr shows:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether d0:50:99:5e:2f:cb brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.50/24 brd 192.168.2.255 scope global dynamic eth0
       valid_lft 80009sec preferred_lft 80009sec


But the router is set to 24 hours lease time (the default).

I've had this router and this server working without issues for over a year; there have been no configuration changes other than firmware updates on the router and software/kernel updates on the server.

Offline

Board footer

Powered by FluxBB