<div><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">maybe there is something wrong with your spell,please verify '</span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">–hostname</span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">',it  '--' not '</span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">–</span><span class="Apple-style-span" style="font-family: Calibri, sans-serif; font-size: 15px; ">'</span></div><div><font class="Apple-style-span" face="Calibri, sans-serif"><span class="Apple-style-span" style="font-size: 15px;"><br></span></font></div><blockquote id="isReplyContent" style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1F497D">That’s what I ended up doing.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">I change the host name in /etc/hosts and /etc/sysconfig/network, and I manually reconfigure ethX by playing with the /etc/sysconfig/network-scripts/ifcfg-ethX files. Everything is done in a %post section.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">I just wished there was an easier way to configure networking in the kickstart configuration file.<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">Have a nice day<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D">GV<o:p></o:p></span></p><p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a>[mailto:<a href="mailto:kickstart-list-bounces@redhat.com">kickstart-list-bounces@redhat.com</a>]<b>On Behalf Of</b>Moray Henderson<br><b>Sent:</b>Friday, January 21, 2011 8:26 AM<br><b>To:</b>'Discussion list about Kickstart'<br><b>Subject:</b>RE: help with network configuration<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p> </o:p></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Gianluca Varenni [mailto:<a href="mailto:gianluca.varenni@gmail.com">gianluca.varenni@gmail.com</a>]<br></span>Is there a way in the kickstart configuration file to tell anaconda to configure the network interfaces with some parameters (e.g. DHCP vs static IP, onboot…) but do *<b>not</b>* bring them up during installation (so in practice just write the ifcfg-ethX files)?<span style="color:#1F497D"><o:p></o:p></span></p></div></div><p class="MsoNormal">I tried with<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">network  --bootproto=dhcp --device=eth0 --onboot=on –hostname=myhost<o:p></o:p></p><p class="MsoNormal"><o:p> </o:p></p><p class="MsoNormal">but the problem is that during the installation it tries to bring eth0 up and get the IP address (eventually timing out).<o:p></o:p></p><p class="MsoNormal">If I don’t put that line in the kickstart file, all the interfaces are silently configured for DHCP and onboot=yes, and the hostname is not configured.<o:p></o:p></p></div><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D">Don’t configure the network in the kickstart and write the hostname configuration from the %post section; or configure a dummy IP with the</span><span lang="EN-GB" style="color:black">network</span><span lang="EN-GB" style="color:#1F497D">option  then edit the network configuration in %post?<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;color:#1F497D">Moray.<br>"To err is human.  To purr, feline"</span><span lang="EN-GB" style="color:#1F497D"><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1F497D"><o:p> </o:p></span></p></div></blockquote><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>