LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't get home network working (https://www.linuxquestions.org/questions/linux-networking-3/cant-get-home-network-working-398794/)

Justbill 01-02-2006 06:19 PM

Can't get home network working
 
I have been doing a TREMENDOUS amount of reading on this subject the last couple of weeks, and have really gotten nowhere!
I have 2 computers sharing an internet connection on a Belkin F5D5231-4 router. This is a hard wired network. When I first connected the computers to the router, they were both able to connect to the internet with no problem. I then tried to print something, and found that I had change my printer settings on box 1, that has the locally connected printer. I had to change to a "shared" printer. This led to believe that the 2 machines were "seeing" each other. To try to make this long story painfully short, I have changed the "Hostname" and "Domainname" on each computer, I have tried to set the IP addresses (in Network Configuration ), but when I change them, I lose my internet connection. The primary DNS is 192.168.2.1 . There is no secondary. I tried to ping each computer using the hostname, but that came back "unknown Host". Am I asking to much of my router here? I'm hoping there is a way to do this. Here are my specs:

Box1
dual booting Win. XP & Fedora Core 4
Compaq Presario SR1426NX
2.93GHz Pentium 4
512MB PC2-3200 DDR2 SDRAM
160GB 7200RPM Serial ATA hard drive

Box2
dual booting Win. 98 & Centos 4.2
HP Pavilion
500MHz Celeron
256MB RAM
80GB hard drive

My router, as I said earlier, is a , Belkin F5D5231-4 router.

I think I am almost there with this, I just seem to missing something here, and I believe what I am not entirely understanding is the whole IP address thing. I've been trying to get things started with this
tutorial, but I think the problem is that I have a router, and he is using a crossover cable. I just don't know!
Any Help would be greatly appreciated

Thanks
Justbill

halvy 01-03-2006 12:30 AM

i wouldn't use my router as a dns server too.. but thats just me.

ruuster 01-03-2006 02:21 AM

You may want to start at the beginning. You know, "I am building a home network with the purpose of creating a ......... I need to run a DNS in this private space even though I have only 2 host systems because ........."

I am very curious why you are running a DNS. Are you hosting something like a web server that Internet clients can connect to?

Justbill 01-03-2006 06:11 AM

O.K. So maybe I'm on the wrong track here. All I want to do is file share between the two machines, and be able to use the printer, that is locally connected to box1 (usb), from box2. I guess I've mis-understood what I've been reading, I thought I had to do it through DNS. I guess my first mistake here was the "I thought" :-)

Thanks
Justbill

Poetics 01-03-2006 07:50 AM

DNS has almost nothing to do with file/print sharing. To share files between Windows & Linux boxes you'll look up a program called Samba. Samba will also allow you to share the printer.

kbuk 01-03-2006 08:33 AM

By the sound of it the router is at 192.168.2.1 ( it's the default gateway if you use dhcp).

If you can set the ip addresses to be static, that will be easier for you. That could either be using the mac address to set a static address on the router, or manually assigning the address (but then you'll need to do gateway, dns server etc.

There are 2 different ways of sharing the printer. CIFS/SMB with Samba & Windows or unix / linux with lpr (or similar).

If the one with the printer mainly runs windows then you're probably best with samba.
When it's running windows you'll need to share it under samba. Then the 2nd computer will print using samba no matter if the first is windows or linux.

If the pc with the printer has a static ip, then it will be easier

halvy 01-03-2006 10:45 AM

if you use a static addy, just make sure it is on a seperate nic card than the one you use to acess the router (net).

you need dhcp on for that nic connection... or you'll have no internet.

bdogg 01-03-2006 10:47 AM

he has a belkin router... There is nothing wrong with disabling the DHCP option on that belkin and assigning static addresses to all of the host computers (on the nics he connects to the router), there will still be internet.

Justbill 01-03-2006 12:35 PM

I think I need to clear something up here! We have Windows on both these machines, but never really boot Windows. We use our linux OS's, almost exclusively! I would like to have the 2 machines be able to fileshare, and be able to print from box2, to the printer locally connected (HP 1315psc usb) on box1. I tried using NFS, and so far have been unsuccesful. I have tried to ping box2 from box1 and visa versa, with no success! So, if some one can point me in the right direction here, weather it be a tutorial, or different hardware, or whatever, it would be greatly appreciated. Currently (and this may be the problem, I just don't know) I have 1 ethernet card in each computer, both connecting to the router, is this where I begin? But I am not trying to communicate Linux to Windows, I am trying to communicate Linux to Linux (FC4 to CentOS 4.2)

Thanks
Justbill
afterthought: My internet connection is broadband (cable)

cuiq 01-03-2006 12:53 PM

I use a four port printer switch, cost me $12 at tiger direct. It's usb and I just press a button for which ever computer I want to print from. This works because my computers are not that far from each other and we don't really do a whole lot of printing. Of course this may not be ideal if you have one computer upstairs and there is nobody to push the button for you :lol:

Just a thought.

ruuster 01-03-2006 02:43 PM

Can't ping? OK, DNS, DHCP, Samba, Windows, etc. all goes to the back burner. You have a very basic network issue.

Are both hosts connected to the Belkin router, either directly or through a switch or hub?

If you are using a switch or hub, is it connected to the router? Links?

Can you ping the router from either host?

Do both systems have the interfaces up with IP addresses? (ifconfig -a on both systems)

Do you have link leds lit on the NICs and the ethernet interfaces in the router, switch, or hub?

kbuk 01-03-2006 03:40 PM

Note to halvy and bdogg, I said nothing about disabling DHCP, that's still very useful when additional pc's are connected (if ever, eg someone visiting with a laptop). This issue was either restricting the DHCP pool to less than the entire /24 OR entering the MAC addresses so the router assignes them the same address every time.

But to the point at hand As ruuster states, there are some VERY BASIC network issues here.
Are the all the computers plugged in, switched on and have network cables connecting them.
Do the nics / ports on the router have link lights?

Do you know the ip addresses of each computer

Justbill 01-03-2006 05:45 PM

OK, I'm going to do the best I can here. I am no guru by any means, so go easy on me guys!:)
First off, both computers are directly connected to the Belkin (4port) router. The lights on the router are on , on port 1 & 2. The lights are on, on the ethernet cards, in each computer. There is no hub or switch, they plug directly into the router. Box1 is on port 1, and Box2 is on port 2. So far I have only been able to ping 127.0.0.1 , from either computer. I am not sure how I would ping the router, except to type in "ping Belkin", or "ping router", which I have tried, and the response was "unknown host". I also tried to ping each computer using the host&domain name, and got the same response, "unknown host". I typed in ifconfig -a , and got "command not found". I thought the 192.168.2.1 was the address, so I guess the answer would be no, to the do you know the IP address of each computer. How would I find them out? Both computers have successfully been accessing the internet with no problem. So, if this is a very basic networking issue, I guess what I need to do is start from scratch here and simply ask, what do I do?

Thanks Much
Justbill

michaelk 01-03-2006 05:45 PM

How are the computers presently configured, static or dynamic IP address?
Can you ping the router by IP address?
Can you ping the other computer using its IP address?

If configured using a static IP address then the /etc/resolv.conf file is not being updated from the router. This DNS nameserver data from the router is just for the internet and not your local network. Which is the reason you can not ping your computers by their hostname.

With 2 computers the simplest and quickest solution would be to use static IP addresses and add an entry to the /etc/hosts file with the IP address and hostname of each computer. The will resolve IP address to hostname without using DNS. You will also need to update the /etc/resolv.conf file to add the nameserver info from the router.

michaelk 01-03-2006 05:51 PM

It appears that your PCs are configured for dynamic IP address.
To find out the IP address of your PC type in a console window:
/sbin/ifconfig eth0

The router's manual should show its default IP address. But I would guess it to be
xxx.xxx.xxx.1 from the results of the output of ifconfig command. xxx being the same as your IP address.

According to the documentation I have found the default IP address is
192.168.2.1.

Also posting the results of the console command route will indicate the default gateway for the PC. Look for the line that has a UG. This will be the IP address of the router.

Justbill 01-03-2006 06:01 PM

I really am not sure how they are configured (static or dynamic). When I open /etc/resolv.conf using vim , this is what I get:

; generated by /sbin/dhclient-script
search Belkin
nameserver 192.168.2.1

At this point Simple sounds pretty good! Evidently this whole network thing is a little beyond what my abilities are!

The only experience I have with /etc/hosts is when I changed the hostname and domainname from "localhost.localdomain" to "Goliath.justbillsguitars.com" on box1, and "Ulysses.justbillsguitars.com" on box2. I am using the "Gnome" desktop on both machines, and when I changed names "Gnome" had a hissy fit :-) , and wanted it changed in /etc/hosts.

Thanks
Justbill

Justbill 01-03-2006 06:33 PM

OK, I may have gotten somewhere with this! when I typed /sbin/ifconfig eth0 on each computer the inet address on each computer had a different last number. The Bcast, and the Mask were the same. I did ping the number I got from box2 on box1 successfully, and also the other way around.

I never did see a line with a UG in it , and, unfortunatly I no longer have the manual for the router. I did successfully ping 192.168.2.1 which is a different number (the last digit) than the inet address that /sbin/ifconfig eth0 gave me for each computer, so I guess we can assume this is the router.

So, Where do I go from Here?

Thanks Much
Justbill

halvy 01-03-2006 08:49 PM

Where do you want to go.. OH, never mind, that saying has been patented :(

It sounds like you are making real progress.

Originally you just wanted to file share among lin, and printing.

File sharing can be done several ways, depening on your needs and tastes.

ssh is good for quick and dirty command line copying (but be careful, it does NOT warn when overwriting!!).

AND it does not do RECURSIVE copying (ie. digging into directories).

For that you could use scp (cp command, using ssh), and the -r switch (for recursive). There are other ways like netcat & resync, but I'v never got to the point of being able to learn them.

Remember man is your best friend :)

Ftp (i found) is a pain with such a small setup, but maybe someone has new light on this subject to share.

Printer sharing I'll leave to the others guys (with samba experience).. although i'd make sure that your printer is supported (and/or) working in your distro before tackling printing over your network.

Dont' be discuraged or upset.. learning the basic (concept) with even a simple network like this is NOT easy.

However, once you 'get it', you will have the ability to grasp the larger projects and all the other qool things that come with knowing nets :)

Justbill 01-03-2006 09:54 PM

Alrighty Then!
 
It seems like now I know what my IP addresseses are,so, now that I have that, and I have used the NFS server configuration tool, I have added a share, put the IP address of the computer I want to let have access to that file in the host box, how do I access this file, or this computer (box1) from box2?

Thanks
Justbill

ruuster 01-03-2006 10:05 PM

Congratulations. You now have a network. NFS under commercial Unix provides a virtual drive. I am not sure if this is true with Linux. I have not set up NFS on my Linux servers. BTW: Which Linux distribution are you running?

Justbill 01-03-2006 10:18 PM

Fedora Core4 on box1, CentOS 4.2 on box2

Justbill

Justbill 01-04-2006 06:06 PM

I have read quite a bit of help files , and documentation on NFS, and it seams simple enough to add a share, and set the permissions. I have not been able to figure out how to access the added share from the other computer. I can find information for NFS as a server, but how does the client access? So far I have attempted to add a share on box1, I can't figure out how to access it from box2. Can anyone help with this, or is there another way to do what I am wanting to do (print/fileshare) from box1 to box2. Both boxes are Linux distrobutions, box1 is Fedora Core 4, box2 is CentOS 4.2

Thanks Much
Justbill

kbuk 01-04-2006 06:21 PM

