Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:linux:virt_kvm [2017/02/19 15:56]
procacci@tem-tsp.eu [dnsmasq]
docpublic:systemes:linux:virt_kvm [2017/02/22 18:21] (current)
procacci@tem-tsp.eu [add 2nd network on specific NIC]
Line 213: Line 213:
 </network> </network>
 [root@localhost ~]#  [root@localhost ~]# 
 +</code>
 +
 +==== retrait reseau ====
 +
 +<code>
 +
 +[root@localhost ~]# virsh net-list --all
 + Nom                  État      Démarrage automatique Persistent
 +----------------------------------------------------------
 + default              actif      yes           yes
 + p4p1_routed          actif      yes           yes
 +
 +[root@localhost ~]# virsh net-destroy p4p1_routed
 +Réseau p4p1_routed détruit
 +
 +[root@localhost ~]# virsh net-list --all
 + Nom                  État      Démarrage automatique Persistent
 +----------------------------------------------------------
 + default              actif      yes           yes
 + p4p1_routed          inactif    yes           yes
 +
 +[root@localhost ~]# virsh net-undefine p4p1_routed
 +Le réseau p4p1_routed n'est plus défini
 +
 +[root@localhost ~]# virsh net-list --all
 + Nom                  État      Démarrage automatique Persistent
 +----------------------------------------------------------
 + default              actif      yes           yes
 +
 +[root@localhost ~]# ls  /etc/libvirt/qemu/networks/
 +autostart  default.xml
 +</code>
 +
 +==== ajout 2eme interface =====
 +
 +<code>
 +[root@localhost ~]# brctl show
 +bridge name bridge id STP enabled interfaces
 +virbr0 8000.5254005d4f0b yes virbr0-nic
 + vnet0
 +virbr1 8000.525400f6a6f4 yes virbr1-nic
 +[root@localhost ~]# virsh attach-interface --domain pfsense --type bridge --source virbr1 --target eth2 --model virtioInterface attached successfully
 +
 +[root@localhost ~]#  virsh domiflist pfsense
 +Interface  Type       Source     Model       MAC
 +-------------------------------------------------------
 +vnet0      bridge     virbr0     rtl8139     52:54:00:ad:7a:83
 +eth2       bridge     virbr1     virtio      52:54:00:c9:23:02
 +
 </code> </code>
  
docpublic/systemes/linux/virt_kvm.1487519779.txt.gz · Last modified: 2017/02/19 15:56 by procacci@tem-tsp.eu
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0