Created
August 4, 2019 17:02
-
-
Save flyemsafe/fd47c9dfbb622340dddfbdd0afec1c75 to your computer and use it in GitHub Desktop.
libvirt network setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo cat /etc/sysconfig/network-scripts/ifcfg-eno1 | |
DEVICE=eno1 | |
NAME=VMBR0SLAVE | |
TYPE=Ethernet | |
HWADDR=ac:1f:6b:7b:30:06 | |
BOOTPROTO=none | |
ONBOOT=yes | |
BRIDGE=vmbr0 | |
ZONE=public | |
sudo cat /etc/sysconfig/network-scripts/ifcfg-vmbr0 | |
DEVICE=vmbr0 | |
NAME=mgmnet | |
TYPE=Bridge | |
IPADDR=172.24.24.3 | |
NETMASK=255.255.255.0 | |
GATEWAY=172.24.24.1 | |
PREFIX=24 | |
BOOTPROTO=static | |
ONBOOT=yes | |
DELAY=0 | |
ZONE=public | |
sudo virsh net-dumpxml lunchnet | |
<network connections='1'> | |
<name>lunchnet</name> | |
<uuid>0d4c1a13-db86-440e-a943-abef3e40777f</uuid> | |
<forward mode='bridge'/> | |
<bridge name='vmbr0'/> | |
</network> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment