cobbler how to set static ip address for ubuntu

Clint Byrum clint at ubuntu.com
Wed May 9 14:25:11 UTC 2012


Excerpts from Shake Chen's message of Wed May 09 05:47:11 -0700 2012:
> Hi
> 
> I have set up orchestra in ubuntu 12.04. use cobbler deploy OS
> 
> the Centos and ubuntu working well .
> 
> Now I need set the static IP address for the node.
> 
> In centos , I have success,
> 
> but for Ubuntu, it no working.
> 
> I read http://terrarum.net/administration/deploying-ubuntu-with-cobbler.html
> 
> can not working.
> 

Hi Shake!

If you want to set the IP address in the pre-seed, edit the kickstart
template and add a section with static IP config:

# Static network configuration.
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/get_ipaddress string 192.168.1.42
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/confirm_static boolean true

You can replace any of these with variables, check

sudo cobbler system dumpvars --name=your-system-record

To get the values for the system you want to boot.




More information about the ubuntu-server mailing list