Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Linux to Linux networking

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
39 posts
  • 1
  • 2
  • Next
Author
Message
My_World
Guru
Guru
User avatar
Posts: 339
Joined: Mon Sep 01, 2003 3:19 am
Location: Kalahari Desert
Contact:
Contact My_World
Website

Linux to Linux networking

  • Quote

Post by My_World » Tue Sep 16, 2003 12:35 am

Now this has really got me frustrated...

Everywhere on the net there is quite a large amount of documentation on smb networking, but I find myself in another pickle and so far I could find no answers to my problem...

I have abosolutely no intterest in smb browsing, where I struggle is browsing local Linux shares over the network!!
I have done the LiSA setup on all my boxes, but I still can't get a stable network up and running, sometimes the network shares is up and I can browse the other boxes, but most of the time it's down.

Now I know Linux has a reputation in the networking bussiness, so what in the world am I doing wrong here?
/etc/lisarc
SecondWait = -1
SearchUsingNmblookup = 0
DeliverUnnamedHosts = 0
FirstWait = 30
MaxPingsAtOnce = 256
UpdatePeriod = 300
PingAddresses = 192.168.0.0-192.168.0.255
AllowedAddresses = 192.168.0.1-10
BroadcastNetwork = 192.168.0.1/255.255.255.0
PingNames =

and
# /etc/init.d/lisa start
* Starting lisa... [ ok ]
#

But if I click on the LAN browsing in Konqueror, nothing comes up.

Just for the record, internet sharing is running smoothly on all PC's, so the network is up.

Where must I start, what must I do, where must I read? ANYTHING that will help me with this please!!
"Ubuntu" - an African word meaning "Gentoo is too hard for me".
Top
stim
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Tue Jan 21, 2003 2:27 am
Location: Brisbane, Australia

  • Quote

Post by stim » Tue Sep 16, 2003 7:35 am

Before I start, I must say that I might not be much help. I have found that browsing smb shares (which you ARE doing by the sounds of it) does not always work. I don't know why.

My solution is this: avoid Microsoft technology at all costs. It was never meant for the *nix evironment and doesn't slot in well. If you have no interest in networking with windows, why are you using samba/lisa. I would suggest using NFS or something similar. Unfortunately everyone else on my network here uses Winblows, so I have no experience with NFS, so there may be disadvantages that are not clear to me. But from my (limited) experience with linux networking, the general concensus seems to be avoid smb if you are not using windows.

Hope that is at least of some use.
Top
mmealman
Guru
Guru
Posts: 348
Joined: Sat Nov 02, 2002 4:42 pm
Location: Florida

  • Quote

Post by mmealman » Tue Sep 16, 2003 4:45 pm

For linux to linux NFS is definately the way to go.

Compile in support for NFS into your kernel and then emerge nfs-utils on both machines. On the server edit /etc/exports to share out the directories you want to be able to mount remotely.

See "man exports" for details on this file and I've posted my own exports file below for you to inspect:

Code: Select all

# /etc/exports: NFS file systems being exported.  See exports(5).
/home/mmealman      192.168.1.10(rw,no_root_squash,sync)
/home/httpd/proto   192.168.1.10(rw,no_root_squash,sync)
/usr/local/lib/php  192.168.1.10(rw,no_root_squash,sync)
192.168.1.10 is my workstation machine.

When you've edited your exports start up /etc/init.d/nfs

On your client machine add lines to your /etc/fstab to remotely mount your NFS server shared. Mine looks like the below:

Code: Select all

# NFS Mount
fall:/home/mmealman             /home/mmealman/fall             nfs     rsize=8192,wsize=8192,timeo=14,intr     0 0
fall:/home/httpd/proto          /home/mmealman/proto            nfs     rsize=8192,wsize=8192,timeo=14,intr     0 0
fall:/usr/local/lib/php         /home/mmealman/proto_libs       nfs     rsize=8192,wsize=8192,timeo=14,intr     0 0
fall in the above being my server at 192.168.1.1 and they will automount when my machine boots up.

The nice thing about nfs is that it fully supports Linux's file permissions and user accounts. One gotcha though is to make sure that your userids map from the server to your client. User mmealman on both of my boxes is user 1000.

There are more complex nfs systems that can map different userids back and forth between machines, but it's simpliest to avoid having to do this.
Top
syadnom
Guru
Guru
User avatar
Posts: 531
Joined: Thu May 09, 2002 10:49 pm

i agree , nfs

  • Quote

Post by syadnom » Sun Sep 28, 2003 7:57 pm

