[virt-tools-list] IP aliases

Cécile Mignot ccilmignot at hotmail.com
Fri Jun 9 07:27:23 UTC 2017


Hello, I complete my previous mail with informations that Cole asked me 😊



I'm a french student  in an internship and I'm working on virtualisation. I began to work on Qemu/KVM and install virt-manager to set my network.
Here is my configuration:



On my RedHat 32bits guest: I have 4 interfaces eth0 eth1 eth2 and eth3 with some IP addresses configured.

--> eth0 has 3 VLAN (can be changed to aliases) and eth3 has one alias and one VLAN/alias.



On my Redhat 64 bits host: I have 4 interfaces p1p1 p1p2 p1p3 ans p1p4 with IP adresses on the same network as the guest.

--> p1p1 has 3 VLAN/aliases and p1p4 has one alias and one VLAN/alias (also same network as the guest)



I set br0 br1 br2 and br3 so I can ping each interfaces: it works. But no way to set VLAN or aliases!



[root at localhost opt]# virsh version
Compiled against library: libvirt 0.10.2
Using library: libvirt 0.10.2
Using API: QEMU 0.10.2
Running hypervisor: QEMU 0.12.1


[root at localhost opt]# virsh dumpxml QEMUMASTER
<domain type='kvm'>
  <name>QEMUMASTER</name>
  <uuid>3bf887c1-b4e0-ba87-af0b-14530527c298</uuid>
  <memory unit='KiB'>2048000</memory>
  <currentMemory unit='KiB'>2048000</currentMemory>
  <vcpu placement='static'>8</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.6.0'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
    <boot dev='fd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/home/redhatimage.iso'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:9a:f1:1f'/>
      <source bridge='br2'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='52:54:00:f0:40:53'/>
      <source bridge='br3'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='52:54:00:41:0b:88'/>
      <source bridge='br4'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='52:54:00:8b:1f:f2'/>
      <source bridge='br1'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </memballoon>
  </devices>
</domain>

HOST:

[root at localhost opt]# ifconfig -a
br0       Link encap:Ethernet  HWaddr A6:5F:8E:18:80:0C
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:252 (252.0 b)

br1       Link encap:Ethernet  HWaddr A0:36:9F:62:FD:94
          inet addr:66.36.1.1  Bcast:66.36.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:252 (252.0 b)

br2       Link encap:Ethernet  HWaddr A0:36:9F:62:FD:95
          inet addr:66.21.100.101  Bcast:66.21.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:552 (552.0 b)  TX bytes:252 (252.0 b)

br3       Link encap:Ethernet  HWaddr A0:36:9F:62:FD:96
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:598 (598.0 b)  TX bytes:0 (0.0 b)

br4       Link encap:Ethernet  HWaddr A0:36:9F:62:FD:97
          inet addr:66.47.50.101  Bcast:66.47.50.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:322 (322.0 b)  TX bytes:252 (252.0 b)

lo        Link encap:Local Loopback
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:23632 (23.0 KiB)  TX bytes:23632 (23.0 KiB)

p1p1      Link encap:Ethernet  HWaddr A0:36:9F:62:FD:94
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:220 errors:0 dropped:0 overruns:0 frame:0
          TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13200 (12.8 KiB)  TX bytes:6798 (6.6 KiB)
          Memory:d7400000-d74fffff

p1p2      Link encap:Ethernet  HWaddr A0:36:9F:62:FD:95
          inet addr:66.21.100.101  Bcast:66.21.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:224 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6540 (6.3 KiB)  TX bytes:11588 (11.3 KiB)
          Memory:d7300000-d73fffff

p1p3      Link encap:Ethernet  HWaddr A0:36:9F:62:FD:96
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:331 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19860 (19.3 KiB)  TX bytes:42 (42.0 b)
          Memory:d7200000-d72fffff

p1p4      Link encap:Ethernet  HWaddr A0:36:9F:62:FD:97
          inet addr:66.47.50.101  Bcast:66.47.50.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19500 (19.0 KiB)  TX bytes:294 (294.0 b)
          Memory:d7100000-d71fffff

p1p4:1    Link encap:Ethernet  HWaddr A0:36:9F:62:FD:97
          inet addr:9.1.4.101  Bcast:9.1.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:d7100000-d71fffff

p1p4:2    Link encap:Ethernet  HWaddr A0:36:9F:62:FD:97
          inet addr:66.47.1.120  Bcast:66.47.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Memory:d7100000-d71fffff

GUEST:


[root at cva01i0 Desktop]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 52:54:00:8B:1F:F2
          inet addr:66.36.1.100  Bcast:66.36.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7079 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:9743063 (9.2 MiB)

eth0.10   Link encap:Ethernet  HWaddr 52:54:00:8B:1F:F2
          inet addr:66.47.10.11  Bcast:66.47.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:303 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:12726 (12.4 KiB)

eth0.30   Link encap:Ethernet  HWaddr 52:54:00:8B:1F:F2
          inet addr:66.47.31.1  Bcast:66.47.31.15  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6776 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:9730337 (9.2 MiB)

eth0.100  Link encap:Ethernet  HWaddr 52:54:00:8B:1F:F2
          inet addr:66.32.100.150  Bcast:66.32.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0.120  Link encap:Ethernet  HWaddr 52:54:00:8B:1F:F2
          inet addr:66.21.200.1  Bcast:66.21.200.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth1      Link encap:Ethernet  HWaddr 52:54:00:9A:F1:1F
          inet addr:66.21.100.1  Bcast:66.21.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21120 (20.6 KiB)  TX bytes:0 (0.0 b)

eth2      Link encap:Ethernet  HWaddr 52:54:00:F0:40:53
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth3      Link encap:Ethernet  HWaddr 52:54:00:41:0B:88
          inet addr:66.47.50.10  Bcast:66.47.50.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:330 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21120 (20.6 KiB)  TX bytes:0 (0.0 b)

eth3:1    Link encap:Ethernet  HWaddr 52:54:00:41:0B:88
          inet addr:9.1.4.204  Bcast:9.1.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:366 errors:0 dropped:0 overruns:0 frame:0
          TX packets:366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36289 (35.4 KiB)  TX bytes:36289 (35.4 KiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:FB:D6:C3
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

virbr0-nic Link encap:Ethernet  HWaddr 52:54:00:FB:D6:C3
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


I am mailing you because it's been weeks that I'm searching, nobody can help me in my company and there is nothing on the Internet ;(



Thank you very much for your concern,



Cécile Mignot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20170609/cca94fd0/attachment.htm>


More information about the virt-tools-list mailing list