想让它开机后自动就mount上,于是就在/etc/fstab里面加了一行:
server ip:/directory /localDirectory nfs defaults 0 0
结果开机后发现没有效果。很奇怪。百思不得其解。
看/var/log/messages,发现错误:
Jan 3 16:17:35 sec3 kernel: tg3: eth0: Link is up at 100 Mbps, full duplex.
Jan 3 16:17:35 sec3 kernel: tg3: eth0: Flow control is off for TX and off for RX.
Jan 3 16:17:44 sec3 mount: mount: RPC: Remote system error - No route to host
Jan 3 16:18:02 sec3 netfs: Mounting NFS filesystems: failed