Hi! hopefully someone can give me a hint with this:
I need to create a vm with a point-to-point connection to the host
using a /30 subnet. Right now i have this in the vm's xml for libvirt:
<interface type="network" name="eth0" onboot="yes">
<source network="default"/>
<mac address="02:fd:00:00:01:00"/>
</interface>
Which brings up an interface in the vm that is configured later by a a
daemon, getting to this:
vnx@r2:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 02:fd:00:00:01:00
inet addr:10.250.0.2 Bcast:10.250.0.3 Mask:255.255.255.252
While in the host the other interface is created:
root@tau:/home/jorge/workspace/vnx# ifconfig r2-e0
r2-e0 Link encap:Ethernet HWaddr 0a:81:b6:3c:24:15
inet addr:10.250.0.1 Bcast:10.250.0.3 Mask:255.255.255.252
However there is no connectivity between them, probably because of
some mistake in the <interface> tag, perhaps a wrong 'type' attribute,
but i haven't found out yet. I wouldn't want to create a bridge and
connect both interfaces (vm's and host's) to the bridge, but to have
this ptp, if possible. How would i go about doing that?
thanks!
Jorge