Linux 能够ping通,但是挂载不成功

kuaildg 2010-03-11 12:25:57
[root@FriendlyARM /]# ping 192.168.0.122
PING 192.168.0.122 (192.168.0.122): 56 data bytes
^C
--- 192.168.0.122 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
[root@FriendlyARM /]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90
inet addr:192.168.0.230 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:441 errors:0 dropped:0 overruns:0 frame:0
TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41791 (40.8 KiB) TX bytes:13601 (13.2 KiB)
Interrupt:51

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:345 (345.0 B) TX bytes:345 (345.0 B)

[root@FriendlyARM /]# ping 192.168.0.122
PING 192.168.0.122 (192.168.0.122): 56 data bytes
64 bytes from 192.168.0.122: seq=0 ttl=64 time=4.993 ms
64 bytes from 192.168.0.122: seq=1 ttl=64 time=1.156 ms
^C
--- 192.168.0.122 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 1.156/3.074/4.993 ms
[root@FriendlyARM /]# ./mn.sh
mount: RPC: Unable to receive; errno = No route to host









...全文
1837 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
mxslgyb 2011-03-24
  • 打赏
  • 举报
回复
不得不回复啊
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 kuaildg 的回复:]
你们都没有说对啊!
我终于找到原因了,什么防火墙之类的都不是原因。至于nfs是否没有配置好,也不用谈了。我都弄了好几天,今天终于找出来了。
我个人感觉主要有以下几条:使用ARM9 开发板登陆后,能够与linux 服务器ping的通,但不能mount上的原因:
1、挂载的目录不存在
2、多余的用户,如:创建可访问的nfs文件夹时,用户里自动创建了以个类似的用户名如:nfs;


而我的……
[/Quote]

用userdel -f nfs 提示没有这个用户
朋友,有空的话,帮我看看,和你类似的问题??

http://topic.csdn.net/u/20100525/11/77801399-6f75-4843-bf3b-2301087ddca3.html#replyachor
kuaildg 2010-03-17
  • 打赏
  • 举报
回复
为了对大家的辛苦的奖励,我还是将分发给大家。虽然没有真正帮上我,但是重在参与,呵呵!
kuaildg 2010-03-17
  • 打赏
  • 举报
回复
你们都没有说对啊!
我终于找到原因了,什么防火墙之类的都不是原因。至于nfs是否没有配置好,也不用谈了。我都弄了好几天,今天终于找出来了。
我个人感觉主要有以下几条:使用ARM9 开发板登陆后,能够与linux 服务器ping的通,但不能mount上的原因:
1、挂载的目录不存在
2、多余的用户,如:创建可访问的nfs文件夹时,用户里自动创建了以个类似的用户名如:nfs;


而我的原因就是第二条。
因为在首次建立nfs文件夹时,系统会自动建立一个用户nfs ,使用语句:userdel -f nfs ,删除了文件夹和用户,再重新建立nfs文件夹即可。
hotsnow1943 2010-03-17
  • 打赏
  • 举报
回复
我也感觉是防火墙没关

哈哈~~
天亮后说晚安 2010-03-17
  • 打赏
  • 举报
回复
hen you keneng
[Quote=引用 9 楼 laojing123 的回复:]
NFS没有配置好把
[/Quote]
井朝天 2010-03-17
  • 打赏
  • 举报
回复
NFS没有配置好把
谭海燕 2010-03-13
  • 打赏
  • 举报
回复
防火前关闭。


然后看看权限
kuaildg 2010-03-13
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 eugenedj 的回复:]
服务端exportfs时是否报错?
客户端是否启动了portmap?
[/Quote]

启动了,但是还是连接不上!
大头贼 2010-03-13
  • 打赏
  • 举报
回复
服务端exportfs时是否报错?
客户端是否启动了portmap?
rzsheng 2010-03-12
  • 打赏
  • 举报
回复
/etc/exports
写的对吗?

.
liangchencf 2010-03-12
  • 打赏
  • 举报
回复
两台机器的Hosts文件修改了没有?具体的记不大清楚了,我也是很久没有弄上,后来改了hosts文件就好了.
kuaildg 2010-03-11
  • 打赏
  • 举报
回复
[root@localhost ~]# ping 192.168.1.230
PING 192.168.1.230 (192.168.1.230) 56(84) bytes of data.
64 bytes from 192.168.1.230: icmp_seq=1 ttl=64 time=3.42 ms
64 bytes from 192.168.1.230: icmp_seq=2 ttl=64 time=0.781 ms
64 bytes from 192.168.1.230: icmp_seq=3 ttl=64 time=0.684 ms

