Hi Clint<br><br>thanks for reply.  let me explan in detail. I think we need use <strong class="final-path">snippets sovle the problem.</strong><br><br>I use cobbler deploy OS. I hope all the pc have static IP.<br><br>I try to <br>
cobbler system add --name=node58 --profile=CentOS6.2-x86_64 --mac=00:25:90:2D:7A:42 --interface=eth0 --ip=172.16.10.58 --hostname=node58 --gateway=172.16.10.1 --dns-name=114.114.114.114<br><br>the node would static IP , This is exactly what I wanted.<br>
<br>for Redhat, cobbler provide <a href="https://github.com/cobbler/cobbler/wiki/Kickstart%20Snippets">Kickstart Snippets</a>  for seting static IP address.<br><a href="https://github.com/cobbler/cobbler/tree/master/snippets">https://github.com/cobbler/cobbler/tree/master/snippets</a><br>
<br>but for ubuntu, modify IP have different from Redhat.<br><br>How to let ubuntu also can set static IP use Snippets.<br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Wed, May 9, 2012 at 10:25 PM, Clint Byrum <span dir="ltr"><<a href="mailto:clint@ubuntu.com" target="_blank">clint@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Excerpts from Shake Chen's message of Wed May 09 05:47:11 -0700 2012:<br>
<div><div class="h5">> Hi<br>
><br>
> I have set up orchestra in ubuntu 12.04. use cobbler deploy OS<br>
><br>
> the Centos and ubuntu working well .<br>
><br>
> Now I need set the static IP address for the node.<br>
><br>
> In centos , I have success,<br>
><br>
> but for Ubuntu, it no working.<br>
><br>
> I read <a href="http://terrarum.net/administration/deploying-ubuntu-with-cobbler.html" target="_blank">http://terrarum.net/administration/deploying-ubuntu-with-cobbler.html</a><br>
><br>
> can not working.<br>
><br>
<br>
</div></div>Hi Shake!<br>
<br>
If you want to set the IP address in the pre-seed, edit the kickstart<br>
template and add a section with static IP config:<br>
<br>
# Static network configuration.<br>
d-i netcfg/get_nameservers string 192.168.1.1<br>
d-i netcfg/get_ipaddress string 192.168.1.42<br>
d-i netcfg/get_netmask string 255.255.255.0<br>
d-i netcfg/get_gateway string 192.168.1.1<br>
d-i netcfg/confirm_static boolean true<br>
<br>
You can replace any of these with variables, check<br>
<br>
sudo cobbler system dumpvars --name=your-system-record<br>
<br>
To get the values for the system you want to boot.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
ubuntu-server mailing list<br>
<a href="mailto:ubuntu-server@lists.ubuntu.com">ubuntu-server@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
More info: <a href="https://wiki.ubuntu.com/ServerTeam" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Shake Chen<br><br><br>