A way to avoid the problem is stop the network card when ever they are not connected.
/etc/init.d/net.
In order to avoid the problem during startup, it is better to not autostart the network interfaces during boot
rc-update del net.ethx default
and start them later, manually, when the cards are physically connected
Main Topics
Browse All Topics





by: edster9999Posted on 2009-07-20 at 02:36:01ID: 24893487
There is two ways to fix this. Software or hardware.
The software one would be to edit the startup script
/etc/init.d/samba
near the top it has something like
depend() {
need net;
}
This is the line that makes it stop if the network cards are not up. Use could swap it for 'use net' or remve it all together.
This is not the best answer as that line was put in there for a reason. It might make your system unstable if it does start up and neither card is running.
It may also make Samba run too early if it doesn't wait for the network part.
I would go for the other method of fixing this. Connect the network card to a simple switch and connect that to the other machine.
You may need to swap the existing cable (which is probably a cross over) for a standard bit of ethernet cable and you will need a small switch to connect them.
But it will now always have a connection even if the machine is turned off.