to use a nfs share you need to mount it
typically mount ipaddy:path_from path_to does the trick. (I'm assuming that you've done a default install on both boxes so the services/daemons are running

eg
mount 192.168.2.3:/home/games /home/otherbox/games

You may want to put something like that in /etc/fstab (the file that it uses to mount stuff at boot time. If you did then it would look likt he following

192.168.2.3:/home/games /home/otherbox/games nfs defaults 0 0




to "share" the directories edit
/etc/exports
a typical line would look like
/home/games 192.168.2.0/255.255.255.0(rw,insecure,root_squash)

that's read/write, assume it's insecure and don't let root do stuff with it
192.168.2.0/255.255.255.0 (network address/netmask) says anyone behind your router can access that share.

Justbill 01-07-2006 04:51 PM

Well, Iv'e been trying to not bother anyone with more of my questions,but...............

I have been trying to file share with no luck at all, for the last week. I have been using the above instructions (which seem to be getting me closer to success than anything), but at this point when I try access from box2, I get a message " could not mount NFS share ipa.ddr.e.ss server is down". I have tried different variations, and have tried using the gui to accomplish this but still NO LUCK!

Can anyone tell me, did I miss something, if it says the server is down (and the computer I was trying to access was on, and logged into my page when I tried this from box2), was I supposed to configure box1 as a server? If so, how do I do this?

Thanks

a very confused
Justbill

how depressing: a little plastic box, that is supposed to do what I tell it via the keyboard, is not only not cooperating, but I think its mocking me!

halvy 01-07-2006 08:09 PM

i'm sorry i don't have alot of experience with nfs.

sun.com should have some good docs.. it's their baby.

the only thing i remember when i messed with nfs is that the the 'sever' needs to be up and running BEFORE you fire up your client (ie the machine you will be printing from).

now although might be ONE way to do things.. it is a start.

you should see in your logs (if the start up screen goes by tooo fast) that your sys 'found' the share and mounted it.

this is why it is important to understand and do what the other posters have said about mounting in fstab and possible mtab.

you may want to look into nx.. i think it uses nfs .. but not sure.. either way i think it will be more user friendly to get you started.

if it is any consulation, sharing printers is not one of linux's strong points (afaik).

lettuce know :)

halvy 01-07-2006 08:18 PM

sorry i had a double post here by accident and i cant' see how to delete a post.

Justbill 01-09-2006 06:47 PM

Hi Guy's

I'm not sure but I think I might be making some progress with this. First, I had no luck at Sun's site. All I could find was documentation on current products. I tried adding box2's IP address to the /etc/hosts.allow file, but everytime I tried to mount box1 from box2 I got "must specify file system type" message. Hmmmm got me puzzled! So, does anybody have any ideas what I might try next. My brain is about to melt down trying to outthink this silly machine :-).

Thanks
Justbill

halvy 01-09-2006 07:38 PM

i meant that nfs was suns baby... not the hardware you are using.

have you looked into nx so you can accomplish your goal of printing first.. and then tackle something as harrowing as nfs? :)

Justbill 01-09-2006 08:29 PM

I'm kind of wondering............. It ust occured to me, on box1 I'm using FC4 on ext.3 file system, on box2 I'm using CentOS 4.2 on ext.2 file system. Could it be being quirky because I'm trying to communicate ext2 to ext3 ? I dunno.

Justbill

Habu 01-09-2006 09:14 PM

Ok, let's do this step by step. If you haven't gotten tcp/ip working right, her goes. Your router probably has the ip address 192.168.2.1 (or so i gather from the previous posts).

1. Ping 192.168.2.1 from either machine, you should be getting a response.

2. If (1) didn't work, maybe the router isn't at 192.168.2.1. As michaelk suggested, run /sbin/route and look for the line that says "default" and look under the gateway collumn - this would be your router ip address. Try pinging that address, it should work.

3. Now, you need to find out the ip addresses of you two computers. /sbin/ifconfig will show this. Next, try pinging each machine's ip from the other. Example: if comp1 is at 192.168.2.3 and comp2 is at 192.168.2.4, then
from comp1 if you ping 192.168.2.4 you should get a response, and vice versa. Don't worry about pinging hostnames for now, just use the ip addresses.

