June 2017
Intermediate to advanced
340 pages
8h 22m
English
To create a new bridge interface using libvirt, run the following commands:
root@kvm:~# cat test_bridge.xml<interface type='bridge' name='test_bridge'> <start mode="onboot"/> <protocol family='ipv4'> <ip address='192.168.1.100' prefix='24'/> </protocol> <bridge> <interface type='ethernet' name='vnet0'> <mac address='fe:54:00:55:9b:d6'/> </interface> </bridge></interface>root@kvm:~#
root@kvm:~# virsh iface-define test_bridge.xmlInterface test_bridge defined from test_bridge.xmlroot@kvm:~#
root@kvm:~# virsh iface-list --all Name State MAC Address--------------------------------------------------- ...
Read now
Unlock full access