NFS 서버(CentOS)에서:
[root@localhost ~]# cat /etc/exports
/IT_Projects 192.168.56.0/25(ro,root_squash)
eth1 Link encap:Ethernet HWaddr 08:00:27:C4:A8:B6
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec4:a8b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1790 errors:0 dropped:0 overruns:0 frame:0
TX packets:230 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:252381 (246.4 KiB) TX bytes:27381 (26.7 KiB)
NFS 클라이언트(CentOS)에서:
eth1 Link encap:Ethernet HWaddr 08:00:27:C4:A8:B6
inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec4:a8b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1609 errors:0 dropped:0 overruns:0 frame:0
TX packets:145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:231539 (226.1 KiB) TX bytes:11555 (11.2 KiB)
[root@localhost ~]# mount -t nfs4 192.168.56.101:/IT_Projects /mnt/proj
연결 시간 초과가 발생합니다.
[root@localhost ~]# dmesg | tail
sf_read_super_aux err=-71
sf_read_super_aux err=-71
sf_read_super_aux err=-71
fuse init (API version 7.16)
FS-Cache: Loaded
FS-Cache: Netfs 'nfs' registered for caching
EXT3-fs (sdc2): error: no journal found. mounting ext3 over ext2?
Installing knfsd (copyright (C) 1996 [email protected]).
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
[root@localhost ~]# ping 192.168.56.102
PING 192.168.56.102 (192.168.56.102) 56(84) bytes of data.
64 bytes from 192.168.56.102: icmp_seq=1 ttl=64 time=0.422 ms
클라이언트는 서버에서 ping을 보낼 수 있습니다.
SELinux를 끄고 NFS 클라이언트 및 서버에서 rpcbind, nfs, 데몬을 시작했습니다. 또한 서버의 /etc/nfsmount.conf에서 Defvers=3을 변경했지만 아무런 효과가 없었습니다. 이 문제를 해결하기 위해 어떤 다른 방법을 모색할 수 있습니까?
[root@localhost ~]# rpcinfo -p 192.168.56.101
rpcinfo: can't contact portmapper: RPC: Remote system error - No route to host
[root@localhost IT_Projects]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination