...
Step | Description |
---|---|
Gather information about the existing network configuration. | List all existing interfaces, their status and their MAC addresses: List all configured IP addresses and netmasks: List the routing table entries: |
If needed, create a new connection for the physical interface to be used with the bridge. |
|
If needed, create a bridge and set a static IP address for it. | # nmcli con add type bridge autoconnect yes \ 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 \ |
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 | ||
---|---|---|
| ||
Basic Emulator Configuration Using a TAP Interface
...