Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Kickstart to automate a CentOS install. I wanted one of the interfaces to have static IP so I wrote -

network --onboot yes --bootproto static \
        -ip="intended IP" -netmask="intended netmask" \
        -gateway="intented gateway" --device eth0*

I also wanted the other ethernet to have dynamic ip so i also configured a DHCP server for my network and for the other interface card wrote

network --onboot yes --device eth1 --bootproto dhcp

But to my surprise the ethernet to be configured static was also provided with dynamic IP. What is wrong here?

share|improve this question

The answer seems simple. You used the wrong syntax. "-" instead of "--".

share|improve this answer
No Nils I checked via ksconfig program too – mandeep Sep 11 '12 at 11:31
@mandeep that would not be the first GUI to generate a wrong configuration. I checked the CentOS-kickstart-documentation for the syntax. – Nils Sep 12 '12 at 19:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.