Author Topic: Network not working  (Read 691 times)

Offline Crow

  • Hero Member
  • *****
  • Posts: 8744
  • OBJECTS IN MIRROR... ARE LOSING
Network not working
« on: May 22, 2011, 06:18:20 PM »
Some time ago, after an update the connection between computers broke, I can't share directories through NFS and I was just using an external HD to move files but we can't play using the local network and that is a problem now.

I've searched and tried some posts but use to take for granted some knowledge I don't have

Does anybody have a step by step guide on how to recover my network?
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Online muungwana

  • Hero Member
  • *****
  • Posts: 6207
Re: Network not working
« Reply #1 on: May 22, 2011, 06:30:04 PM »
you are mixing up two concepts.

1. File sharing through NFS btw two computers on the network.
2. Two computer's inability to see each other over the network.

The first problem could be caused by an NFS service either not running or misconfigured.

The second problem could be caused by a firewall blocking needed ports or if those computers are on different networks.

Which one of the two do you think is the primary problem?

what do you mean by "now we cant play using the local network"?
« Last Edit: May 22, 2011, 06:31:44 PM by muungwana »
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Crow

  • Hero Member
  • *****
  • Posts: 8744
  • OBJECTS IN MIRROR... ARE LOSING
Re: Network not working
« Reply #2 on: May 22, 2011, 07:11:35 PM »
muungwana Thank you for your interest.

I mentioned the two problems because both began at the same time.

I try to share directories by NFS using PCC and doesn't mount, a well known problem in PCLOS

By "now we cant play using the local network" I mean games, my kids and me used to play in team Linux games like Battle for Wesnoth or Windows games in Wine like Serious Sam and Sacred.
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Online muungwana

  • Hero Member
  • *****
  • Posts: 6207
Re: Network not working
« Reply #3 on: May 22, 2011, 07:20:58 PM »

Inability to play games over the network suggests a firewall problem.

open the terminal, log in as root and then run these two commands and give their output

cat /etc/fstab

iptables -L -v
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Network not working
« Reply #4 on: May 22, 2011, 07:40:26 PM »
yes, both problems are not related but could have the same cause

did you used a static ip addres on one machine and not in the other?

it could be helpful to check the ethernet adapter/wifi to see if you changed something and you might not remember

i know that such suggestion sounds dumb but i did it two times, then i called tech support because i couldn't get on internet  ::)   :-[
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Crow

  • Hero Member
  • *****
  • Posts: 8744
  • OBJECTS IN MIRROR... ARE LOSING
Re: Network not working
« Reply #5 on: May 22, 2011, 09:17:42 PM »
Here's what I found:

Code: [Select]
crow@localhost ~]$ su
Password:
[root@localhost crow]# cat /etc/fstab
# Entry for /dev/sda5 :
UUID=53f59a74-2b65-4a38-a72a-96b04565badc / ext4 defaults 1 1
none /dev/pts devpts defaults 0 0
# Entry for /dev/sda6 :
UUID=df93a86f-f3b9-4f72-83f5-da1a560400ec /home ext4 defaults 1 2
linux-2:/media/CH_DATOS /mnt/CH_DATOS nfs rsize=8192,wsize=8192,nosuid,soft 0 0
linux-2:/home/crow/Downloads /mnt/Downloads nfs rsize=8192,wsize=8192,nosuid,soft 0 0
/media/CH_DATOS/Downloads:/media/CH_DATOS/Downloads /mnt/Downloads1 nfs rsize=8192,wsize=8192,nosuid,soft 0 0
none /proc proc defaults 0 0
# Entry for /dev/sdb5 :
UUID=73e81843-0cf5-4bd3-bd27-f7b9283bb959 swap swap defaults 0 0
[root@localhost crow]# iptables -L -v
Chain INPUT (policy ACCEPT 455 packets, 88927 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 440 packets, 45561 bytes)
 pkts bytes target     prot opt in     out     source               destination
[root@localhost crow]#


And no, I don't use static IP
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Online muungwana

  • Hero Member
  • *****
  • Posts: 6207
Re: Network not working
« Reply #6 on: May 22, 2011, 09:36:02 PM »

what is the IP address of a computer with a hostname of "linux-2"?

you are using a hostname for your nfs shares and your computer must be able to resolve them to an IP address.

Most people use IP addresses for their networked nfs shares. If you prefer to use hostnames, add their associated IP addresses in "/etc/hosts" text file.

Open the text file with roots privileges and then add the "hostname" name with its associated IP address in it. There should be atleast one entry in it and the entry will tell you the format.

Are you running a firewall? Those IP tables rules says you arent running any and this suggests a problem is not due to a firewall.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Crow

  • Hero Member
  • *****
  • Posts: 8744
  • OBJECTS IN MIRROR... ARE LOSING
Re: Network not working
« Reply #7 on: May 22, 2011, 09:51:03 PM »
IP address of a computer with a hostname of "linux-2"

Code: [Select]
[crow@localhost ~]$ ifconfig
eth0      Link encap:Ethernet  direcciónHW 90:FB:A6:29:AC:CE  
          Direc. inet:192.168.1.64  Difus.:192.168.1.255  Másc:255.255.255.0

And no, I'm not running a firewall. I'm connected to internet by an access point which in turn goes to a switch that distributes the internet.

Let me try that
« Last Edit: May 22, 2011, 09:52:52 PM by Crow »
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Offline Crow

  • Hero Member
  • *****
  • Posts: 8744
  • OBJECTS IN MIRROR... ARE LOSING
Re: Network not working
« Reply #8 on: May 22, 2011, 09:56:19 PM »
This is what I have in hosts

# generated by drakconnect
127.0.0.1 localhost.localdomain localhost
I shall pass this way but once;
any good therefore that I can do,
or any kindness that I can show
let me not defer nor neglect it,
for I shall not pass this way again.

Linux User #330412

Online muungwana

  • Hero Member
  • *****
  • Posts: 6207
Re: Network not working
« Reply #9 on: May 22, 2011, 10:01:07 PM »

add this line to the text file

192.168.1.64    linux-2

after you have added the line and save the file.

Open the terminal, log in as root and then type this command and give any output if any

mount /mnt/Downloads

Then go to "/mnt/Downloads" folder and see if all files on "linux-2:/home/crow/Downloads" computer are these. Make sure nfs is running first on a computer with a hostname of "linux-2"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..