liam.mccaffrey
|
posted on 21/7/05 at 10:20 PM |
|
|
linux noob networking
i have a linksys broad bean router with a couple of win xp pc all working happily together.
I have utilised a mini-itx pc and loaded redhat 9 without problems. now i wanted to share a folder on the linux box with the other windows machines.
I have set it all up with samba but the windows pc can't access the share. The liux pc shows up in mshome but i get this error message when i
click on it.
Image deleted by owner
i have tried every permutation of setting on both machine any ideas guys?
[Edited on 21/7/05 by liam.mccaffrey]
[Edited on 21/7/05 by liam.mccaffrey]
Build Blog
Build Photo Album
|
|
|
unixguy
|
posted on 21/7/05 at 10:58 PM |
|
|
Apparently two machines have the same hostname/IP address. Try changing the IP address/hostname of the Linux machine.
Hope that is of some help :]
[Edited on 21/7/05 by unixguy]
|
|
liam.mccaffrey
|
posted on 21/7/05 at 11:12 PM |
|
|
i have tried stuff like that nothinng is duplicated that i can see
i don't know what is going on
Build Blog
Build Photo Album
|
|
unixguy
|
posted on 21/7/05 at 11:19 PM |
|
|
Well, it may be something that I tend to call "Windows syndrome"..
However, check the following things:
What is the Hostname and IP address on the Linux box? [the "ifconfig" command will get you that info]
What are they on the Windows machine[s]?
Are any of the machines configured to get their IPs via DHCP?
If you paste those details here, I can help more :]
|
|
craig1410
|
posted on 21/7/05 at 11:45 PM |
|
|
Liam,
I notice in the error message above that you are trying to access "\\Localhost"
Are you aware that each machine on a network refers to itself as "localhost" and usually has an IP address associated with this name of
127.0.0.1?
Your Linux box should have a network name itself and an IP address typically of the form 192.168.x.y where x and y can be whatever you like (with a
few exceptions). Your router might be acting as a DHCP server and will therefore allocate IP addresses to all those machines connected to it.
As mentioned above, can you provide the output from "/sbin/ifconfig" on the linux box and "ipconfig /all" on the windows box.
Note that this is not a typo, linux uses IFconfig and windows uses IPconfig.
Cheers,
Craig.
|
|
liam.mccaffrey
|
posted on 22/7/05 at 12:07 AM |
|
|
this is the output of the linux box ifconfig
"
eth0 Link encap:Ethernet HWaddr 00:40:63:C8D:F7
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:610 errors:0 dropped:0 overruns:0 frame:0
TX packets:310 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:165809 (161.9 Kb) TX bytes:36167 (35.3 Kb)
Interrupt:11 Base address:0xe800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18028 errors:0 dropped:0 overruns:0 frame:0
TX packets:18028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1230197 (1.1 Mb) TX bytes:1230197 (1.1 Mb)"
Guys i really appreciate your help. this is my first night on linux and i don't thik i am going too well
Build Blog
Build Photo Album
|
|
liam.mccaffrey
|
posted on 22/7/05 at 12:09 AM |
|
|
this is the ipconfig /all output on the windows machine
Windows IP Configuration
Host Name . . . . . . . . . . . . : LIAM
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VIA Rhine II Fast Eth
Physical Address. . . . . . . . . : 00-11-2F-92-F3-90
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.100
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 194.72.0.114
194.72.9.38
Lease Obtained. . . . . . . . . . : 22 July 2005 00:49:52
Lease Expires . . . . . . . . . . : 23 July 2005 00:49:52
go easy on me guys its my first time
[Edited on 22/7/05 by liam.mccaffrey]
Build Blog
Build Photo Album
|
|
britishtrident
|
posted on 22/7/05 at 06:43 AM |
|
|
Seems to be a few things wrong -- as has already been pointed out each machine on the network have have different name but the workgroup should be
the same. After that you will need to reboot check the network out by pinging each IP address. To save time down load Angry IP to a Windows PC and
use it to scan the range of IP adresses you are using --- http://www.angryziber.com/ipscan/
I also check that the only DHCP server loaded is the one running on the router -- Windows Xp has a DHCP server built in for internet connection
sharing that can cause real problems, also Red Hat may have its DHCP server installed by default if you selected the "server" option from
Anaconda when installing --- Red Hat tries to install to many servers by default.
If the above dosen't work try booting from a Knoppix or Kanotix cd and see if it can seen the network.
Once that lot is up and running you will run into Samba --- which requires a fair bit of work to get working properly in Red Hat.
Usually the easyiest and best way to do this is install Webmin but be aware Webmin introduces security loop holes unless you lock it down so it can
only be accessed locally.
|
|
unixguy
|
posted on 22/7/05 at 07:39 AM |
|
|
The first thing you should check is whether you can ping your windows machine from the Linux machine. Type "ping 192.168.1.100" on a
command line.
|
|
ned
|
posted on 22/7/05 at 10:39 AM |
|
|
is this a network problem or a permissions problem. i very recently set somethin gup like this, i had to fiddle my samba.conf file to get the
permissions correctly, there are loads of examples of basic .conf files on the web.
Ned.
beware, I've got yellow skin
|
|
unixguy
|
posted on 22/7/05 at 12:08 PM |
|
|
If he can ping Windows from Linux, and vice versa, then it is not a network problem, but likely a Samba configuration problem.
Debugging on a forum is so inefficient :]
|
|
britishtrident
|
posted on 22/7/05 at 12:46 PM |
|
|
quote: Originally posted by ned
is this a network problem or a permissions problem. i very recently set somethin gup like this, i had to fiddle my samba.conf file to get the
permissions correctly, there are loads of examples of basic .conf files on the web.
Ned.
Samba server config is really easy to do using Webmin --- in fact I do 99.9% of any changes to any part of my Linux system using Webmin it is well
worth installing.
The only downside is care has to be taken to restrict the IP adreses than can access it, I just block anythng except 127.0.0.1 and one other PCs IP
address.
[Edited on 22/7/05 by britishtrident]
|
|
britishtrident
|
posted on 22/7/05 at 12:50 PM |
|
|
quote: Originally posted by unixguy
If he can ping Windows from Linux, and vice versa, then it is not a network problem, but likely a Samba configuration problem.
Debugging on a forum is so inefficient :]
Angry IP scanner (Windows) is great for pinging out mixed networks, the Linux/Unix scanners are good and powerfull but aren't as quick and easy
to use for a newbie.
[Edited on 22/7/05 by britishtrident]
|
|
liam.mccaffrey
|
posted on 22/7/05 at 05:07 PM |
|
|
i can ping to and from the linux box
gonna have a go with webmin now
[Edited on 22/7/05 by liam.mccaffrey]
Build Blog
Build Photo Album
|
|
liam.mccaffrey
|
posted on 22/7/05 at 06:58 PM |
|
|
have had a play with webmin and think i have made some progress
[img][/img]
Build Blog
Build Photo Album
|
|
unixguy
|
posted on 22/7/05 at 07:17 PM |
|
|
That looks better. However, you don't appear to have permission to access the Linux machine from the Windows machine. Have a look in
/etc/samba/smb.conf, /etc/smb.conf , or /etc/samba.conf, or.. wherever your distro keeps it.. First look at the "hosts allow =" line, and
make sure the IP address of your Windows machine is there. The file is well commented, and reading through it should make you aware of any other
misconfigurations. I'm sure that RedHat has a GUI tool for doing this, so you might want do do it that way if you dont like conf files :]
|
|
liam.mccaffrey
|
posted on 23/7/05 at 12:53 PM |
|
|
had a look at that file, and it doesn't appear to have "hosts allow=" line in it could it be worded differently or is that maybe the
problem?
Build Blog
Build Photo Album
|
|
britishtrident
|
posted on 24/7/05 at 09:02 AM |
|
|
Windows (and linux) users also need to be created as samba users.
|
|