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?


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

  • No Nils I checked via ksconfig program too – mandeep Sep 11 '12 at 11:31
  • 1
    @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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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