Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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
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?
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918
Rep:
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)
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.
EXT2 and 3 have no problems with each other, AFAIK. I'm using nfs to share between those two filesystems - and reiser also. If there isn't a telnet daemon listening on goliath you'll get an error message, though it shouldn't be "no route to host". Oh well. Try connecting to a host on the internet, say google.com, on port 80. That should determine if it's a gateway/network settings issue. Try
$ telnet www.google.com 80
Oh, i just noticed something
Your syntax was a little wrong, it should be
[root@Ulysses bill]# mount -t nfs Goliath.justbillsguitars.com:/home/bill /mnt
The -t switch is to tell the system what sort of filesystem you're trying to mount, so the "nfs" must come after the switch. Good luck!
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918
Rep:
oh yea, when i say gateway/route i don't mean the router... i mean the info that is given when you type: route -n . which gives the network info for your ethernet cards (or other network devices-- OTHER than the actual physical router)
the term 'gateway' and 'route' are used interchangably (just to confuse noobs
I just did it! I dropped the firewall on box1, and used this command from box2:
mount -t nfs Goliath.justbilsguitars.com:/home/bill /mnt
and then
mount
and I was able to cd to /mnt and view what is there. Now I just need to figure out how to open the files and do some copying, but it finally WORKED!
When I go back to box2 I'll post my output if you think you need it, but it was exactly like being on box1, and looking at ~bill in the terminal.
Now, my next question would be, how do I set my firewall so I don't have to disable the firewall each time I want to fileshare?
Next challenge: Printer sharing! If I go to http://localhost:631/ I have heard there is a way there to do this. But I am not entirely familiar with what terms they are using. Am I adding a printer or adding a class?
I must be a glutton for punshment, after all the time it took to get to this point, and now I want to jump into printer sharing
Thanks for all the help
Justbill
Thanks for the help on the syntax Habu, I noticed that also a little later, and thats when everything worked!
FC4 uses SElinux for the firewall, I was going to post a screenshot of what the frewall options page looks like but I could not figure out how to do that. So I'm going to try to describe it the best I can.
Trusted Services: (each one has a box next to it that is not checked
Secure WWW (HTTPS)
FTP
Mail (SMTP)
Telnet
WWW (HTTP)
SSH
Then there is a section
Trusted Devices: ( this is going to be hard to describe)
This is the best I could describe this! If anyone can tell me what I should check and what I need to leave unchecked, I would appreciate it. I realize that my router has a firewall built in, I guess I'm just paranoid, but I like to have my firewalls up! But if the system is secure without it and the firewall on the Belkin router is enough, I can learn to live with it (or take medication for paranoia )
As a little side note, I did get a test page printed on the printer locally connected to box1, from box2, using the http://localhost:631/ print management tool. I have not yet tried to print a document from box2 to box1, would I do that from the command line? or the printer icon on the word proccessor page?
Yep, that's the firewall configuration gui utility. As far as SELinux goes you can safely disable it for the time being, at least till you become more familiar with linux. For the firewall, it's going to be a bit tricky, cos the NFS system uses random ports, and i'm assuming you don't want to open all possible ports. Have a look at this: http://www.lowth.com/LinWiz/nfs_help.html
It's a tutorial on forcing nfs to use static ports. You don't need to bother with the "linwiz" bits, unless you're interested - just start at "Viewing the used ports".
After you've done the stuff in the tutorial, open the ports that you're using (add them in the section called "other ports" in the firewall config gui).
I am having a bit of trouble here, when I try rpcinfo -p, I get command not found. I think I pretty much need to find out what ports are using what before I can configure anything, and I can't seem to get the information. I also want to allow the printer access but I am not sure what port that would be. Does anyone know how I get this working in FC4 ? There is a manual entry for rpcinfo, but that hasn't really helped either.
This Guarddog is quite confusing also! I have been through the handbook, and its just not quite coming together. Do you know of any other available information on Guarddog that may help here? Its set up , and it must be working , because I can't get past it to mount an nfs share!
It's for gentoo, but it should work the same. Ignore the "emerge" part, that's just their installation program. You should already have cups installed by default. You could try a shortcut if you don't want to edit the client configuration files manually. Just follow the instructions there for the server config, then on client use the printer management gui to add the remote printer - there should be an option for remote cups server or something along those lines.
Oh and remember to turn off the firewall on both machines, or at least the server, until you get the printing working.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.