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 21:06:30
Message-Id: 38458095-628c-e0c7-8483-abce47cc0ed3@sys-concept.com
In Reply to: [gentoo-user] Re: losing network IP address by Kai Krakow
1 Thelma
2 On 03/21/2017 01:25 PM, Kai Krakow wrote:
3 > Am Tue, 21 Mar 2017 11:08:49 -0600
4 > schrieb thelma@×××××××××××.com:
5 >
6 >> On 03/21/2017 10:21 AM, Ian Zimmerman wrote:
7 >>> On 2017-03-21 06:59, thelma@×××××××××××.com wrote:
8 >>>
9 >>>> Sometimes it does, the IP stays for a several days but sometimes it
10 >>>> boots with correct IP and the IP changes after few hours to
11 >>>> something like 192.168.xxx (which is not what my firewall
12 >>>> provides.)
13 >>>
14 >>> Maybe you have another (misconfigured) DHCP server on the network?
15 >>> tcpdump could be your friend.
16 >>
17 >> The only strange entries I see in message logs are:
18 >>
19 >> eden dbus[3276]: [system] Activating service
20 >> name='org.freedesktop.UDisks2' (using servicehelper) eden
21 >> udisksd[4067]: udisks daemon version 2.1.8 starting eden dbus[3276]:
22 >> [system] Successfully activated service 'org.freedesktop.UDisks2'
23 >> eden udisksd[4067]: Acquired the name org.freedesktop.UDisks2 on the
24 >> system message bus eden apcupsd[2864]: Communications with UPS lost.
25 >> eden postfix/pickup[3665]: 2BC8520064: uid=0
26 >> from=<root@××××.localdomain> eden postfix/cleanup[4174]: 2BC8520064:
27 >> message-id=<20170321045940.2BC8520064@××××.localdomain> eden
28 >> postfix/qmgr[3666]: 2BC8520064: from=<root@××××.localdomain>,
29 >> size=924, nrcpt=1 (queue active) eden postfix/cleanup[4174]:
30 >> 7C18420023: message-id=<20170321045940.2BC8520064@××××.localdomain>
31 >> eden postfix/qmgr[3666]: 7C18420023: from=<root@××××.localdomain>,
32 >> size=1057, nrcpt=1 (queue active) eden postfix/local[4180]:
33 >> 2BC8520064: to=<root@××××.localdomain>, relay=local, delay=0.59,
34 >> delays=0.32/0.21/0/0.05, dsn=2.0.0, status=sent (forwarded as
35 >> 7C18420023) eden postfix/qmgr[3666]: 2BC8520064: removed eden
36 >> postfix/smtp[4184]: 7C18420023: to=<thelma@×××××××××××.com>,
37 >> orig_to=<root@××××.localdomain>, relay=none, delay=0.13,
38 >> delays=0.05/0.08/0/0, dsn=4.4.3, status=deferred (Host or domain name
39 >> not found. Name service error for name=mail.sys-concept.com type=MX:
40 >> Host not found, try again)
41 >
42 > What's strange about these logs?
43 >
44 >> This must be from "apcupsd"
45 >> Could this service causes some problem with my network?
46 >
47 > That service is only victim of the IP address changing. It's not the
48 > source of the problem.
49 >
50 >> Shortly after I could not receive any message from the system, I
51 >> think the network connection got lost. --
52 >
53 > You wrote that this happened in different locations, I guess you mean
54 > different networked sites with each their own DHCP server.
55 >
56 > So, I my best guess is that you're running a local DHCP server by
57 > accident.
58 >
59 > Which service does configure your network?
60 >
61 > If it's systemd-networkd, you could check those logs after the problem
62 > occurred:
63 >
64 > # journalctl -b -u systemd-networkd.service | fgrep -i dhcpv4
65 >
66 > Apparently, it doesn't tell you what the DHCP server is by MAC address,
67 > but the reported "via" at least tells you the IP.
68 >
69 > It looks like this:
70 >
71 > Mar 17 19:21:33 jupiter systemd-networkd[680]: enp5s0: DHCPv4 address 192.168.4.102/24 via 192.168.4.254
72 >
73 > Other network management daemons should log similar lines. Try first
74 > without fgrep.
75
76 I run DHCP on my DD-WRT router, and all the boxes are running OK, except this one. The IP the box suppose to get is: 10.10.0.7 (static IP ) and here is an entry from last night long:
77
78 eden dhcpcd[7478]: net0: adding address fe80::a98a:8875:2106:64bc
79 eden dhcpcd[7478]: DUID 00:01:00:01:1a:bc:bc:ca:00:30:18:ad:ed:b4
80 eden dhcpcd[7478]: net0: IAID 18:ad:ed:b4
81 eden dhcpcd[7478]: net0: soliciting an IPv6 router
82 eden dhcpcd[7478]: net0: soliciting a DHCP lease
83 eden dhcpcd[7478]: net0: probing for an IPv4LL address
84 eden dhcpcd[7478]: net0: using IPv4LL address 169.254.156.68
85 eden dhcpcd[7478]: net0: adding route to 169.254.0.0/16
86
87 I could suspect the cable but I use two different cable in two different location on same network and same thing happens.
88 I took that box home and it hang up on me in the morning.
89 I've already ordered a replacement. The only reason I was sticking to it as it is already configured for my hylafax, asterisk.
90
91 --
92 Thelma

Replies

Subject Author
[gentoo-user] Re: losing network IP address Kai Krakow <hurikhan77@×××××.com>
Re: [gentoo-user] Re: losing network IP address Alan McKinnon <alan.mckinnon@×××××.com>