vincent 撰寫於文章 <8ee6dh$qit$1@news.seed.net.tw>...
>
>
>/etc/services
>/etc/inetd.conf
>/etc/lmhosts
>/etc/smb.conf
>都設定好了 但是在client端(win98) 的網路芳鄰中就是
>看不到我設的workgroup
>請各位高手幫我想一下是否有地方沒設好
>...................我用的是RedHat6.0+CLE0.8
>
>---------------------------------------------
>有可能是你的網段設定錯誤
>不同的ip網段將連不上對方
>先ping linux的ip看看是否ping 的到
>若ping得到有可能是在windows的網路中有所謂的12分鐘net
browser同步...
>值得一提的是hostname 與 ip的對應該是設定/etc/hosts這個檔較沒有問題
>不知我所說的是否有不對若有還請各位先進指正~~謝謝...^^
hosts 檔是應用在純 IP 網路上﹐
但如果您使用MS network 而跑 IP ﹐
就會用一個所謂的 netbios over ip 的技術﹐
而 lmhosts 則是給 MS network 用的。
如果您有 WINS 伺服器的話﹐相對而言﹐
可以解決部份 cross-subnet browsing 問題。
但如果您使用 MASQ 來偽裝 sub net 的話﹐
您可以到下面地址看看﹕
http://malt-whisky.student.utwente.nl/nbfw/background.html
那裡說﹕
The root cause is the use of ip-address inside the body of an ip-packet. The
masquerading software only rewrites the ip-addresses in the header of the
packet, leaving the ip-addresses in the body untouched.
相信您可以更好的了解什麼是 betbios over ip 吧﹕
我們可以這樣理解﹕
雖然我們可以使用 hosts 檔以決定 packet header 的 IP 地址﹐
然而在封包 body 裡面的 IP 地址﹐則要靠 lmhsots 了。
不知道弟說的對不對呢﹖還望指正。謝謝﹗