一、静态IP启动Kernel Command
console=ttyO0,115200n8 \
root=/dev/nfs \
nfsroot=192.168.41.224:/home/apple/nfsroot/rootfs,v3,nolock rw \
ip=192.168.41.123:192.168.41.224:192.168.41.1:255.255.255.0::eth0:off
二、DHCP 启动Kernel Command
console=ttyO0,115200n8 \
root=/dev/nfs \
nfsroot=192.168.41.224:/home/apple/nfsroot/rootfs,v3,nolock rw \
ip=dhcp
三、两者区别
两者区别主要在ip字段上:
静态模式下:
ip = <client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
(autoconf 必须是 off,否则就不是静态ip了)
DHCP模式下:
ip = <autoconf>:<dns0-ip>:<dns1-ip>:<ntp0-ip>