作者tyf99.bbs@ptt.cc (呵呵) 看板: linux
標題DHCP 無法用 netbios name?
時間批踢踢實業 (2008/03/11 Tue 06:22:17)
samba server 是台掌上型機器,用 wifi 連線.
它的 netbios name 沒辦法使用.
不論在 smb.conf 裡面設定 interfaces = en0,或是不加 interfaces 這一行.
nmbd 都找不到 interface.
=== log.nmbd ===
[2008/03/11 05:59:07, 0] nmbd/nmbd.c:main(697)
Netbios nameserver version 3.0.25c started.
Copyright Andrew Tridgell and the Samba Team 1992-2007
[2008/03/11 05:59:08, 0] lib/interface.c:load_interfaces(229)
WARNING: no network interfaces found
[2008/03/11 05:59:08, 0] nmbd/nmbd_subnetdb.c:create_subnets(190)
create_subnets: No local interfaces !
[2008/03/11 05:59:08, 0] nmbd/nmbd_subnetdb.c:create_subnets(191)
create_subnets: Waiting for an interface to appear ...
[2008/03/11 05:59:13, 0] lib/interface.c:load_interfaces(229)
WARNING: no network interfaces found
================
只有當我指定完整的 IP 時(interfaces = 192.168.xx.xx/xx)
nmbd 才會找到 interface,才能用 netbios name..
但是這機器拿到別的地方,不同 AP 給的 IP 就不一樣.
我不可能每次連線都去改 smb.conf,只能用 smb://IP 去連.
請教一下各位大哥,我該怎麼設定才能在 dhcp 環境裡使用 netbios name 連 samba?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.197.128