This page details some of the networking tips and tricks in more detail, regarding what you can set on system records to set up networking, without having to know a lot about kickstart/Anaconda.
These features include:
If you want to use any of these features, it's highly recommended to add the MAC addresses for the interfaces you're using to Cobbler for each system.
You can give your network interface (almost) any name you like.
The default interface is named eth0, but you don't have to call it that.
Note that you can't name your interface after a kernel module you're using. For example: if a NIC is called 'drbd', the module drbd.ko would stop working. This is due to an "alias" line in /etc/modprobe.conf.
For static systems, the --name-servers parameter can be used to specify a list of name servers to assign to the systems.
You can define static routes for a particular interface to use with --static-routes. The format of a static route is:
So, for example to route the 192.168.1.0/24 network through 192.168.1.254:
As with all lists in cobbler, the --static-routes list is space-separated so you can specify multiple static routes if needed.
Three different networking Snippets must be present in your kickstart files for this to work:
pre_install_network_config network_config post_install_network_config
The default kickstart templates (/var/lib/cobbler/kickstart/sample*.ks) have these installed by default so they work out of the box. Please use those files as a reference as to where to correctly include the $SNIPPET definitions.