help with network configuration
Gianluca Varenni
gianluca.varenni at gmail.com
Fri Jan 21 19:00:30 UTC 2011
That's what I ended up doing.
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.
I just wished there was an easier way to configure networking in the
kickstart configuration file.
Have a nice day
GV
From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of Moray Henderson
Sent: Friday, January 21, 2011 8:26 AM
To: 'Discussion list about Kickstart'
Subject: RE: help with network configuration
From: Gianluca Varenni [mailto:gianluca.varenni at gmail.com]
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 *not* bring them up during installation (so in practice
just write the ifcfg-ethX files)?
I tried with
network --bootproto=dhcp --device=eth0 --onboot=on -hostname=myhost
but the problem is that during the installation it tries to bring eth0 up
and get the IP address (eventually timing out).
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.
Don't configure the network in the kickstart and write the hostname
configuration from the %post section; or configure a dummy IP with the
network option then edit the network configuration in %post?
Moray.
"To err is human. To purr, feline"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20110121/c5e0149b/attachment.htm>
More information about the Kickstart-list
mailing list