Changing your IP addresses is pretty straightforward in the old ifcfg
-style files, and it's actually pretty simple using NetworkManager
tools as well.
As kickstart is only used to set up a system, it is not relevant to go in depth into this matter in this recipe.
Let's change our current IPv4 address and gateway for eth1
to 10.0.0.3
/8
, with 10.0.0.2
as the default gateway.
Managing IPv6 ip addresses is as straightforward as configuring your IPv4 counterparts.
The options you need to use in kickstart to set your ip address and gateway are:
--ip
: This is used to set the system's IPv4 address--netmask
: This is used for the subnet mask--gateway
: This is used to set the IPv4 gateway