【Linux】kickstart安装时开启network设置

来源:互联网 发布:神经网络反向传播算法 编辑:程序博客网 时间:2024/05/16 08:21

    本方法应该在CentOS5.x使用暂时没有任何问题。

    一般使用kickstart安装网络的安装方式都使用DHCP模式,也就是动态IP。但如果你想要安装的时候把机器配置成静态IP,一种方式是你可以kickstart安装后,自己手动设置。当然还有另一种更人性化的方式是安装时开启network设置。

    在redhat官网上并没有看到相关的资料,在CentOS网站上发现http://wiki.centos.org/TipsAndTricks/KickStart  

Forcing kickstart to ask for network configuration

Starting at CentOS 5, there a undocumented option that enable a prompt asking for network configuration during the installation. At the network statement, put the query keyword at the--bootproto= networking configuration, as we see below:

network --device=eth0 --bootproto=query
And a dialog box will appear asking for IP addressing, as well the hostname configuration.

    只要在ks.cfg文件中把network设置成network --device=eth0 --bootproto=query即可开启network设置。

原创粉丝点击