View Full Version : smb coneection failed
Willem Jacobuss
2005-06-29, 06:49 AM CDT
I am running FC3 in a windows environment and mount some windows shared folders at boot up. DHCP/DNS server is our ADSL modem/router. Occasionally (after a power down) the router assigns a new ip address to the various boxes on the network.
For some reason my linux box keeps looking for the old ip address.
I cant figure out when linux keeps that info. Not in /etc/hosts and not in smb.conf for sure!
So where is the DNS info stored and more importantly how is it refreshed??
ieuuk
2005-06-29, 07:01 AM CDT
have a look in /etc/sysconfig/networking/profiles/(profilename)/ifcfg-(devicename)... you probably need to set it to dhcp
ieuuk
2005-06-29, 07:02 AM CDT
this is my if it helps /etc/sysconfig/networking/profiles/default/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.0.20
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME=linux.mshome
USERCTL=no
PEERDNS=yes
GATEWAY=192.168.0.1
IPV6INIT=no
Willem Jacobuss
2005-06-29, 07:05 AM CDT
:D of course!! such an obvious place!!! Why didnt i think of that.
Thanks a million pal!!
Willem Jacobuss
2005-06-29, 02:04 PM CDT
No luck sofar. It still keeps using the old ip address, doesnt seem to be wanting to use DNS to look up the new ip address!
dovla
2005-06-29, 10:45 PM CDT
Just run system-config-network as root and check the 'use DHCP' box. Then
'service network restart' and see if that one returns all 'OK'. If so, you should be fine.
Otherwise, you may check if there is a reserved IP address for that particular MAC address on your DSL router.
Willem Jacobuss
2005-08-24, 02:08 PM CDT
finally found some time to revisit this problem: i found a file called gencache.tdb. Renamed the file and at startup a new gencache.tdb is generated with the correct info.
Might be helpful for somebody!!
kosmosik
2005-08-24, 02:26 PM CDT
1. do you use DNS names for all your machines and your router (the one that assigns addresses via DHCP) is DNS?
2. do you use only NetBIOS networking names without DNS?
in second case it is the nature of SMB - it sometime fails ;)
I suggest that probably the best option is to assign static addresses via DHCP and give every host a name coresponding to its NetBIOS name - this way your network should be quite stable.
Willem Jacobuss
2005-08-24, 02:39 PM CDT
Yes i use DNS/DHCP throughout. The router is an Alcatel Speedtouch Pro.
Since the router hardly ever get switched off, the whole setup is almost static. Only once in a blue moon the router gets switched off and decides to assign new ip addresses to the various machines. The strange thing was that in one case the smbmount kept working just fine and with another machine not. I cld not get samba to refresh the ip address for this one machine until i found and renamed the gencache.tdb file.
Thanks for the help Kosmosic!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.