• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: smbclient to localhost does not work  (Read 4404 times)
odoll
Full Member
***

Karma: 0
Posts: 148


View Profile
« on: October 19, 2009, 08:25:58 AM »

Hi,

sb having a clue what's going wrong here?

 root@Share:~# smbclient -L localhost
 Connection to localhost failed (Error NT_STATUS_BAD_NETWORK_NAME)

though

 root@Share:~# ping localhost
 PING localhost (127.0.0.1) 56(84) bytes of data.
 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.066 ms

is ok and

 root@Share:~# smbclient -L 127.0.0.1

works as well!
Logged

DamonHD
Full Member
***

Karma: 4
Posts: 169


View Profile WWW
« Reply #1 on: October 19, 2009, 10:29:52 AM »

Note that localhost may now map to both IPv4 and IPv6 addresses, but some apps may not like the latter for example.

Rgds

Damon
Logged

odoll
Full Member
***

Karma: 0
Posts: 148


View Profile
« Reply #2 on: October 20, 2009, 05:11:57 AM »

Hmm, tried to tweak IPv6, but issue persists ... anybody maybe any other hints?

****

PS: 2.6.31.4 #2 PREEMPT Tue Oct 13 07:36:55 MDT 2009 armv5tel

re https://help.ubuntu.com/community/WebBrowsingSlowIPv6IPv4
or https://help.ubuntu.com/9.04/internet/C/troubleshooting-lan.html#network-troubleshooting-ifconfig

 root@Share:/etc/modprobe.d# lsmod | grep inet6

but

 root@Share:/etc/modprobe.d# lsmod
 Module                  Size  Used by
 dm_crypt               14460  0
 dm_mod                 70700  1 dm_crypt
 ipv6                  271508  18

Created file etc/modprobe.d/aliases

 root@Share:/etc/modprobe.d# cat aliases
 alias net-pf-10 off

But after reboot though

 root@Share:/etc/modprobe.d# lsmod
 Module                  Size  Used by
 dm_crypt               14460  0
 dm_mod                 70700  1 dm_crypt

 root@Share:~# smbclient -L localhost
 Connection to localhost failed (Error NT_STATUS_BAD_NETWORK_NAME)

Created file /etc/modprobe.d/blacklist.local

 root@Share:/etc/modprobe.d# echo 'blacklist ipv6' | sudo tee -a '/etc/modprobe.d/blacklist.local' >/dev/null

But after reboot

 root@Share:~# lsmod
 Module                  Size  Used by
 dm_crypt               14460  0
 dm_mod                 70700  1 dm_crypt

 root@Share:~# smbclient -L localhost
 Connection to localhost failed (Error NT_STATUS_BAD_NETWORK_NAME)

 root@Share:~# ifconfig
 eth0      Link encap:Ethernet  HWaddr 00:50:43:01:d8:11
           inet addr:a.b.c.d  Bcast:a.b.c.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:504 errors:0 dropped:0 overruns:0 frame:0
           TX packets:497 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:44822 (44.8 KB)  TX bytes:46516 (46.5 KB)
           Interrupt:11

 lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:5 errors:0 dropped:0 overruns:0 frame:0
           TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:396 (396.0 B)  TX bytes:396 (396.0 B)

 root@Share:/etc/modprobe.d# rm aliases blacklist.local

Reboot

 root@Share:~# ifconfig
 eth0      Link encap:Ethernet  HWaddr 00:50:43:01:d8:11
           inet addr:a.b.c.d  Bcast:a.b.c.255  Mask:255.255.255.0
           inet6 addr: x::y:z:a:b/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:568 errors:0 dropped:0 overruns:0 frame:0
           TX packets:577 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:48945 (48.9 KB)  TX bytes:50671 (50.6 KB)
           Interrupt:11

 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:16436  Metric:1
           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Changed ipv6 entry in /etc/hosts from

 ::1     ip6-localhost ip6-loopback

to
 ::1     localhost ip6-localhost ip6-loopback

Reboot. No!

 root@Share:/etc# smbclient -L localhost
 Connection to localhost failed (Error NT_STATUS_BAD_NETWORK_NAME)

 root@Share:/etc# net rpc user
 Connection to localhost failed (Error NT_STATUS_BAD_NETWORK_NAME)

but

 root@Share:/etc# net rpc group
 Enter root's password:
 Domain Guests
 Domain Computers
 Domain Admins
 Domain Users
Logged

odoll
Full Member
***

Karma: 0
Posts: 148


View Profile
« Reply #3 on: October 20, 2009, 09:49:05 AM »

think I got it, when I added host to

 name resolve order = wins host bcast

in the smb.conf
Logged

Pages: [1]
Print
Jump to: