Printable Version | Subscribe | Add to Favourites
New Topic New Poll New Reply
Author: Subject: linux noob networking
liam.mccaffrey

posted on 21/7/05 at 10:20 PM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
unixguy

posted on 21/7/05 at 10:58 PM Reply With Quote
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]

View User's Profile View All Posts By User U2U Member
liam.mccaffrey

posted on 21/7/05 at 11:12 PM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
unixguy

posted on 21/7/05 at 11:19 PM Reply With Quote
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 :]

View User's Profile View All Posts By User U2U Member
craig1410

posted on 21/7/05 at 11:45 PM Reply With Quote
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.

View User's Profile Visit User's Homepage View All Posts By User U2U Member
liam.mccaffrey

posted on 22/7/05 at 12:07 AM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
liam.mccaffrey

posted on 22/7/05 at 12:09 AM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
britishtrident

posted on 22/7/05 at 06:43 AM Reply With Quote
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.

View User's Profile View All Posts By User U2U Member
unixguy

posted on 22/7/05 at 07:39 AM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
ned

posted on 22/7/05 at 10:39 AM Reply With Quote
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

View User's Profile E-Mail User Visit User's Homepage View All Posts By User U2U Member
unixguy

posted on 22/7/05 at 12:08 PM Reply With Quote
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 :]

View User's Profile View All Posts By User U2U Member
britishtrident

posted on 22/7/05 at 12:46 PM Reply With Quote
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]

View User's Profile View All Posts By User U2U Member
britishtrident

posted on 22/7/05 at 12:50 PM Reply With Quote
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]

View User's Profile View All Posts By User U2U Member
liam.mccaffrey

posted on 22/7/05 at 05:07 PM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
liam.mccaffrey

posted on 22/7/05 at 06:58 PM Reply With Quote
have had a play with webmin and think i have made some progress

[img][/img]





Build Blog
Build Photo Album

View User's Profile View All Posts By User U2U Member
unixguy

posted on 22/7/05 at 07:17 PM Reply With Quote
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 :]
View User's Profile View All Posts By User U2U Member
liam.mccaffrey

posted on 23/7/05 at 12:53 PM Reply With Quote
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

View User's Profile View All Posts By User U2U Member
britishtrident

posted on 24/7/05 at 09:02 AM Reply With Quote
Windows (and linux) users also need to be created as samba users.
View User's Profile View All Posts By User U2U Member

New Topic New Poll New Reply


go to top






Website design and SEO by Studio Montage

All content © 2001-16 LocostBuilders. Reproduction prohibited
Opinions expressed in public posts are those of the author and do not necessarily represent
the views of other users or any member of the LocostBuilders team.
Running XMB 1.8 Partagium [© 2002 XMB Group] on Apache under CentOS Linux
Founded, built and operated by ChrisW.