NFS is certainly the way to go.

Not only does NFS support *nix user accounts and permissions, but it also allows you to access them on bootup.

you can't mount an smb share and then use that as your /, but you can with nfs. grub supports NFS so you can say

root=server:/machine/rootdirectory

this way you can boot from a floppy and have your entire install available.

-

for most people this is useless, but for me it is great. I have a 10k rpm scsi aray(raid5, 11 drives, 182GB) and Gigabit Ethernet. I boot a few machines this way and performance is quite good. In fact better than having a harddrive installed in the machine in many cases, just have TCP/IP over head to deal with, the Gigabit ethernet does 125MByte/sec, better than ATA100 :)

-

on the other hand, smb is slow. i mean SLOW. I can transfer files accross the Gigabit ethernet using NFS at about 55MByte/sec to a hard drive, with the 132MByte/sec PCI being the bottleneck, but with smb, this drops to under 30MByte/sec.
Top
furanku
l33t
l33t
User avatar
Posts: 905
Joined: Thu May 08, 2003 8:58 am
Location: Hamburg, Germany

  • Quote

Post by furanku » Mon Sep 29, 2003 11:28 am

I'm thinking about to migrate into the other direction (NFS->Samba). It seems to me that NFS is not very robust. At my (WEP encrypted) WLAN home-network NFS dies, when used, after a few minutes, all other services continue to run whithout a problem.

At my university our home directories are mounted via NFS. If I work in that floor with the public terminal pool (don't know what the students are doing there) NFS hangs usually 15 minutes per day. I'm not an expert to NFS, but that's what I also heard form other people: When it comes to connection quality, NFS is really bitchy.

Frank
Top
syadnom
Guru
Guru
User avatar
Posts: 531
Joined: Thu May 09, 2002 10:49 pm

not samba

  • Quote

Post by syadnom » Mon Sep 29, 2003 3:16 pm

furanku, don't go NFS -> samba

go to another network file system, such as CODA.

their are windows drivers for CODA(actually any OS can support CODA)

CODA snipet direct from the 2.6 kernel:

support for disconnected operation (e.g. for laptops), read/write server
replication, security model for authentication and encryption,
persistent client caches and write back caching.

basically, it is SuperNFS.

I have worked a little with CODA, and it seems pretty cool. You can always run a samba server on the system as well to make sure other machines can get access without any extra work.
Top
qubex
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 133
Joined: Thu Mar 06, 2003 11:48 pm
Location: Portland
Contact:
Contact qubex
Website

  • Quote

Post by qubex » Tue Sep 30, 2003 5:39 am

What's wrong with samba? It's easy to setup, it's (fairly) secure, robust, and very mature. There are plenty of programs that will configure your shares for you (i.e. webmin or KDE sharing). Coda is nice, but for a LAN it could be overkill. So can samba for that matter, but samba is nice if you ever need to plug in a windoze client quickly. It's quick and I've never had a problem.

Sidenote: even with LISA you will still need samba installed and running. If you are running a *nix to *nix setup, why use browsing? Setup mount points in fstab. NFS is not as secure and can be unstable. Coda is not as widely supported.

Try it and see - emerge samba and, if you need the help, emerge webmin. If you don't like what you see, you can always un-merge them.

Edit: BTW, I have linux-to-linux networking with SMB. Just as a test, I browsed with Lisa - works like a charm, and I've never touched the setup for it. Once you get smb browsing working, Lisa will Just Work.
Yes.
Top
taskara
Advocate
Advocate
Posts: 3762
Joined: Wed Apr 10, 2002 11:38 pm
Location: Australia

  • Quote

Post by taskara » Tue Sep 30, 2003 5:58 am

*gasp*


why not just run windows! :?
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Top
mmealman
Guru
Guru
Posts: 348
Joined: Sat Nov 02, 2002 4:42 pm
Location: Florida

  • Quote

Post by mmealman » Tue Sep 30, 2003 6:15 am

NFS unstable? 8O

It's been around forever. For Linux to Linux networking Samba is poor, it doesn't support filesystem attributes and it doesn't support large files.

Who needs LISA when you can just boot your system with all the needed remote filesystems already mounted for you?

The only thing NFS(and samba for that matter) don't handle well is disconnects from the remote host. That's what CODA and AFS are for.
Top
taskara
Advocate
Advocate
Posts: 3762
Joined: Wed Apr 10, 2002 11:38 pm
Location: Australia

  • Quote

Post by taskara » Tue Sep 30, 2003 6:20 am

NFS is not unstable, just it's a bit cluggy... not screamingly fast in my experience.. but maybe that was me ;)
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Top
nE0
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 146
Joined: Thu Aug 08, 2002 11:59 am
Location: The Netherlands, Breda
Contact:
Contact nE0
Website

  • Quote

Post by nE0 » Tue Sep 30, 2003 6:31 am

How about the ssh browsing thing.. I'm sorry I can't remember the name.. I will look that up in a minute or so

It's basicly a network connection via a secure ssh connection.. Wich means you can also use it to connect to your box via the Internet.. I'm not sure there is also a windows client for it..

How about that for linux to linux networking.. :?
All things considerring! I'm considerring to...never mind!
Top
Redeeman
l33t
l33t
User avatar
Posts: 958
Joined: Thu Sep 25, 2003 9:02 am
Location: Portugal

omg!

  • Quote

Post by Redeeman » Tue Sep 30, 2003 6:33 am

smb is simply a bad technology, and samba is really unstable compared to NFS, i have been setting NFS up only one time, and then i didnt touch the setup anymore, and it just worked, also bootup from other machines, but smb is fucked, even though samba works partitially, NFS still OWNS it because it supports adding attributtes to the filesystem, and maintain the original permissions! very much more secure, and fits into the unix system perfect, i am also going to test CODA soon, as alot people says that its much better, even though i had no problems with NFS! 8)
Top
furanku
l33t
l33t
User avatar
Posts: 905
Joined: Thu May 08, 2003 8:58 am
Location: Hamburg, Germany

  • Quote

