Strange registration messages
-
Did you fix the missing slash ‘/’ in the file path? You are not the first person to report this slash missing.
-
@george1421 Yes, of course.
-
Ok then, do you know how to do a debug capture/deploy debug?
Manually register the device with FOG.
Then select either capture or deploy (which one is not that important now).
Before you create the task make sure you select “Schedule this task as debug task”. Then submit the task.
PXE boot that E73 again and the FOS kernel should start. You will see a bunch of commands displayed on the screen, at the end press enter and you should be dropped into a linux command shell. From there we need to check to see if the network adapter is working. you can do this by issuing the commandip addr show
It should list the network adapters the FOS kernel has discovered. -
@aruhuno As well please run
lspci -nn | grep Ethernet
while you are in debug mode. Please take a picture of the commands and outputs on screen and upload it to the forum. Would be very helpful.We actually see the NIC being recognized (message “Starting eth0 interface” on the first picture). So it seams like it cannot get an IP via DHCP. Maybe it’s a spanning tree issue?
-
@Sebastian-Roth & @george1421:
@Sebastian-Roth: The switches are configured correctly
-
@aruhuno This is great!! Nice details While I think I know the answer, but just to verify, on the target device is the link light on when you took this picture. From the picture it appears that eth0 is not picking up an ip address (what I suspected).
Sebastian: Isn’t there a lsmod command or something that should show if the realtek driver is loaded into memory?
-
@george1421 said:
Isn’t there a lsmod command or something that should show if the realtek driver is loaded into memory?
We have all the drivers compiled directly into the kernel. So you won’t see it with
lsmod
But I am sure it is properly recognized by the driver as we won’t see eth0 if not!!@aruhuno Please keep an eye on the NIC LEDs while booting up. Are they on or off while you see the “udhcpc … Sending discovery…”?? As well try debug mode again, wait for half a minute or so (check NIC LEDs) and try requesting an IP then
udhcpc -i eth0
As well, please show us the output of
dmesg | grep r8169
-
@Sebastian-Roth For sure you are right. If the kernel didn’t have the driver built in, there would be no eth0 adapter. The only thing I can think of is that the kernel has a driver close to the network adapter and was able to init the nic but still can’t talk. I remember something about some network boards required two drivers. One for the nic and one for the interface (name MII comes to mind for the interface).
But I again would agree the OP should watch the link lights on this device to see if the link is being set after the FOS kernel already tried the network interface. If the link lights are on and the udhcpc command doesn’t pickup and IP address, we will have to dig deeper.
-
@george1421: Ok, thanks!
@Sebastian-Roth: When I show “Starting eth0”, NIC LED is off and never did become on!
Now, result of your commands:
After
udhcpc -i eth0
- NIC LED is on
- have an IP
ping
works
-
Those RTL8168/8169/8111 are making me nuts. Seen a similar behavior with one of these NICs but that was with FOG 1.2.0 where the network startup scripts were very different. The current FOG trunk network init scripts should actually bring the interface UP and wait till it’s up. I don’t understand what’s going on with those NICs. They tend to stay down…
-
@Sebastian-Roth: I have found that once the prompt , the network card is active. I have of course no IP , but it is already very good. The startup script not that be the problem? An IP request too early or something like that, right?
I will try to start a 14.04.4 Lubuntu to see if the NIC is recognized or not.
-
Test with last lubuntu LTS: NIC recognized and works at boot.
- kernel version is 3.13.0-24
lsmod | grep real
return only snd realtek, no additionnal module is used for this NIC
-
@Sebastian-Roth Does the FOS kernel contain the realtek driver that is part of the official linux kernel or does it contain the latest driver from realtek. I’ve seen several recommendations to use the realtek drivers over the linux kernel drivers.
aruhuno, just so I understand this. You booted into debug mode and the FOS kernel did not pick up an ip address and the link light stayed off. You executed the udhcpc command (only) and the interface came up and it picked up an IP address. If this was an spanning tree issue, I think we would see the issue sooner in the booting process, since each time (during pxe booting) the transition between kernels happens the network adapter should be reset and the link dropped.
If you watch the link light during the entire target device booting, the link light should momentarily shut off during PXE rom -> iPXE kernel startup and then when the FOS kernel starts.
-
@george1421 I highly doubt the issue he’s seeing here has anything to do with the driver at all.
My guess to what’s being seen here is the 802.11az issues I have seen. This, also, is my same suspicion to what @Wayne-Workman was seeing with his network and the random ports.
The fix, for us, is to simply take another switch and connect it.
802.11az is nice, when the OS is booted and running, and the system sleeps. When it sleeps it disconnects the NIC. Not all nic’s have this type is setup which is also likely why @aruhuno is not seeing this on other models of the system.
The issue, as I’ve seen it occur, presents itself very slowly. You go to boot a system, sometimes TFTP is fast (usually after a cold boot) and get’s you into iPXE and into the FOS system just fine (albeit with slowed/lack of IP address obtaining). Other times the TFTP pxe process even seems to get hung up, but after 30 - 50 seconds it might get a DHCP anyway (people don’t like such minor delays usually though and FOS definitely doesn’t like it.)
These are all guess on my part though, because it’s such a few and far between issue, it’s not something easily findable.
@aruhuno, can you start the tasking in “Debug” mode (Create the tasking like you normally would, but before confirming check the box for “Schedule as debug task”.)
When the client boots it should drop you into a linux shell prompt. From there, you can try to see if it will pick up an IP address after a small period of time. Just run:
/etc/init.d/S40network stop && sleep 2
/etc/init.d/S40network start` and it should try to get you an IP address again. -
@george1421
After new test, when I’m run in debug:- NIC is on everytimes
ifconfig
no IPping
no response
If I run
udhcpc -i eth0
or/etc/init.d/S40network stop && sleep 2/etc/init.d/S40network start
, everything is working.@Tom-Elliott
Ok, when I run your command, I get an IP -
@aruhuno This leads me to believe it is indeed due to power saving features on the NIC.
-
@Tom-Elliott
What can I do at once ? -
@aruhuno Put in another switch (one that doesn’t use 802.11az would be helpful too) or edit the firmware to always enable the LAN from within windows.
Unfortunately there’s no straightforward method to doing this.
-
@Tom-Elliott
I don’t know if my switch supports 802.11az but I do not think.
I change option in firmware from Windows but has no impact -
@aruhuno Do you have an old unmanaged switch you can insert between this computer and your building network switch? If Tom is right, inserting a really dumb unmanaged switch should disable the 802.11az port protocol.
@Wayne-Workman you may want to follow this thread.