NFS configuration in 11.1

Hi,

I have just installed OpenSuse 11.1 on a new laptop and I want to set up a NFS Client on the laptop to connect to my old machine which will be the Server. The NFS will be an internal network not connected to the internet.

I had no success setting up the client using “Network Manager” so changed to “Traditional Method with ifup” in Yast. In the system tray it now says: The Networkwork Manager is not running.

This is the set-up I have:

On the server side (an older version of suse):

Hostname linux
domain name robert2600
I unchecked change host name via DHCP

In Yast “Network Card” I have set-up

IP address = 127.0.0.1
subnet mask 255.0.0.0

In Yast “NFS Sever” I have

Directory
/home/robert/server/

hosts
127.0.0.2 rw,root_squash,sync

In the firewall setup I have selected NFS Server
and enabled “Forward Traffic and Do Masquerading”

On the Client side:

In Yast “Hostnames” I have:

127.0.0.1 linux.robert2600 linux
127.0.0.2 linux-9bpq.robert2600 linux-9bpq

In Yast “Network Settings” I have the network card set-up as:

Enable IPv6 - not enabled

Hostname linux-9bpq
domain robert2600
write hostname to /etc/hosts is selected

routing - I enabled IP Forwarding.
No gateway, as it’s not connected to internet.

Firewall Zone is Internal Zone
Statically assigned IP address
IP address 127.0.0.2
subnet /8
Hostname linux-9bpq.robert2600

In Yast “Local Security” I have

Disable IPv4 forwarding - Enabled
Disable IPv6 forwarding - Disabled

In Yast “Firewall” I have

eth0 set to Internal Zone
In allowed services I have Internal Zone, all services greyed out
Protect Firewall from Internal Zone is NOT selected.

The NetworkInterfaces on the client has the following:

etho 127.0.0.2 255.0.0.0 Broadcast Up 00:1f:29:97:10:40
lo 127.0.0.1 255.0.0.0 Loopback Up 00:00:00:00:00:00
lo 127.0.0.2 255.0.0.0 Loopback Up 00:00:00:00:00:00

When I try to ping the laptop from the server I get success:

linux:~ # ping 127.0.0.2
PING 127.0.0.2 (127.0.0.2) 56(84) bytes of data.
64 bytes from 127.0.0.2: icmp_seq=1 ttl=64 time=0.109 ms
64 bytes from 127.0.0.2: icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from 127.0.0.2: icmp_seq=3 ttl=64 time=0.063 ms

— 127.0.0.2 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 1999ms

When I try to ping the server from the laptop I get success:

linux:~ # ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.063 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.033 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.030 ms

— 127.0.0.1 ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2001ms

On the client side in Yast “NFS Client” I have:

enabled NFSv4
NFSv4 Domain name - robert2600
enabled Open Port in Firewall

when I “choose” a NFS server it always takes many minutes, then returns just a blank white box - nothing found???

Hopefully not too far of? Maybe something obvious?

thanks and happy new year for any assistance…

You can’t use 127.* addresses for interhost networking. By definition all traffic on 127.* is local to the host and can never leave the machine. You have to assign some non-local but private IP addresses to your machines. There are 3 ranges available:

10...*
172.16-31..
192.168..

Ahh, of cause… so, I have changed all the 127...* to 10...*

The 127s are for my webserver.

I also enabled IPv6 forwarding on the client side firewall.

I also made the server side mask the more conventional

255.255.255.0

And hey presto! suddenly the client finds the linux server in the NFS client search.

Very happy

thanks and cheers!