4. If your two computers successfully pinged each other then they're "seeing" each other. At this point you may want to statically set both computers' ip addresses. There's nothing wrong with this, except make sure to set the "default gateway" to your router's ip address. And for DNS, if you know your isp's dns server addresses, type them in for primary and secondary. If you don't know your isp's dns server addresses, try just filling in your router's ip address as the primary dns server, and leave the secondary blank. If you correctly set the gateway and dns addresses, you should be able to access the internet, with static ip addressing. Static addressing would be easier for the file/print sharing later.

5. Now, that the network is fine, it's time for the file,print sharing. If you want to use NFS try disabling the firewalls on both machines first. NFS uses randomly allocated ports that iptables doesn't like. I'd suggest you use samba, as the configuration for both file and printer sharing is in one place, and it's compatible with windows as well. If you're not afraid of the command line you could have a go at editing the samba configuration file (smb.conf) manually, that way you'll have a better idea of how it works. Otherwise your distro might have provided a gui to do this. Some things to keep in mind:
- when you edit the samba server configuration, you'll need to put in a samba hostname. This is in no way related to the unix hostname, and you shouldn't need to touch the unix hostname configs.
- for the initial configuration, turn off the firewall (iptables) on both machines. Later on we can turn it back on and open the neccessary ports. If you're behind a router you're relatively safe anyway.

Here's a guide to setting samba up: http://users.pandora.be/sim/linux/samba.htm

6. Post back here if you have trouble getting it working, or just to tell us how you're getting on. Good luck!

Justbill 01-09-2006 09:42 PM

Hi Habu!
I got through step 3 with no problems! I can ping my router, and each computer from each other. I have the ip addresses for the router and the 2 computers. I'm not real clear on the statically setting the ip addresses on the computers :-( I believe I have my isp's address 68dot184dot201dot45 , does this sound correct? I thought Samba was strictly a Linux to Windose application, I am using FC4 to CentOS 4.2, will Samba work that way also? I took a look in the Domain Name System (Desktop>SystemSettings>ServerSettings>DomainNameSystem) whats up with the A thru M ROOT-SERVERS.NET and they all have a different IP address? I am somewhat comfortable with command line, but still find myself needing some clear instructions. And I have a small amount of experience with vim.

Thank you all for responding to my posts, and for all the help you have been! I already have learned alot, and am sure in time will get this working!

Thanks
Justbill

halvy 01-09-2006 10:55 PM

yes you will get it working :)

as far as having ext2 & 3 on dif partitians, i seriously doubt that would be the issue here.

i use ext2 ALWAYS because it is MUCH faster at copying/moving, etc.

ext3 is more of a journaling type sys than 2 and is therefore slower.

i don't care as much about 'journaling' because i backup everything regularly using the; son, father, grandfather backup scheme.

Habu 01-09-2006 11:14 PM

Your isp's address is on the external side of your modem/router.

Internet <- 68.184.201.45(modem/router external) || 192.168.2.1(modem/router internal) <- 192.168.1.x (your computers)

You don't have to worry about that side of things. In the configuration for your network cards, there'll be the option to automatically configure ip addresses using dhcp, or to manually set them. If you manually set them that's static addressing. Here's a very basic explanation of dhcp: http://bucarotechelp.com/networking/97091950.asp

Samba will work. Samba is basically a program that emulates Windows' Netbios/SMB system, for unix/linux. It's main uses are for windows-nix communication, because unixes already have other methods of talking to each other, but it can be used for nix-nix communication too. You'll just have to configure and run samba on both your fedora and centos computers. The domain name system settings under "server settings" are for running a dns server, you definitely don't want to go there. But just as a side note, the A-M root servers are main dns servers that take care of domain names on the internet. They're only important if you want to run your own dns server.

Habu 01-09-2006 11:51 PM

Your isp's address is on the external side of your modem/router.

