News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Multiple networking linux woes

Started by Mongoose, November 08, 2006, 12:10:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Mongoose

hi guys,

I just put Ubuntu 6.10 onto my machine (dual boot with XP), and Im having some trouble with my network setup.

I have a second machine which runs WinNT4 Workstation and acts as my backup and general file server. It has three hard drives, containing music, documents and photograph backups.

Under windows I have these mapped to drive letters which function exactly like any other drive on the system and all is sweetness and light. However, I have never been able to get SMB shares to do anything similar under Linux. At the moment I have used "connect to server" in the Ubuntu menus to...well, connect to my server. This has given me a nice icon on my desktop and under the places menu which leads to the server drives. Great, lovely, looks like just what I need EXCEPT that I cannot open any files on the server. I can copy them across to the local drive and then open them, but I cannot open them in situ like I do under Windows.

Is this some sort of permissions issue? is there a better way to mount SMB shares as part of the filesystem? (I remember I used to be able to do that with NFS shares under Suse but cant do NFS with an NT4 based "server"). Any suggestions gratefully received

Second problem. My main machine contains two NICs, to keep my server, laptop etc serparate from the uni campus network. This is partly for security reasons but mostly because they would charge me extra to have multiple machines on the campus connection.

When I first installed Ubuntu, the internet connection (through eth0) was working fine. I then set up numerous pieces of software and started fiddling with the server connection (eth1). Since I connected to the drives on the server, I can no longer get access to the internet from Linuix. Its not the connection, because it still works under Windows.

again any suggestions welcome

Mongoose

I have had a play with the /etc/network/interfaces file but dont seem to be getting very far.

traceroute and ping still work even when firefox wont access the internet, its very odd. Also if I am accessing a site at the time I connect to my server then I can continue to use that site (no, its not cached, I tried it with tekforums and I can read threads I hadnt read before). It is as if I loose my DNS server when I access my local file server.

Mongoose

Ahha!

I have the network interfaces working at least.

the problem seems to have been that both eth1 and eth0 had default entrys in the routing table, but sending internet traffic to eth1 is a complete non starter since the machines on that network have no internet access.

I removed the default gateway entry for eth1 by adding

up route del default gw to /etc/network/interfaces and now its working.

So now the only remaining problem is I still cant open any files directly from my server, any ideas on that one folks?

Mongoose

hurray! all fixed!

not only that, but my shares mount on bootup like they are supposed to instead of having to give the password every time like under Windows

is it just me, or is the Ubuntu wiki the best thing since sliced bread?

Mardoni

*rar*
Get you :p

Could you stick up a sample of the entry you used in your mount file thingy please ? I can never get that working correctly! Do you have Usernames/Passwords on the windows shares and if so how did you get fstab (or whatever) to cope ?

Also, you should be able to use the Linux box as a gateway to the internet for the other machiens in your room.

Mongoose

hi nimrod,

here is the line I used in fstab

//192.168.100.1/d-drive    /home/mongoose/oracle/ smbfs  credentials=/root/.smbcredentials,dmask=777,fmask=777  0    0

this mounts the share "d-drive" on my server machine to /home/mongoose/oracle/. You also have to create the directory so its got somewhere to mount to (you probably know that, but Ive never done this manually before, yast2 did it for me under SuSE)

/root/.smbcredentials is a file containing

username=
password=

I dare say someone will now point out a faster, safer, more secure and generally better way of doing the above, but it works and I can play my music files so Im happy for now.

Mardoni

bugger, I can see what I was doing wrong already *sigh*

I had the remote path and local path around the wrong way :/

Cheers ;)

Mongoose

theres always one little thing mate, if it wasnt a silly little detail youd have spotted it before lol

I remember the first time I set up a TCP/IP network. Twas PtP with no DHCP server so had to set the ip addresses manually. Scratched my head for about a day before I realised that one machine was set to 192.168.1.1 and the other was 168.192.1.2

dyslexia rules ko


any chance you could return the favour with some tips for using my linux box as a gateway?

Mardoni

I will dig around and my history and see if I can find any of the guides I read through when I considered doing it.

I ended up getting myself a cisco router instead because, well, Cisco is easier than Linux...right ?? :o :(