Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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
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

 
discard

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.