Hi people,
I have the following problem. When I set
/etc/exports up as
Code:
[root@serveur network-scripts]# cat /etc/exports
/home/localserveur client(rw)
I get this message
Code:
mount.nfs: timeout set for Sun Aug 23 18:04:23 2015
mount.nfs: trying text-based options 'vers=4,addr=192.168.1.2,clientaddr=192.168.1.103'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting serveur:/home/localserveur
executing
Code:
mount -t nfs -v serveur:/home/localserveur /home/localserveur
But when I change client's name to its IP/Mask in
/etc/exports all is going nice.
Could you explain me why, please.
Thank you.
P.S.
1. The NFS server "serveur" has the folowing settings:
Code:
[root@serveur network-scripts]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:9E:4F:65
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe9e:4f65/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7506 errors:0 dropped:0 overruns:0 frame:0
TX packets:4508 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:679886 (663.9 KiB) TX bytes:565397 (552.1 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:F4:83:07
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fef4:8307/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:816 (816.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3176 errors:0 dropped:0 overruns:0 frame:0
TX packets:3176 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:200176 (195.4 KiB) TX bytes:200176 (195.4 KiB)
Code:
[root@serveur network-scripts]# cat ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:9E:4F:65
TYPE=Ethernet
UUID=611c5680-f3bc-4fb2-9bea-d783046fc59d
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
[root@serveur network-scripts]#
[root@serveur network-scripts]# cat ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:F4:83:07
TYPE=Ethernet
UUID=a07e2911-3a87-4945-86ad-f2213c271dbd
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
Code:
[root@serveur localserveur]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.1.2 serveur
192.168.1.3 client
192.168.1.4 slave
2. The client "client" has the folowing settings:
Code:
[root@client ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:2E:76:C5
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe2e:76c5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3384 errors:0 dropped:0 overruns:0 frame:0
TX packets:2264 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:296503 (289.5 KiB) TX bytes:278809 (272.2 KiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:07:D2:E0
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe07:d2e0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:746 (746.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:700 errors:0 dropped:0 overruns:0 frame:0
TX packets:700 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:39064 (38.1 KiB) TX bytes:39064 (38.1 KiB)
Code:
[root@client network-scripts]# cat ifcfg-eth0
DEVICE=eth0
HWADDR=08:00:27:2E:76:C5
TYPE=Ethernet
UUID=d0932a9a-8f67-4ea7-922f-155472241d31
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
[root@client network-scripts]#
[root@client network-scripts]# cat ifcfg-eth1
DEVICE=eth1
HWADDR=08:00:27:07:D2:E0
TYPE=Ethernet
UUID=0db484e2-f311-4916-8788-a934e50ada87
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
Code:
[root@client network-scripts]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.1.2 serveur
192.168.1.3 client
192.168.1.4 slave
[root@client network-scripts]#