Post by furanku » Tue Sep 30, 2003 10:30 am

So, if NFS is stable, what causes the problems I mentioned above?

On my WLAN mounted NFS-directories simply disappear when I use them for ~ 1-5 minutes. Mounting them again brings them back, but that's no solution. I can imagine that that's a problem with the WEP encryption, since it started since I installed WEP. But all other services continue to run without any problems, copying files via scp never failed. I can't find any unusual log entrys.

On our Ethernet network in the institute our NFS mounted home directories block 15 Min per day (when used on the "dirty" network floor), causing all network related apps to freeze (which can be a bash because of use of ~./history). This happens just to our Linux boxes, the other workgroups use Windows and SMB and don't have that problem. If I call our institut admin, he tells me everything's fine, the problem must be on our side. We have a windows guy in our workgroup who uses that always as a reason to suggest migrating to windows.

On this floor, our local workgroup admin (which will be me in a month...) usually is called once in a month 'couse one of the boxes cant't mount the users home directory at boot time. So he has to give a "mount -a" as root.

These are the only expierence I've made with NFS so far, so, sorry, if I think NFS is not robust.

Is that NFS's fault or am I doing something wrong?

Frank
Top
zhenlin
Veteran
Veteran
Posts: 1361
Joined: Sat Nov 09, 2002 4:38 pm

  • Quote

Post by zhenlin » Tue Sep 30, 2003 11:12 am

Probably NFS's fault. RPC is probably not the best way to do filesystems.

On the other hand, NFS 4 claims to be much better.
Top
jaska
Bodhisattva
Bodhisattva
Posts: 725
Joined: Fri Jun 06, 2003 7:26 am
Location: Finland

  • Quote

Post by jaska » Tue Sep 30, 2003 12:08 pm

You could try SHFS, uses ssh to mount the other systems hd into yours, been using it and its been fairly decent.
Top
furanku
l33t
l33t
User avatar
Posts: 905
Joined: Thu May 08, 2003 8:58 am
Location: Hamburg, Germany

  • Quote

Post by furanku » Tue Sep 30, 2003 12:27 pm

Thanks for all the tips! I'll try them, when I'm through with my exam stress in a few weeks!

Frank
Top
mmealman
Guru
Guru
Posts: 348
Joined: Sat Nov 02, 2002 4:42 pm
Location: Florida

  • Quote

Post by mmealman » Tue Sep 30, 2003 6:23 pm

furanku wrote:So, if NFS is stable, what causes the problems I mentioned above?

On my WLAN mounted NFS-directories simply disappear when I use them for ~ 1-5 minutes. Mounting them again brings them back, but that's no solution. I can imagine that that's a problem with the WEP encryption, since it started since I installed WEP. But all other services continue to run without any problems, copying files via scp never failed. I can't find any unusual log entrys.

