使用NFS ROOTFS文件爱你系统启动,总是会出现:
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... udhcpc (v1.13.2) started
Sending discover...
Sending select for 192.168.1.100...
Lease of 192.168.1.100 obtained, lease time 86400
nfs: server 192.168.7.238 not responding, still trying
nfs: server 192.168.7.238 not responding, still trying
原因很简单,是系统默认开启了udhcp服务,而udhcp获取到的IP是192.168.1.100,而NFS服务器的IP是192.168.7.238。
为了解决这个问题,只有修改系统的网络配置了,修改/etc/network/interfaces文件的网卡配置部分,将原来的:
# Wired or wireless interfaces
auto eth0
iface eth0 inet dhcp
iface eth1 inet dhcp
改为:
# Wired or wireless interfaces
auto eth0
iface eth0 inet static
address 192.168.7.236
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.254
#iface eth1 inet dhcp
这样,系统启动后的IP就是静态IP192.168.7.236了,NFS的问题也就自然解决了。
阅读(2335) | 评论(0) | 转发(0) |