Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: small clarification regarding nm file location

...

StepDescription
Gather information about the existing network configuration.


List all existing interfaces, their status and their MAC addresses:
   # ip link show

List all configured IP addresses and netmasks:
   # ip addr show

List the routing table entries:
   # ip route show

If needed, create a new connection for the physical interface to be used with the bridge.

# nmcli conn add type ethernet autoconnect yes \
con-name
<physical-int-name> \
ifname <pysical-int-name> ip4 0.0.0.0

If needed, create a bridge and set a static IP address for it.# nmcli con add type bridge autoconnect yes \
con-name
mybr0 ifname mybr0  \
ipv4.method manual ip4
<ipaddr/mask> stp off
If needed, activate bridge.# nmcli con up bridge-mybr0
If needed, add physical interface to bridge (not supported for cloud installations).# nmcli conn modify <physical-int-conn> master mybr0 \
slave-type bridge
Activate changes to interface.# nmcli conn up <physical-int-conn>

After the bridge has been created, you can let the emulator create a TAP interface automatically and use the initialize command in the emulator configuration to add the required TAP interfaces interface for the emulator to the bridge.

Please note: By default, nmcli commands are persistent (. The connection information is stored in /etc/sysconfig/network-scripts/)  if the default plugin in /etc/NetworkManager/NetworkManager.conf is ifcfg-rh. It is stored in /etc/NetworkManager/system-connections/ if the default plugin is keyfile. Permanent TAP connection information is always stored in the NetworkManager directory unless the network-scripts package is used for configuration.

Div
classpagebreak


Basic Emulator Configuration Using a TAP Interface

...