![](https://img.51dongshi.com/20250105/wz/18528824052.jpg)
ubuntusambadns??以下是為了讓ubuntu進(jìn)入windows網(wǎng)絡(luò),實(shí)現(xiàn)互ping,互連??1.ubuntu進(jìn)入windows網(wǎng)絡(luò),必須安裝samba?Shell代碼?sudoapt-getinstallsamba??2.修改/etc/samba/smb.conf,將winsserver修改為正確的ip????可以在windows上,敲入ipconfig/all得到具體ip?3.重啟服務(wù)?Shell代碼?sudoservicenmbdrestart??4.驗(yàn)證下?Shell代碼?nmblookup-R-U
??5.這時(shí)windows就可訪問ubuntu,可以直接ping通?6.ubuntu互ping,需要設(shè)置searchdomain?Shell代碼?echo'searchabc.com'>>/etc/resolv.conf??-----??1.如果IP改變后,wins_server的緩存的ip不正確了,?可以刪除以下兩個(gè)文件?/var/cache/samba/wins.dat?/var/cache/samba/browse.dat?然后重啟nmbd即可?2.如果ubuntuping時(shí),ip仍然不正確,檢查下dnsserver????(這塊還沒有搞清楚,試試換備用server,或者等等dns同步)?3.???-------??如果只是為了互連互通,只需要nmbd服務(wù)即可?如果還需要windows共享文件的服務(wù),需啟動(dòng)smbd?本文來自系統(tǒng)大全為您提供如需轉(zhuǎn)載請注明!推薦win10下載