--- 192.168.1.230 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.684/1.628/3.420/1.267 ms
[root@localhost ~]# vim /etc/exports
[root@localhost ~]# /etc/init.d/portmap restart
停止 portmap: [确定]
启动 portmap: [确定]
[root@localhost ~]# /etc/init.d/nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]

[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/wu_nfs *.*
[root@localhost ~]# showmount 127.0.0.1
Hosts on 127.0.0.1:
[root@localhost ~]# showmount localhost
Hosts on localhost:
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/wu_nfs *.*
[root@localhost ~]# vim /etc/exports
[root@localhost ~]# /etc/init.d/portmap restart
停止 portmap: [确定]
启动 portmap: [确定]
[root@localhost ~]# /etc/init.d/nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]
[root@localhost ~]# mount -t nfs -o nolock 192.168.1.122:/home/wu_nfs/ /mnt/
[root@localhost ~]# umount /mnt/
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/wu_nfs *
[root@localhost ~]# vim /etc/exports
[root@localhost ~]# mkdir /nfsroot
[root@localhost ~]# /etc/init.d/portmap restart
停止 portmap: [确定]
启动 portmap: [确定]
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100000 2 tcp 111 portmapper
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100000 2 udp 111 portmapper
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100024 1 udp 983 status
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100024 1 tcp 986 status
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100011 1 udp 894 rquotad
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100011 2 udp 894 rquotad
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100011 1 tcp 897 rquotad
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100011 2 tcp 897 rquotad
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100003 2 udp 2049 nfs
Cannot register service: RPC: Unable to receive; errno = Connection refused
not registered: 100003 3 udp 2049 nfs
[root@localhost ~]# /etc/init.d/portmap restart
停止 portmap: [确定]
启动 portmap: [确定]
[root@localhost ~]# /etc/init.d/nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/nfsroot *
[root@localhost ~]# vim /etc/r
racoon/ rc5.d/ reader.conf.d/ rndc.key
rc rc6.d/ redhat-lsb/ rpc
rc0.d/ rc.d/ redhat-release rpm/
rc1.d/ rc.local resolv.conf rwtab
rc2.d/ rc.sysinit resolv.conf.bak rwtab.d/
rc3.d/ readahead.d/ rhgb/
rc4.d/ reader.conf rmt
[root@localhost ~]# vim /etc/resolv.conf
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/nfsroot *
[root@localhost ~]# showmount -e 192.168.1.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog tags
[root@localhost ~]# /etc/init.d/portmap stop
停止 portmap: [确定]
[root@localhost ~]# /etc/init.d/portmap start
启动 portmap: [确定]
[root@localhost ~]# showmount -e 192.168.1.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# showmount -e 192.168.1.100

You have new mail in /var/spool/mail/root
[root@localhost ~]# vim /etc/exports
You have new mail in /var/spool/mail/root
[root@localhost ~]# showmount -e 192.168.0.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/nfsroot *
[root@localhost ~]# /etc/init.d/network restart
正在关闭接口 eth0: [确定]
正在关闭接口 eth1: [确定]
关闭环回接口: [确定]
弹出环回接口: [确定]
弹出界面 eth0: [确定]
弹出界面 eth1: [确定]
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/nfsroot *
[root@localhost ~]# showmount -e 192.168.0.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to send
[root@localhost ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:F2
inet addr:192.168.1.122 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:d2f2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1988 errors:0 dropped:0 overruns:0 frame:0
TX packets:656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:145946 (142.5 KiB) TX bytes:96648 (94.3 KiB)
Interrupt:18 Base address:0x1400

[root@localhost ~]# ifconfig eth0 192.168.0.122
[root@localhost ~]#
kuaildg 2010-03-11
  • 打赏
  • 举报
回复
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:F2
inet addr:192.168.0.230 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1941 errors:0 dropped:0 overruns:0 frame:0
TX packets:486 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:141244 (137.9 KiB) TX bytes:66300 (64.7 KiB)
Interrupt:18 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:FC
inet addr:192.168.2.122 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:d2fc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37387 errors:0 dropped:0 overruns:0 frame:0
TX packets:45197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4584045 (4.3 MiB) TX bytes:31217327 (29.7 MiB)
Interrupt:16 Base address:0x1480

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:16436 Metric:1
RX packets:5434 errors:0 dropped:0 overruns:0 frame:0
TX packets:5434 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6308759 (6.0 MiB) TX bytes:6308759 (6.0 MiB)

xenbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost ~]# ifconfig eth0 192.168.0.122
[root@localhost ~]# showmount -e 192.168.0.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# showmount -e 192.168.0.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# showmount -e 192.168.0.122
Export list for 192.168.0.122:
/home/nfsroot *
[root@localhost ~]#
kuaildg 2010-03-11
  • 打赏
  • 举报
回复
mount: mount to NFS server '192.168.1.230' failed: System Error: Connection refu sed.
[root@localhost ~]# mount -t nfs -o nolock 192.168.1.230:/home/nfs /home/wu_nfs mount: mount to NFS server '192.168.1.230' failed: System Error: Connection refu sed.
[root@localhost ~]# if
>
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:F2
inet addr:192.168.1.122 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1037 errors:0 dropped:0 overruns:0 frame:0
TX packets:232 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65774 (64.2 KiB) TX bytes:36024 (35.1 KiB)
Interrupt:18 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:FC
inet addr:192.168.2.122 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:d2fc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35306 errors:0 dropped:0 overruns:0 frame:0
TX packets:43417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4407613 (4.2 MiB) TX bytes:30990889 (29.5 MiB)
Interrupt:16 Base address:0x1480

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:16436 Metric:1
RX packets:4387 errors:0 dropped:0 overruns:0 frame:0
TX packets:4387 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6220436 (5.9 MiB) TX bytes:6220436 (5.9 MiB)

xenbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost ~]# ping 192.168.1.230
PING 192.168.1.230 (192.168.1.230) 56(84) bytes of data.

