1 |
On 03/21/2017 03:28 PM, Alan McKinnon wrote: |
2 |
> On 21/03/2017 23:05, thelma@×××××××××××.com wrote: |
3 |
>> On 03/21/2017 01:25 PM, Kai Krakow wrote: |
4 |
>>> Am Tue, 21 Mar 2017 11:08:49 -0600 |
5 |
>>> schrieb thelma@×××××××××××.com: |
6 |
>>> |
7 |
>>>> On 03/21/2017 10:21 AM, Ian Zimmerman wrote: |
8 |
>>>>> On 2017-03-21 06:59, thelma@×××××××××××.com wrote: |
9 |
>>>>> |
10 |
>>>>>> Sometimes it does, the IP stays for a several days but sometimes it |
11 |
>>>>>> boots with correct IP and the IP changes after few hours to |
12 |
>>>>>> something like 192.168.xxx (which is not what my firewall |
13 |
>>>>>> provides.) |
14 |
>>>>> |
15 |
>>>>> Maybe you have another (misconfigured) DHCP server on the network? |
16 |
>>>>> tcpdump could be your friend. |
17 |
[snip] |
18 |
>>> |
19 |
>>> What's strange about these logs? |
20 |
>>> |
21 |
>>>> This must be from "apcupsd" |
22 |
>>>> Could this service causes some problem with my network? |
23 |
>>> |
24 |
>>> That service is only victim of the IP address changing. It's not the |
25 |
>>> source of the problem. |
26 |
>>> |
27 |
>>>> Shortly after I could not receive any message from the system, I |
28 |
>>>> think the network connection got lost. -- |
29 |
>>> |
30 |
>>> You wrote that this happened in different locations, I guess you mean |
31 |
>>> different networked sites with each their own DHCP server. |
32 |
>>> |
33 |
>>> So, I my best guess is that you're running a local DHCP server by |
34 |
>>> accident. |
35 |
>>> |
36 |
>>> Which service does configure your network? |
37 |
>>> |
38 |
>>> If it's systemd-networkd, you could check those logs after the problem |
39 |
>>> occurred: |
40 |
>>> |
41 |
>>> # journalctl -b -u systemd-networkd.service | fgrep -i dhcpv4 |
42 |
>>> |
43 |
>>> Apparently, it doesn't tell you what the DHCP server is by MAC address, |
44 |
>>> but the reported "via" at least tells you the IP. |
45 |
>>> |
46 |
>>> It looks like this: |
47 |
>>> |
48 |
>>> Mar 17 19:21:33 jupiter systemd-networkd[680]: enp5s0: DHCPv4 address |
49 |
>>> 192.168.4.102/24 via 192.168.4.254 |
50 |
>>> |
51 |
>>> Other network management daemons should log similar lines. Try first |
52 |
>>> without fgrep. |
53 |
>> |
54 |
>> I run DHCP on my DD-WRT router, and all the boxes are running OK, |
55 |
>> except this one. The IP the box suppose to get is: 10.10.0.7 (static |
56 |
>> IP ) and here is an entry from last night long: |
57 |
>> |
58 |
>> eden dhcpcd[7478]: net0: adding address fe80::a98a:8875:2106:64bc |
59 |
>> eden dhcpcd[7478]: DUID 00:01:00:01:1a:bc:bc:ca:00:30:18:ad:ed:b4 |
60 |
>> eden dhcpcd[7478]: net0: IAID 18:ad:ed:b4 |
61 |
>> eden dhcpcd[7478]: net0: soliciting an IPv6 router |
62 |
>> eden dhcpcd[7478]: net0: soliciting a DHCP lease |
63 |
>> eden dhcpcd[7478]: net0: probing for an IPv4LL address |
64 |
>> eden dhcpcd[7478]: net0: using IPv4LL address 169.254.156.68 |
65 |
>> eden dhcpcd[7478]: net0: adding route to 169.254.0.0/16 |
66 |
> |
67 |
> That's an APIPA address. Think of it as a no-network-config-required |
68 |
> fallback. The machine did that because it didn't get a real address. |
69 |
> |
70 |
> If you've checked you don't have some static network config local to the |
71 |
> box, and your mac address is correct in the dhcp server, then you |
72 |
> probably have physical layer 1 problems. |
73 |
> |
74 |
> You say you've checked the cables and two network points. OK, that rules |
75 |
> out your machine, cable and RJ sockets. |
76 |
> |
77 |
> Next check the switch, use a different port. |
78 |
> Switches are high susceptible to having ports damaged, it comes from |
79 |
> induced spikes from the long cable runs plugged into them. Homo sapiens |
80 |
> doesn't know how to fix that, no matter what marketing departments print |
81 |
> on boxes |
82 |
|
83 |
Good point, I'll take an extra switch to remote location as all my ports |
84 |
are almost taken so I'll need extra switch anyway. |
85 |
|
86 |
It looks like the PC wasn't getting the correct IP so I can not rule-out |
87 |
a port on a switch. |
88 |
|
89 |
-- |
90 |
Thelma |