network settings lost during install centos 6.5

Issues related to configuring your network
Post Reply
londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

network settings lost during install centos 6.5

Post by londonnet » 2014/08/26 14:13:06

I have adjusted my isolinux.cfg to ask for network config during my kickstart install.

Code: Select all

label server1
  menu label Install a server
  kernel vmlinuz
  append initrd=initrd.img ks=cdrom:/ks/server1.cfg asknetwork noipv6 biosdevname=0
My kickstart has the following config

Code: Select all

network --device=eth0 --onboot=on --hostname=server1
network --device=eth1 --onboot=on --bootproto=static  --ip=192.11.13.6 --netmask=255.255.255.252 --nameserver=127.0.0.1
As expected during the text install I am requested to enter static IP data

However at the end of the install my eth0 config is set to dhcp and not the static IP I entered during install.

One clue is I have a static IP set for eth1 in the kickstart which shows as the default IP address for me to adjust when I select static on install. The dialogue box does not indicate which interface I am adjusting.

Is this a known issue?

Thanks

londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2014/08/27 00:23:10

Looking at the eth0 network config file it shows the bootproto as "dhcp" and not "static"

londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2014/10/24 22:11:25

How do I report this as a bug?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: network settings lost during install centos 6.5

Post by TrevorH » 2014/10/24 22:48:09

Do you pass additional parameters via the boot prompt to tell it to use the particular ip address? Without that I think you'll find that it uses dhcp for the initial connection to pick up the kickstart file since you don't have e.g. ip=/netmask=/gateway= specified on the boot parameters in your isolinux.cfg
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2014/10/25 20:43:08

Yes I do pass parameters

append initrd=initrd.img ks=cdrom:/ks/server1.cfg asknetwork noipv6 biosdevname=0

The key one being asknetwork which prompts me for network configuration. The options there are for dhcp or static but static is not passed on the eth0 config file

This looks like a bug to me. This never happed when there was the network query option in the kickstart, it just worked

londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2014/11/08 00:19:20

I've opened a bug for this

londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2015/03/19 17:37:44

Still haven't found the answer to this. Does anyone have the same issue?

Looks like no one has bothered to pick this up on the bug tracker.
https://bugs.centos.org/view.php?id=7786

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: network settings lost during install centos 6.5

Post by gerald_clark » 2015/03/19 19:17:40

CentOS does not fix RHEL bugs. You need to report it to RHEL bugzilla.


londonnet
Posts: 86
Joined: 2009/08/04 20:52:08

Re: network settings lost during install centos 6.5

Post by londonnet » 2015/03/20 21:15:30

One thing I found is if I opt for DHCP all worked well but if I enter static IP configuration during install it failed.

After a few tests I found that the config for eth0 always had DHCP set for BOOTPROTO.

It looks like this is not set correctly if you use the asknetwork option appended to your isolinux.cfg boot command.

I'm getting round this by running a post install script to change the BOOTPROTO to static but it means I can't opt for DHCP if I wanted to.

Post Reply