How can one configure bridge over a physical interface in Red Hat Enterprise Linux 7 kickstart installation?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 7.1
  • Kickstart installation

Issue

  • How can one configure bridge over a physical interface in Red Hat Enterprise Linux 7 kickstart installation?

Resolution

  • Red Hat Enterprise Linux 7.0 doesn't have any option to create brigde in kickstart except %post script
  • One can do that in kickstart's %post section very easily. There are NetworkManager commands given in the following section for creating a bridge on command line.
  • Write a small script which will convert the physical interface into Bridged interface. Refer this Documentation
  • There is no kickstart parameter for configuring bridge actually. Execute the same set of commands in kickstart %post script which are needed to execute on the running machine to convert it's physical interface into bridged interface.
  • Red Hat Enterprise Linux 7.1 enables this feature
  • Starting with Red Hat Enterprise Linux 7.1 , it's possible to configure a network bridge during the installation in both the manual installation (in the Network & Hostname screen) and in Kickstart without using a %post script (using the new --bridgeslaves= and --bridgeopts= options for the network command. This is explained in the 7.1 Release Notes and it is documented in the Installation Guide (scroll down to the network command).

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

3 Comments

Note that starting with RHEL 7.1 it is actually possible to configure a network bridge during the installation in both the manual installation (in the Network & Hostname screen) and in Kickstart without using a %post script (using the new --bridgeslaves= and --bridgeopts= options for the network command. This is explained in the 7.1 Release Notes and it is documented in the Installation Guide (scroll down to the network command).

Thank you so much Petr, I updated and re-published the Solution.

I have found this useful, though it didn't seem to work if the bridgeslave is a vlan interface