Internet <- 68.184.201.45(modem/router external) || 192.168.2.1(modem/router internal) <- 192.168.1.x (your computers)

You don't have to worry about that side of things. In the configuration for your network cards, there'll be the option to automatically configure ip addresses using dhcp, or to manually set them. If you manually set them that's static addressing. Here's a very basic explanation of dhcp: http://bucarotechelp.com/networking/97091950.asp

Samba will work. Samba is basically a program that emulates Windows' Netbios/SMB system, for unix/linux. It's main uses are for windows-nix communication, because unixes already have other methods of talking to each other, but it can be used for nix-nix communication too. You'll just have to configure and run samba on both your fedora and centos computers. The domain name system settings under "server settings" are for running a dns server, you definitely don't want to go there. But just as a side note, the A-M root servers are main dns servers that take care of domain names on the internet. They're only important if you want to run your own dns server.

Justbill 01-11-2006 07:53 PM

Which is Worse?
 
A). Being staked to the ground, covered in molasis, next to a colony of fire ants.

B). Setting up a Linux network


No luck yet! Just shoot me and get it over with:rolleyes:

Justbill

halvy 01-11-2006 10:13 PM

Quote:

Originally Posted by Justbill
A). Being staked to the ground, covered in molasis, next to a colony of fire ants.

B). Setting up a Linux network


No luck yet! Just shoot me and get it over with:rolleyes:

Justbill

bill, maybe you are making this harder than it is by insisting on doing this ONE way (ie nfs), instead of trying some of the ideas others and i have given you concerning programs to help you get the hang of networking, before you move on to more intricate programs.

Justbill 01-12-2006 06:16 AM

I was just trying a little frustrated humor there. I run into the same problems with Samba, and I can't get nx to install, some sort of dependancy problem with nx. I have webmin installed, but I am having a hard time figuring that one out,doesn't seem to be a lot of documentation (that I can find) to explain what different things do. So I have tried a couple of different avenues. It seems like I was getting closer with nfs, I'm not sure what the mistake was that I made with Samba. I suppose that the problems I am having is largely due to lack of experience with Linux, and computers in general ( I've only been messing with computers for about 2 years now, and linux for 1), and some of the terminology confuses me! But, I'll keep pecking away at it! One thought I had, is I may have my hostname/domainname messed up. Shoud it be "Hostname.Domainname" or "Hostname@Domainname" ? However, when I just tried using the ip addresses, I didn't get anywhere with that, so the hostname domainname probably isn't the issue, is it?
Oh well, more reading, and more pecking!

Thanks
Justbill

Habu 01-12-2006 07:04 AM

Er, sorry but the only nx i've heard of is the terminal server software? You really don't need that for samba...if it's some other nx you meant then do tell me about it, i'd like to learn too:)
Hostnames/domains should not be an issue, try to get everything working using plain old ip addresses first before moving on to names. What kind of problems did you run into with samba? Could your computers see each other using samba? Oh and do make sure you've turned off the firewalls on both machines, unless you've specifically opened the neccessary ports. Tell us what sort of problem you're running into, any error messages, etc, regardless of whether you've chosen to use nfs or samba. It would help us pinpoint the problem.
One other possibility, with samba if you're using user authentication, you'll have to create samba users. I believe the redhat gui for samba allows to do this.

azucaro 01-12-2006 08:02 AM

When you did a mount for nfs, did you specify the -t option? I believe mount tries automatically to find out which type of fs to use, but you can manually specify it too with mount -t nfs [...what you put before...]. I only say this because of the error message you received. As already mentioned, it is also pretty important to temporarily drop the firewalls when trying stuff like this. If I had a nickel for every time iptables was the source of my troubles! I've learned my lesson to say the least.

I have tried myself to get Samba working to share my printer with an XP machine... what a nightmare. Filesystem sharing with Samba, on the other hand, is pretty easy. It actually has its own mount program "smbmount." Since I don't have two NIX machines to work with I don't put an entry into fstab for anything, but I am pretty sure that it can be done.