--- 192.168.1.230 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2010ms

[root@localhost ~]# ping 192.168.1.230
PING 192.168.1.230 (192.168.1.230) 56(84) bytes of data.

--- 192.168.1.230 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2007ms

[root@localhost ~]# ifconfig eth0 192.168.1.120

[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:F2
inet addr:192.168.1.120 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1037 errors:0 dropped:0 overruns:0 frame:0
TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:65774 (64.2 KiB) TX bytes:42181 (41.1 KiB)
Interrupt:18 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:0C:29:B3:D2:FC
inet addr:192.168.2.122 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:feb3:d2fc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35483 errors:0 dropped:0 overruns:0 frame:0
TX packets:43583 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4422786 (4.2 MiB) TX bytes:31013735 (29.5 MiB)
Interrupt:16 Base address:0x1480

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:16436 Metric:1
RX packets:4393 errors:0 dropped:0 overruns:0 frame:0
TX packets:4393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6221108 (5.9 MiB) TX bytes:6221108 (5.9 MiB)

xenbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@localhost ~]# ifconfig eth0 192.168.1.122
[root@localhost ~]# ping 192.168.1.122
PING 192.168.1.122 (192.168.1.122) 56(84) bytes of data.
64 bytes from 192.168.1.122: icmp_seq=1 ttl=64 time=0.156 ms
64 bytes from 192.168.1.122: icmp_seq=2 ttl=64 time=0.059 ms

--- 192.168.1.122 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.059/0.107/0.156/0.049 ms
[root@localhost ~]# ping 192.168.1.231
PING 192.168.1.231 (192.168.1.231) 56(84) bytes of data.
64 bytes from 192.168.1.231: icmp_seq=1 ttl=64 time=1.68 ms
64 bytes from 192.168.1.231: icmp_seq=2 ttl=64 time=0.660 ms

--- 192.168.1.231 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.660/1.171/1.682/0.511 ms
You have new mail in /var/spool/mail/root
[root@localhost ~]# showmount -e
mount clntudp_create: RPC: Program not registered
[root@localhost ~]# /etc/init.d/portmap restart
停止 portmap: [确定]
启动 portmap: [确定]
[root@localhost ~]# /etc/init.d/nfs restart
关闭 NFS mountd: [确定]
关闭 NFS 守护进程: [确定]
关闭 NFS quotas: [确定]
关闭 NFS 服务: [确定]
启动 NFS 服务: [确定]
关掉 NFS 配额: [确定]
启动 NFS 守护进程: [确定]
启动 NFS mountd: [确定]
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/nfsroot *
[root@localhost ~]# vim /etc/re
readahead.d/ reader.conf reader.conf.d/ redhat-lsb/ redhat-release resolv.conf resolv.conf.bak
[root@localhost ~]# vim /etc/resolv.conf
[root@localhost ~]# showmount -e 192.168.1.231
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog tags
[root@localhost ~]# ls /etc/p
pam.d/ pam_smb.conf passwd pcmcia/ php.ini pki/ ppp/ prelink.conf profile protocols
pam_pkcs11/ pango/ passwd- php.d/ pinforc pm/ prelink.cache printcap profile.d/
[root@localhost ~]# showmount -e
Export list for localhost.localdomain:
/home/nfsroot *
[root@localhost ~]# showmount -e 192.168.1.230
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# showmount -e 192.168.1.100
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@localhost ~]# ifconfig eth0 192.168.0.230
[root@localhost ~]# showmount -e 192.168.0.230
Export list for 192.168.0.230:
/home/nfsroot *


23,223

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