Here I am again, this weekends weather was so good I didn’t go back inside to the computer.
For some reason it seems the problem has in one way or another solved itself or better said it is workable now. The last three times I booted the system it did take way too much time to connect, but with about 3 minutes until a network connection is made it is doable. This makes me think that I actually might have made the problem worse by using those ’ systemctl start / force enable / stop commands’ which might have been the cause of having to wait 15 to 20 minutes each time. Probably because every other minute I was giving those commands as I was used to connecting in mere seconds with windows and this might have ‘reset’ whatever it is that takes my system a few minutes to establish a connection. Also, that under CentOS a connection was impossible might be a different problem (and in my mind I connected the dots when Opensuse had networking issues with my system too right after I switched from CentOS to Opensuse).
Still, I ofcourse tried all you guys suggested as something is not okay and if there are any good ideas I still love to hear them. Although it works, those 3 minutes are still mighty annoying :).
By the way, when doing the tcpdump I noticed the output header read ‘link-type EN10MB (Ethernet)’, after some googling I noticed that this can mean any speed 10/100/1000 but after doing:
ethtool enp3s0 I got the following
X1:/home/bart # ethtool enp3s0
Settings for enp3s0:
Supported ports: TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
This means my system is running Full duplex @ 10 Mbit. The switch is set to auto negotiate, but if both the switch and the card support 100Mbit it is strange the system reverts to 10Mbit. I believe under windows I ran 100Mbit all the time, but this makes me wonder. I won’t reach 1Gbit as I am using the older cat 5 cables (quite an old cable), but for 100Mbit it should suffice. If I recall correctly when there is a problem between the switch and the NIC they can fall back to a half-duplex 10Mbit setting, so as the system is still running full duplex I am assuming the fact that the system runs at 10Mbit has nothing to do with a networking issue. It even registers no 100Mbit possibility on the switch which is mighty strange. As it is almost midnight here (about five hours ago my neighbor came for a short talk and I just returned) I will check the switch tomorrow to make sure it used to run 100Mbit. Maybe my memory is lagging. On the other hand, as the network is dead for about 3 minutes after which it runs at 10Mbit, it could be a networking problem. But if so, it is a networking problem under linux as under windows there is no problem at all. And during that 3 minute dead zone, tcpdump fails to register anything. As such it looks like the entire networking system is out. I mean, it should at least register something? Broadcasts enough on this network.
So here is the output:
ifconfig
X1:/home/bart # ifconfig
enp3s0 Link encap:Ethernet HWaddr 1C:6F:65:3C:C9:71
inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::1e6f:65ff:fe3c:c971/64 Scope:Link
inet6 addr: 2002:5ed3:8eee:1234:1e6f:65ff:fe3c:c971/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11035 errors:0 dropped:0 overruns:0 frame:0
TX packets:7562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10929816 (10.4 Mb) TX bytes:1189269 (1.1 Mb)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2804 (2.7 Kb) TX bytes:2804 (2.7 Kb)
ip addr
X1:/home/bart # ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 1c:6f:65:3c:c9:71 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.15/24 brd 192.168.2.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 2002:5ed3:8eee:1234:1e6f:65ff:fe3c:c971/64 scope global dynamic
valid_lft 292sec preferred_lft 112sec
inet6 fe80::1e6f:65ff:fe3c:c971/64 scope link
valid_lft forever preferred_lft forever
3: wlp4s6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 68:7f:74:fb:45:e3 brd ff:ff:ff:ff:ff:ff
Is the wireless adapter physically turned off?
Unfortunately that is impossible, as it is an internal card with an antenna sticking out the back of the system. I could remove the card from the case, but I doubt the problem is there as in NetworkManager the setting ‘draadloos activeren’ which is Dutch for ‘enable wireless’ is off and the wireless connection is - trough all the commands I have seen - unavailable. It is guaranteed not granted an ip and there is guaranteed no connection. Everytime I activate wireless I also need to enter a password for KWallet so it can connect (probably for the wireless password), I only get this box when I manually tick the ‘enable wireless’ option. Also, the wireless connection says ‘unavailable’ until I click the enable button after which it becomes ‘disconnected’. The last two words are translations, so if it actually says something else in English sorry :). But you’ll get what I mean.
tcpdump -i enp3s0 -n (after starting the system I could not remember what came after tcpdump so I gave the tcpdump command only)
I’d wish I could put some text in here, but right up to the point the connection was made there was nothing. When ctrl+c ended the command it gave 0 packets on all three options (captured, received, dropped). After the connection was made the screen got filled very fast. That however was something I already noticed back on windows with Wireshark, quite a busy line. And this is a dedicated line into the switch, so only direct addressed packets and broadcasts. I sometimes even see web domains passing trough that haven’t been opened in quite a while on the system. By the way, it is almost impossible that this system is infected with something. It is just too freshly installed.
I did a timed tcpdump of exactly 1 minute and it gave me the lines below. I do know a lot of network traffic happens even when you don’t do anything and I also noticed that it was a lot less busy then right after the connection. But still, this is quite a lot if you think about it that during the entire capture I did not touch a single button. I did however keer this window open. Info, 0 dropped packages.
The command was tcpdump -w outputtcpdump -nnvvvSe (the read with XX added). After I copy/pasted this into the code field I feel like hte only thing I did was occupy some server space on opensuse.org that probably could have been used better.
18:34:21.618580 1c:6f:65:3c:c9:71 > 00:22:75:24:39:b4, ethertype IPv4 (0x0800), length 90: (tos 0xc0, ttl 64, id 59916, offset 0, flags [DF], proto UDP (17), length 76)
192.168.2.15.123 > 83.98.201.133.123: [udp sum ok] NTPv4, length 48
Client, Leap indicator: (0), Stratum 3 (secondary reference), poll 6 (64s), precision -23
Root Delay: 0.013381, Root dispersion: 0.028121, Reference-ID: 85.12.35.12
Reference Timestamp: 3610715424.632168948 (2014/06/02 18:30:24)
Originator Timestamp: 3610715594.625965595 (2014/06/02 18:33:14)
Receive Timestamp: 3610715594.630614876 (2014/06/02 18:33:14)
Transmit Timestamp: 3610715661.618533253 (2014/06/02 18:34:21)
Originator - Receive Timestamp: +0.004649272
Originator - Transmit Timestamp: +66.992567658
0x0000: 0022 7524 39b4 1c6f 653c c971 0800 45c0 ."u$9..oe<.q..E.
0x0010: 004c ea0c 4000 4011 7035 c0a8 020f 5362 .L..@.@.p5....Sb
0x0020: c985 007b 007b 0038 b5f4 2303 06e9 0000 ...{.{.8..#.....
0x0030: 036d 0000 0733 550c 230c d737 2520 a1d5 .m...3U.#..7%...
0x0040: d2f8 d737 25ca a03f 4823 d737 25ca a16f ...7%..?H#.7%..o
0x0050: f9fc d737 260d 9e58 31b8 ...7&..X1.
18:34:21.630690 00:22:75:24:39:b4 > 1c:6f:65:3c:c9:71, ethertype IPv4 (0x0800), length 90: (tos 0x0, ttl 52, id 27457, offset 0, flags [DF], proto UDP (17), length 76)
83.98.201.133.123 > 192.168.2.15.123: [udp sum ok] NTPv4, length 48
Server, Leap indicator: (0), Stratum 2 (secondary reference), poll 6 (64s), precision -23
Root Delay: 0.002487, Root dispersion: 0.021072, Reference-ID: 193.67.79.202
Reference Timestamp: 3610715653.842456400 (2014/06/02 18:34:13)
Originator Timestamp: 3610715661.618533253 (2014/06/02 18:34:21)
Receive Timestamp: 3610715661.625648736 (2014/06/02 18:34:21)
Transmit Timestamp: 3610715661.625682592 (2014/06/02 18:34:21)
Originator - Receive Timestamp: +0.007115493
Originator - Transmit Timestamp: +0.007149379
0x0000: 1c6f 653c c971 0022 7524 39b4 0800 4500 .oe<.q."u$9...E.
0x0010: 004c 6b41 4000 3411 fbc0 5362 c985 c0a8 .LkA@.4...Sb....
0x0020: 020f 007b 007b 0038 86f1 2402 06e9 0000 ...{.{.8..$.....
0x0030: 00a3 0000 0565 c143 4fca d737 2605 d7ab .....e.CO..7&...
0x0040: 3888 d737 260d 9e58 31b8 d737 260d a02a 8..7&..X1..7&..*
0x0050: 83e4 d737 260d a02c bc69 ...7&..,.i
18:34:22.679020 00:22:fa:1b:ca:28 > 01:00:5e:7f:ff:fa, ethertype IPv4 (0x0800), length 165: (tos 0x0, ttl 1, id 22740, offset 0, flags [none], proto UDP (17), length 151)
192.168.2.2.63053 > 239.255.255.250.1900: [udp sum ok] UDP, length 123
0x0000: 0100 5e7f fffa 0022 fa1b ca28 0800 4500 ..^...."...(..E.
0x0010: 0097 58d4 0000 0111 addd c0a8 0202 efff ..X.............
0x0020: fffa f64d 076c 0083 9c96 4d2d 5345 4152 ...M.l....M-SEAR
0x0030: 4348 202a 2048 5454 502f 312e 310d 0a48 CH.*.HTTP/1.1..H
0x0040: 6f73 743a 3233 392e 3235 352e 3235 352e ost:239.255.255.
0x0050: 3235 303a 3139 3030 0d0a 5354 3a75 726e 250:1900..ST:urn
0x0060: 3a73 6368 656d 6173 2d75 706e 702d 6f72 :schemas-upnp-or
0x0070: 673a 6465 7669 6365 3a53 7769 6674 5365 g:device:SwiftSe
0x0080: 7276 6572 3a31 0d0a 4d61 6e3a 2273 7364 rver:1..Man:"ssd
0x0090: 703a 6469 7363 6f76 6572 220d 0a4d 583a p:discover"..MX:
0x00a0: 330d 0a0d 0a 3....
18:34:25.680269 00:22:fa:1b:ca:28 > 01:00:5e:7f:ff:fa, ethertype IPv4 (0x0800), length 165: (tos 0x0, ttl 1, id 22934, offset 0, flags [none], proto UDP (17), length 151)
192.168.2.2.63053 > 239.255.255.250.1900: [udp sum ok] UDP, length 123
0x0000: 0100 5e7f fffa 0022 fa1b ca28 0800 4500 ..^...."...(..E.
0x0010: 0097 5996 0000 0111 ad1b c0a8 0202 efff ..Y.............
0x0020: fffa f64d 076c 0083 9c96 4d2d 5345 4152 ...M.l....M-SEAR
0x0030: 4348 202a 2048 5454 502f 312e 310d 0a48 CH.*.HTTP/1.1..H
0x0040: 6f73 743a 3233 392e 3235 352e 3235 352e ost:239.255.255.
0x0050: 3235 303a 3139 3030 0d0a 5354 3a75 726e 250:1900..ST:urn
0x0060: 3a73 6368 656d 6173 2d75 706e 702d 6f72 :schemas-upnp-or
0x0070: 673a 6465 7669 6365 3a53 7769 6674 5365 g:device:SwiftSe
0x0080: 7276 6572 3a31 0d0a 4d61 6e3a 2273 7364 rver:1..Man:"ssd
0x0090: 703a 6469 7363 6f76 6572 220d 0a4d 583a p:discover"..MX:
0x00a0: 330d 0a0d 0a 3....
18:34:25.839848 00:22:75:24:39:b4 > 01:80:c2:00:00:00, 802.3, length 60: LLC, dsap STP (0x42) Individual, ssap STP (0x42) Command, ctrl 0x03: STP 802.1d, Config, Flags [none], bridge-id 8000.00:22:75:24:39:b4.8001, length 43
message-age 0.00s, max-age 20.00s, hello-time 30.00s, forwarding-delay 1.00s
root-id 8000.00:22:75:24:39:b4, root-pathcost 0
0x0000: 0180 c200 0000 0022 7524 39b4 0026 4242 ......."u$9..&BB
0x0010: 0300 0000 0000 8000 0022 7524 39b4 0000 ........."u$9...
0x0020: 0000 8000 0022 7524 39b4 8001 0000 1400 ....."u$9.......
0x0030: 1e00 0100 a5a5 a5a5 a5a5 a5a5 ............
<As is maxed out on room, I deleted the rest. A 15.000 character maximum, never thought I'd run out of space this soon.>