Importance of Loopback Device

| No TrackBacks

As is typical, I found myself helping out a friend with their Debian box. For whatever, reason (which would become apparent later) he was not able to access the server from his network. I was clear that Samba was running and that once the windows clients were authenticated to the network using the same username and passwd... Accessing the Linux server resources would be trivial.

After perusing /var/log/samba, I discovered the following error:
open_oplock_ipc: Failed to get local UDP socket for address

Hmmm. The failure didn't immediately jump out, so off to trusty google.
It seems that there is use for the loopback device after all. Actually, I had not given it much thought. I always thought of the loopback device as a 'virtual' device, that simply is required to handle localhost. It seems that samba cannot function without enabling the network loopback device.

A simple 'ifconfig -a' revealed that loopback wasn't enabled. Easy enough to fix.
Running as root '/sbin/ifconfig lo up' resolved that matter.
However, the next step was to make sure that the device remained active.

So I next modified /etc/init.d/networking', and added 'ifup lo eth0' and assigned loopback device to first (only) ethernet device.

Next, I made a few modifications to /etc/smb.conf
Made sure that I synced passwd b/t windows and linux.

Once I completed the modifications, I ran 'testparm' and 'smbclient -L hostname' to dump the current samba configuration and active shares to stdout.

The output was as expected, hence problem resolved.

  • Importance of Loopback Device
  • Interroperability rears its ugly head
  • Promise NS4300N - Inexpensive NAS
  • Geek fatigue
  • No TrackBacks

    TrackBack URL:

    Monthly Archives


    OpenID accepted here Learn more about OpenID
    Powered by Movable Type 4.25

    About this Entry

    This page contains a single entry by AG published on September 4, 2006 1:51 AM.

    5% Album - Lord Jamaar was the previous entry in this blog.

    Last days of free text is the next entry in this blog.

    Find recent content on the main index or look in the archives to find all content.