nfs 指定大于1024的源端口挂载

mount 加-o noresvport 参数

[root@vpn /]# mount -t nfs4 -o noresvport  nase482c5fb3b.nas.cn-east-1.internal:/ /mnt/ -v
mount.nfs4: timeout set for Thu Sep 13 10:34:31 2018
mount.nfs4: trying text-based options 'noresvport,vers=4.1,addr=192.168.10.69,clientaddr=192.168.10.163'
mount.nfs4: mount(2): Protocol not supported
mount.nfs4: trying text-based options 'noresvport,vers=4.0,addr=192.168.10.69,clientaddr=192.168.10.163'

TCP 抓包

[root@vpn fwj]# tcpdump -i eth0 host 192.168.10.69  and tcp -nn
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
10:32:31.269689 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [S], seq 3488328641, win 29200, options [mss 1460,sackOK,TS val 259784458 ecr 0,nop,wscale 8], length 0
10:32:31.271531 IP 192.168.10.69.2049 > 192.168.10.163.45636: Flags [S.], seq 1298561814, ack 3488328642, win 14480, options [mss 1460,sackOK,TS val 3735081649 ecr 259784458,nop,wscale 9], length 0
10:32:31.271550 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [.], ack 1, win 115, options [nop,nop,TS val 259784460 ecr 3735081649], length 0
10:32:31.271656 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [P.], seq 1:45, ack 1, win 115, options [nop,nop,TS val 259784460 ecr 3735081649], length 44: NFS request xid 3033161417 40 null
10:32:31.272221 IP 192.168.10.69.2049 > 192.168.10.163.45636: Flags [.], ack 45, win 29, options [nop,nop,TS val 3735081649 ecr 259784460], length 0
10:32:31.272316 IP 192.168.10.69.2049 > 192.168.10.163.45636: Flags [P.], seq 1:29, ack 45, win 29, options [nop,nop,TS val 3735081649 ecr 259784460], length 28: NFS reply xid 3033161417 reply ok 24 null
10:32:31.272325 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [.], ack 29, win 115, options [nop,nop,TS val 259784461 ecr 3735081649], length 0
10:32:31.272501 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [P.], seq 45:301, ack 29, win 115, options [nop,nop,TS val 259784461 ecr 3735081649], length 256: NFS request xid 3049938633 252 getattr fh 0,1/42
10:32:31.272814 IP 192.168.10.69.2049 > 192.168.10.163.45636: Flags [P.], seq 29:69, ack 301, win 31, options [nop,nop,TS val 3735081650 ecr 259784461], length 40: NFS reply xid 3049938633 reply ok 36 getattr ERROR: unk 10021
10:32:31.273189 IP 192.168.10.163.45636 > 192.168.10.69.2049: Flags [F.], seq 301, ack 69, win 115, options [nop,nop,TS val 259784462 ecr 3735081650], length 0
10:32:31.273431 IP 192.168.10.163.45638 > 192.168.10.69.2049: Flags [S], seq 3379214698, win 29200, options [mss 1460,sackOK,TS val 259784462 ecr 0,nop,wscale 8], length 0
坚持原创技术分享,如果觉得这篇文章对你有帮助,可以小额打赏