On our Ethernet network in the institute our NFS mounted home directories block 15 Min per day (when used on the "dirty" network floor), causing all network related apps to freeze (which can be a bash because of use of ~./history). This happens just to our Linux boxes, the other workgroups use Windows and SMB and don't have that problem. If I call our institut admin, he tells me everything's fine, the problem must be on our side. We have a windows guy in our workgroup who uses that always as a reason to suggest migrating to windows.

On this floor, our local workgroup admin (which will be me in a month...) usually is called once in a month 'couse one of the boxes cant't mount the users home directory at boot time. So he has to give a "mount -a" as root.

These are the only expierence I've made with NFS so far, so, sorry, if I think NFS is not robust.

Is that NFS's fault or am I doing something wrong?

Frank
My guess is that with the WLAN you're having mini "outages" which is causing NFS to get messed up in some way. At school it sounds like they're regularly cycling the NFS servers which is causing your outage.

When a NFS service isn't available, yeah the client doesn't handle it very well until it comes back. Though I don't know why you need to remount all the time on your WLAN. That isn't typical at all.

Really you might want to try AFS. AFS is like NFS only when the server goes down the client can still read the files. It keeps a local cache of previously read files and goes into read-only mode on those files when the server has a hiccup.

CODA works like AFS, it caches files off the server, but when the server goes down or gets interrupted it still lets you write to those files in your cache. When the server comes back up, it just syncs everything.

CODA is very cool and is becoming a popular part of the newer Linux kernels, AFS is a little more robust and mature though. I think gentoo has a AFS install guide in the docs section.
Top
taskara
Advocate
Advocate
Posts: 3762
Joined: Wed Apr 10, 2002 11:38 pm
Location: Australia

  • Quote

Post by taskara » Tue Sep 30, 2003 10:53 pm

I agree with mmealman

wireless connections seem to drop out now and then, so nfs is cutting off the connection - which is actually a GOOD thing ;)
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Top
furanku
l33t
l33t
User avatar
Posts: 905
Joined: Thu May 08, 2003 8:58 am
Location: Hamburg, Germany

  • Quote

Post by furanku » Wed Oct 01, 2003 12:22 pm

Although I should learn, I took a short look at coda and OpenAFS, coda didn't compile (looks like a gcc 3.3 issue, maybe) and the setup for boths scared me a little. Authentification, backup, protection and volume loction servers?! All to be configured... Thats quite a difference to a simple /etc/exports. Is there somewhere an easy to read HOWTO?

Whew! And I thought the high energy physics I have to learn is complicated stuff... 8O

Anyway, thanks, I'll take another look into OpenAFS and coda later,
Frank
Top
mmealman
Guru
Guru
Posts: 348
Joined: Sat Nov 02, 2002 4:42 pm
Location: Florida

  • Quote

Post by mmealman » Wed Oct 01, 2003 3:24 pm

You can check out http://www.gentoo.org/doc/en/openafs.xml for a bit of a howto on AFS.
Top
dark_priest
Apprentice
Apprentice
User avatar
Posts: 227
Joined: Mon Aug 18, 2003 3:52 pm
Location: NL

  • Quote

Post by dark_priest » Sun Oct 05, 2003 10:25 am

mmealman wrote: Compile in support for NFS into your kernel
WHERE in the kernel config can i find this? (i use genkernel --config)
[ Censored by unpopular demand]
Top
syadnom
Guru
Guru
User avatar
Posts: 531
Joined: Thu May 09, 2002 10:49 pm

where.

  • Quote

Post by syadnom » Sun Oct 05, 2003 4:01 pm

FileSystems, Network File Systems, NFS
Top
dark_priest
Apprentice
Apprentice
User avatar
Posts: 227
Joined: Mon Aug 18, 2003 3:52 pm
Location: NL

  • Quote

Post by dark_priest » Sun Oct 05, 2003 4:29 pm

does it matter if i do it as module or built in?

(set it to built in now)
[ Censored by unpopular demand]
Top
syadnom
Guru
Guru
User avatar
Posts: 531
Joined: Thu May 09, 2002 10:49 pm

nope

  • Quote

Post by syadnom » Sun Oct 05, 2003 4:53 pm

nope, as long as its loaded it will work.
Top
dark_priest
Apprentice
Apprentice
User avatar
Posts: 227
Joined: Mon Aug 18, 2003 3:52 pm
Location: NL

  • Quote

Post by dark_priest » Sun Oct 05, 2003 5:01 pm

sweet

i also noticed i'm 11 posts away from becoming a "tux' litle helper" 8O
[ Censored by unpopular demand]
Top
Post Reply

39 posts
  • 1
  • 2
  • Next

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic