clh333
07-13-2005, 12:36 PM
I am running Linux Red Hat 9 as my OS and have established connectivity to a D-Link DI-624 wireless router. The router is connected to the internet through a cable modem, and the router acts as a DHCP server for the LAN. On this LAN are four WinXX machines and the Linux box in a peer-to-peer network arrangement. I am attempting to configure Samba, not sure the version, but the one that came with the RH9 distribution, on this machine (2.2.7a?)
The WinXX machines could, until recently, all see and communicate with each other. (There is no WINS server appointed so it is a polling / election process). The Linux machine could see this network, and could access the machines on the LAN. It can also print to the printer attached to one of the WinXX machines.
However, the WinXX machines can not see the Linux box. Here is what I have tried in the attempt to make the Linux box visible to the network:
First I checked the smb.conf file. I saw that the name of my group was wrong, so I edited that with vi. I also changed a few settings concerning the election process. I rebooted the machine. Then I checked the file with testparm. Everything was OK syntactically speaking. But I still couldn't see the Linux machine from the P2P network.
I went to the DHCP screen of the wireless router and saw that the MAC address but not the alias of the linux machine was represented in its table: “,(mac address)” i wondered if there were a problem with the firewall. I stopped the firewall with the /etc/inet.d/iptables stop command.
I then checked to see what was happening with the client processes, the “daemons”:
[root@Dragon root]# smbclient -U% -L localhost
added interface ip=192.168.0.101 bcast=192.168.0.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost failed
[root@Dragon root]#
I took down and restarted the eth0 interface, and added a couple of aliases to the list of names. After this I ran the daemons by hand to be sure they were up and running: (my book said they would be in /usr/local/samba/bin but they were in /usr/sbin instead)
[root@Dragon sbin]# smbd -D
[root@Dragon sbin]# nmbd -D
[root@Dragon sbin]# smbclient -U% -L localhost
added interface ip=192.168.0.101 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[HOME] OS=[Unix] Server=[Samba 2.2.7a]
tree connect failed: NT_STATUS_WRONG_PASSWORD
[root@Dragon sbin]#
[root@Dragon sbin]#
Huuh? Now the WinXX machines that are wireless are able to recognize each other, but the laptop, which is wired to the router through a LAN port (as is the Linux machine) is no longer visible to the other WinXX machines. And the P2P network is no longer visible to the Linux machine. I probably need to go back to a default version of the smb.config file and start over. And I don't know why the daemons weren't running in the first place.
Any suggestions concerning where I have gone wrong or how to get back on track will, as always, be greatly appreciated.
-CH-
The WinXX machines could, until recently, all see and communicate with each other. (There is no WINS server appointed so it is a polling / election process). The Linux machine could see this network, and could access the machines on the LAN. It can also print to the printer attached to one of the WinXX machines.
However, the WinXX machines can not see the Linux box. Here is what I have tried in the attempt to make the Linux box visible to the network:
First I checked the smb.conf file. I saw that the name of my group was wrong, so I edited that with vi. I also changed a few settings concerning the election process. I rebooted the machine. Then I checked the file with testparm. Everything was OK syntactically speaking. But I still couldn't see the Linux machine from the P2P network.
I went to the DHCP screen of the wireless router and saw that the MAC address but not the alias of the linux machine was represented in its table: “,(mac address)” i wondered if there were a problem with the firewall. I stopped the firewall with the /etc/inet.d/iptables stop command.
I then checked to see what was happening with the client processes, the “daemons”:
[root@Dragon root]# smbclient -U% -L localhost
added interface ip=192.168.0.101 bcast=192.168.0.255 nmask=255.255.255.0
error connecting to 127.0.0.1:139 (Connection refused)
Error connecting to 127.0.0.1 (Connection refused)
Connection to localhost failed
[root@Dragon root]#
I took down and restarted the eth0 interface, and added a couple of aliases to the list of names. After this I ran the daemons by hand to be sure they were up and running: (my book said they would be in /usr/local/samba/bin but they were in /usr/sbin instead)
[root@Dragon sbin]# smbd -D
[root@Dragon sbin]# nmbd -D
[root@Dragon sbin]# smbclient -U% -L localhost
added interface ip=192.168.0.101 bcast=192.168.0.255 nmask=255.255.255.0
Domain=[HOME] OS=[Unix] Server=[Samba 2.2.7a]
tree connect failed: NT_STATUS_WRONG_PASSWORD
[root@Dragon sbin]#
[root@Dragon sbin]#
Huuh? Now the WinXX machines that are wireless are able to recognize each other, but the laptop, which is wired to the router through a LAN port (as is the Linux machine) is no longer visible to the other WinXX machines. And the P2P network is no longer visible to the Linux machine. I probably need to go back to a default version of the smb.config file and start over. And I don't know why the daemons weren't running in the first place.
Any suggestions concerning where I have gone wrong or how to get back on track will, as always, be greatly appreciated.
-CH-