Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: losing network IP address
Date: Tue, 21 Mar 2017 22:48:26
Message-Id: 67e196cb-35f0-a4fa-42f2-041b5d72640c@sys-concept.com
In Reply to: [gentoo-user] Re: losing network IP address by Kai Krakow
1 On 03/21/2017 03:17 PM, Kai Krakow wrote:
2 > Am Tue, 21 Mar 2017 15:05:53 -0600
3 > schrieb thelma@×××××××××××.com:
4 >
5 >> Thelma
6 >> On 03/21/2017 01:25 PM, Kai Krakow wrote:
7 >>> Am Tue, 21 Mar 2017 11:08:49 -0600
8 >>> schrieb thelma@×××××××××××.com:
9 >>>
10 >>>> On 03/21/2017 10:21 AM, Ian Zimmerman wrote:
11 >> [...]
12 >> [...]
13 >> [...]
14 >>>>
15 >>>> The only strange entries I see in message logs are:
16 >>>>
17 [snip]
18 >>> That service is only victim of the IP address changing. It's not the
19 >>> source of the problem.
20 >>>
21 >>>> Shortly after I could not receive any message from the system, I
22 >>>> think the network connection got lost. --
23 >>>
24 >>> You wrote that this happened in different locations, I guess you
25 >>> mean different networked sites with each their own DHCP server.
26 >>>
27 >>> So, I my best guess is that you're running a local DHCP server by
28 >>> accident.
29 >>>
30 >>> Which service does configure your network?
31 >>>
32 >>> If it's systemd-networkd, you could check those logs after the
33 >>> problem occurred:
34 >>>
35 >>> # journalctl -b -u systemd-networkd.service | fgrep -i dhcpv4
36 >>>
37 >>> Apparently, it doesn't tell you what the DHCP server is by MAC
38 >>> address, but the reported "via" at least tells you the IP.
39 >>>
40 >>> It looks like this:
41 >>>
42 >>> Mar 17 19:21:33 jupiter systemd-networkd[680]: enp5s0: DHCPv4
43 >>> address 192.168.4.102/24 via 192.168.4.254
44 >>>
45 >>> Other network management daemons should log similar lines. Try first
46 >>> without fgrep.
47 >>
48 >> I run DHCP on my DD-WRT router, and all the boxes are running OK,
49 >> except this one. The IP the box suppose to get is: 10.10.0.7 (static
50 >> IP ) and here is an entry from last night long:
51 >
52 > Maybe try OpenWRT instead, it's more active developed. I ditched DD-WRT
53 > a long time ago due to unsolved stability issues. There's also LEDE but
54 > it was a bit to experimental to me, having some grave bugs that
55 > couldn't be resolved without installing from scratch on an older
56 > version.
57 >
58 > Then, I'm confused. What is "this box"? I suppose, it's not the router?
59 >
60 >> eden dhcpcd[7478]: net0: adding address fe80::a98a:8875:2106:64bc
61 >> eden dhcpcd[7478]: DUID 00:01:00:01:1a:bc:bc:ca:00:30:18:ad:ed:b4
62 >> eden dhcpcd[7478]: net0: IAID 18:ad:ed:b4
63 >> eden dhcpcd[7478]: net0: soliciting an IPv6 router
64 >> eden dhcpcd[7478]: net0: soliciting a DHCP lease
65 >> eden dhcpcd[7478]: net0: probing for an IPv4LL address
66 >> eden dhcpcd[7478]: net0: using IPv4LL address 169.254.156.68
67 >> eden dhcpcd[7478]: net0: adding route to 169.254.0.0/16
68 >
69 > Please disable IPv4LL - I don't think you need that. It's likely that's
70 > getting in the way with routing for you.
71
72 How to disable it? In a router or in /etc/init.d
73 config_net0="dhcp -IPv4LL" ???
74
75 >
76 >> I could suspect the cable but I use two different cable in two
77 >> different location on same network and same thing happens.
78 >
79 > So actually you already ruled the cable out. Maybe the connector?
80
81 Well, not likely the connector; as I use two different cables.
82 Restarting the net0 gave me incorrect IP. But I agree it might be the
83 connection. However, I connected another small box Atom to the same
84 cable and it obtained correct IP on first boot.
85
86 This box "eden" I was watching booting, it got correct IP on boot but
87 soon after 5-min later the IP changed "dropped" to 169.254.156.68
88
89 >> I took
90 >> that box home and it hang up on me in the morning.
91 >
92 > You mean it froze? Which is now "the box"? Your PC? The router?
93
94 Yes, I had to pull the plug on (the box-PC (not the router)) the power
95 supply, it wasn't responding at all.
96
97 My routers, in remote location is a Linksys, at home Asus.
98
99 The box in question is:
100 VIA Eden Processor 1200MHz
101 1024 MB Ram
102
103 >
104 >> I've already
105 >> ordered a replacement. The only reason I was sticking to it as it is
106 >> already configured for my hylafax, asterisk.
107 >
108 > If "the box" is the router, I cannot follow what you write. If you use
109 > your PC in different locations, I'd expect "the box" aka the router to
110 > stay in place. So your particular problem may not be restricted to the
111 > router (despite that being maybe part of your problem due to
112 > instability).
113
114 My routers are working OK, it was only this "eden" small PC.
115 The problem is, it is happening random so I can not duplicate the IP drop.
116
117 --
118 Thelma

Replies

Subject Author
Re: [gentoo-user] Re: losing network IP address Neil Bothwick <neil@××××××××××.uk>
[gentoo-user] Re: losing network IP address Kai Krakow <hurikhan77@×××××.com>