请问,关于skyeye中的nfs mount
我装的是skyeye-v0.2b3.tgz, uclinux4skyeye-v0.2.3, uClinux-dist-20030305.直接将uclinux4skyeye-v0.2.3覆盖uClinux-dist中相应目录。然后按照安装要求2a安装的。进入uclinux之后,设置ip为10.0.0.2.再开一个终端,可以用ifconfig看到tap0为10.0.0.1, 然后测试ping 10.0.0.2和 telnet都是正常的。
但是,我在主机端配好nfs服务器,保证可用。(exports内容为:/target *(rw,no_root_squash,no_all_squash) ),
在uclinux中执行mount -t nfs 10.0.0.1:/target /tmp
mount -t nfs 10.0.0.1:/target /tmp
nfs warning: mount version older than kernel
NFS: mount program didn't pass remote address!
mount: Mounting 10.0.0.1:/target on /tmp failed: Invalid argument
pid 21: failed 256
请问是什么原因?? 这个问题我也遇到了,在 redhat 9 上面, nfs 在本机上 mount -t nfs 可以成功,但是其他机器就不行,运行出错信息为:
mount -t nfs 166.111.xx.xx:/tmp /tmp
mount: RPC:远程系统错误 - 拒绝连接
用 showmount 也不行: /usr/sbin/showmount -e 166.111.xx.xx
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
但是 portmap 和 nfs 都起了,在本机上执行: /usr/sbin/rpcinfo -p 166.111.xx.xx
程序 版本 协议 端口
100000 2 tcp 111portmapper
100000 2 udp 111portmapper
100024 1 udp 1024status
100024 1 tcp 1024status
391002 2 tcp 1025sgi_fam
100003 2 udp 2049nfs
100003 3 udp 2049nfs
100021 1 udp 1027nlockmgr
100021 3 udp 1027nlockmgr
100021 4 udp 1027nlockmgr
100011 1 udp 696rquotad
100011 2 udp 696rquotad
100011 1 tcp 699rquotad
100011 2 tcp 699rquotad
100005 1 udp 1030mountd
100005 1 tcp 1027mountd
100005 2 udp 1030mountd
100005 2 tcp 1027mountd
100005 3 udp 1030mountd
100005 3 tcp 1027mountd
cat /var/log/messages
Dec1 11:44:08 heli-server 12月1 11:44:08 portmap: portmap 启动 succeeded
Dec1 11:44:54 heli-server 12月1 11:44:54 nfs: 启动 NFS 服务: succeeded
Dec1 11:44:54 heli-server 12月1 11:44:54 nfs: rpc.rquotad 启动 succeeded
Dec1 11:44:54 heli-server 12月1 11:44:54 nfs: rpc.nfsd 启动 succeeded
Dec1 11:44:54 heli-server 12月1 11:44:54 nfs: rpc.mountd 启动 succeeded
看了文章好像说要 加载 plip ,试了一下还是 mount不上。
Dec1 11:43:36 heli-server 12月1 11:43:36 su(pam_unix): session opened for user root by liming(uid=502)
Dec1 11:43:49 heli-server kernel: plip: parport0 has no IRQ. Using IRQ-less mode,which is fairly inefficient!
Dec1 11:43:49 heli-server kernel: NET3 PLIP version 2.4-parport [email protected]
Dec1 11:43:49 heli-server kernel: plip0: Parallel port at 0x378, not using IRQ.
Dec1 11:43:49 heli-server /etc/hotplug/net.agent: assuming plip0 is already up
Dec1 11:44:08 heli-server portmap: cannot bind udp: Address already in use
如果谁能在 rh9 上跑起来,记得来回复一下这个帖子,谢谢! 原因已经找到,是 iptables 的问题。
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUTall--anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUTall--anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (2 references)
target prot opt source destination
ACCEPT udp--166.111.8.6 anywhere udp spt:domain dpts:1025:65535
ACCEPT tcp--anywhere anywhere tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT tcp--anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT tcp--anywhere anywhere tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT tcp--anywhere anywhere tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT tcp--anywhere anywhere tcp dpt:telnet flags:SYN,RST,ACK/SYN
ACCEPT udp--anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT udp--anywhere anywhere udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT all--anywhere anywhere
REJECT tcp--anywhere anywhere tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp--anywhere anywhere tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp--anywhere anywhere udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT udp--anywhere anywhere udp dpt:nfs reject-with icmp-port-unreachable
REJECT tcp--anywhere anywhere tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT tcp--anywhere anywhere tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
用 iptables -F 即可解决。
# iptables -F
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Lokkit-0-50-INPUT (0 references)
target prot opt source destination
此时在远程主机上mount -t nfs xxx.xxx.xxx.xxx:/tmp /tmp 就可以了。
页:
[1]