halvy 01-12-2006 12:17 PM

Quote:

Originally Posted by Habu
Er, sorry but the only nx i've heard of is the terminal server software? You really don't need that for samba...if it's some other nx you meant then do tell me about it, i'd like to learn too:)

it does much more than that since it allows the user to control x apps and it supports 'drag & drop' (like nfs?).

check out their site, esp. the link about xandros-- which explains in the article ALL the benefits of nx (ie. No Machine).

http://www.nomachine.com

bill do you get the dependency problem when you try to complile from source? if so post the error messages.

and with webmin you need to install as much as possilbe of all of it's modules for it to be of any use.

in each section there should be help docs, as well as a seperate module for docs solely.

do take the time to set up webmin properly, as it is superiour to the old 'Linuxconf' when it comes to configuring linux-- unfortunetly not all programs are written to have an interface with this wonderful program.

Justbill 01-12-2006 08:51 PM

Still Peckin
 
I'll be posting twice, once from each machine. I configures Samba, but I could not figure out how to access it from the other machine, I did not know the command line or how to get to it at all from the CentOS box. I did dis able the firewalls. I tried nfs again, not because I am being single minded about nfs, it just seems like I am closer to success (maybe not) with it. Here is what I typed into the terminal, and what it s reply was.
I am on box2, box2 = Ulysses .

[bill@Ulysses ~]$ mount 192.168.2.2:/home/bill /home/192.168.2.5/bill
mount: only root can do that
[bill@Ulysses ~]$ su
Password:
[root@Ulysses bill]# mount 192.168.2.2:/home/bill /home/192.168.2.5/bill
mount: mount point /home/192.168.2.5/bill does not exist
[root@Ulysses bill]# mount 192.168.2.2:/home/bill 192.168.2.5/home/bill
mount: mount point 192.168.2.5/home/bill does not exist
[root@Ulysses bill]# mount 192.168.2.2:/home/bill ~bill/192.168.2.5
mount: mount point /home/bill/192.168.2.5 does not exist
[root@Ulysses bill]# mount 192.168.2.2:/home/bill
mount: can't find 192.168.2.2:/home/bill in /etc/fstab or /etc/mtab
[root@Ulysses bill]#

So, What next?
Thanks
Justbill

Justbill 01-12-2006 09:08 PM

Here is what box1 had to say about my attempt to communicate with box2. Box1 = Goliath

[bill@Goliath ~]$ su
Password:
[root@Goliath bill]# mount 192.168.2.5:/home/bill /home/bill/192.168.2.2
mount: 192.168.2.5:/home/bill failed, reason given by server: Permission denied
[root@Goliath bill]# mount 192.168.2.5:/home/bill /home/192.168.2.2/bill
mount: 192.168.2.5:/home/bill failed, reason given by server: Permission denied
[root@Goliath bill]# mount -t nfs 192.168.2.5:/home/bill home/192.168.2.2/bill
mount: 192.168.2.5:/home/bill failed, reason given by server: Permission denied
[root@Goliath bill]#

So on this one it looks like I don't have something set up correctly, because box2 is denying permision, I guess.:confused:

I really don't have any idea what to do here. I''m not opposed to using ANY other application to accomplish this, I just don't seemto be making headway really with any of them. I could try Samba again, but I would need someone to tell me how to access it (from box2) after I mount a share (on box1).

Thanks
Justbill

P.S. B). got my vote, I'll take the ants

halvy 01-13-2006 01:51 AM

maybe this will help bill,

http://www.tldp.org/HOWTO/NFS-HOWTO/

hang in there.. i have a feeling you'll strike pay dirt with all the avenues that you have been persuing :)

Justbill 01-13-2006 05:55 AM

Thanks for the link halvy, Iv'e read that one already, but I'll read it again, perhaps I missed something!

Thanks
Justbill

halvy 01-13-2006 01:32 PM

yea i don't know if you found it where i did (here on lq somewhere), but if you follow that guys thread, he went back and did some tinkering to make it work the way he needed.

maybe your on to something ;) lol

again, good luck bill.

Justbill 01-14-2006 05:50 PM

Thanks Everybody for all the help! I have finally given up! This si hopelessssssssssssssssss!

Justbill

halvy 01-14-2006 06:51 PM

it's not hopeless bill..

you just need to take a break from it--

for a few minutes..... lol

come on.. dont' give up..

the penguin is counting on you!! :)

Justbill 01-22-2006 02:40 PM

Well.....Try Again!
 
Hi All!

So I took a break from this, regained some sanity, no longer have uncontrollable urges to use my computers for target practice;) and am ready to try again! :p

I have re-read some material, read some new material, and have tried to use NFS to share my "home" on box1 (Goliath) to my "home" on box2 (Ulysses), both are, you guessed it, home/bill.

Here is the output from the commands I ran earlier:

[bill@Ulysses ~]$ su
Password:
[root@Ulysses bill]# mount nfs -t Goliath.justbillsguitars.com:/home/bill /mnt
mount: fs type Goliath.justbillsguitars.com:/home/bill not supported by kernel
[root@Ulysses bill]# telnet Goliath.justbillsguitars.com
Trying 192.168.2.2...
telnet: connect to address 192.168.2.2: No route to host
telnet: Unable to connect to remote host: No route to host
[root@Ulysses bill]# ping -c 5 Goliath.justbillsguitars.com
PING Goliath.justbillsguitars.com (192.168.2.2) 56(84) bytes of data.
64 bytes from Goliath.justbillsguitars.com (192.168.2.2): icmp_seq=0 ttl=64 time=0.304 ms
64 bytes from Goliath.justbillsguitars.com (192.168.2.2): icmp_seq=1 ttl=64 time=0.245 ms
64 bytes from Goliath.justbillsguitars.com (192.168.2.2): icmp_seq=2 ttl=64 time=0.248 ms
64 bytes from Goliath.justbillsguitars.com (192.168.2.2): icmp_seq=3 ttl=64 time=0.248 ms
64 bytes from Goliath.justbillsguitars.com (192.168.2.2): icmp_seq=4 ttl=64 time=0.250 ms

--- Goliath.justbillsguitars.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.245/0.259/0.304/0.022 ms, pipe 2
[root@Ulysses bill]# exit
exit
[bill@Ulysses ~]$


As you can see from the attempt to mount nfs, the output said:

"fs type Goliath.justbillsguitars.com:/home/bill not supported by kernel"

does that mean that box2 (Ulysses) running CentOS 4.2 on an ext2 filesystem cannot communicate with box1 (Goliath) running FC4 on ext3 filesystem ? Are the filesystems incompatible?

The next try was "telnet". Again as you can see, The output was :

telnet: connect to address 192.168.2.2: No route to host
telnet: Unable to connect to remote host: No route to host

So, having no idea what that was supposed to mean, I pinged box1 from box2 successfully (as you can see), thinking that possibly something interrupted what minor network success I have had to this point.

So, really I am still at a loss here. I may try SAMBA again, but I am beginning to wonder if maybe a daemon or program or something I need for this is not installed, or not running currently. Or maybe I should re-install CentOS on ext3. What does any body here think?

Thanks in advance

Justbill

halvy 01-22-2006 04:35 PM

wb bill :)

sounds like box 2 does not have it's gateway (route) set correctly.. make it the same as #1.

and yes, try anything that you think might help.

ext2 & 3 should have no problems communicating... key word SHOULD.

i use ext2 because it copies MUCH faster than 3 (because 3 uses extra 'journeling' for safty reasons-- which i don't care about because i have an extensive backup plan in action always)

drdosman 01-22-2006 05:11 PM

I found that I got the same error"No route to host" on ssh due to my firewall being turned on for the computer I was trying to access. Did not see if you said you had turned the firewall off on your box1 and box2. I am not talking about a firewall that may or may not be active on the router. I am talking about the linux software firewall.



Dan


All times are GMT -5. The time now is 08:46 AM.