On Wed, 2024-12-11 at 20:43 +0000, Zé Loff wrote:
> 
> On Wed, Dec 11, 2024 at 07:49:13PM +0100, ASV wrote:
> > Hi everyone,
> > I'm stuck on trying to use an alias from a VM. Everything works
> > from
> > its main ip address 10.0.0.53 but from an alias, in this case
> > 172.16.20.1, I can't manage to make comms going out from it.
> > 
> > For example with "ping -I 172.16.20.1 <whatever-ip>" or openvpn
> > binding
> > from it. There's no firewall active and there is no block from the
> > border firewall for that IP address. At this point I'm wondering if
> > that could work at all.
> > 
> > For the record the configuration of the VM is pretty much based on
> > the
> > "Option 4" of the official OpenBSD guide at
> > https://www.openbsd.org/faq/faq16.html#VMMnet
> > 
> > any hing would be appreciated.
> > Thank you.
> > 
> > 
> > 
> > *** VSWITCH configuration
> > veb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>
> >         description: switch1-SWITCH01
> >         index 7 llprio 3
> >         groups: veb
> >         em1 flags=3<LEARNING,DISCOVER>
> >                 port 2 ifpriority 0 ifcost 0
> >         vport0 flags=3<LEARNING,DISCOVER>
> >                 port 8 ifpriority 0 ifcost 0
> >         tap0 flags=3<LEARNING,DISCOVER>
> >                 port 11 ifpriority 0 ifcost 0
> > vport0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
> > mtu
> > 1500
> >         lladdr fe:e1:ba:d0:fa:31
> >         description: INTERNAL
> >         index 8 priority 0 llprio 3
> >         groups: vport
> >         inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
> > 
> > *** VM configuration
> > switch "SWITCH01" {
> >     interface veb0
> > }
> > vm "VM-01" {
> >     memory 800M
> >     enable
> >     disk /root/VM-01.qcow2
> >     interfaces 1
> >     interface { switch "SWITCH01" }
> > }
> > 
> > *** VM NIC output
> > vio0:
> > flags=808b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAS
> > T,AU
> > TOCONF4> mtu 1500
> >         lladdr fe:e1:bb:d1:0a:30
> >         index 1 priority 0 llprio 3
> >         groups: egress
> >         media: Ethernet autoselect
> >         status: active
> >         inet 10.0.0.53 netmask 0xffffff00 broadcast 10.0.0.255
> >         inet 172.16.20.1 netmask 0xffffffff
> > 
> 
> That alias's netmask doesn't look right to me.  Also, does the VM
> host
> have an appropriate routing rule for that subnet?  What does "route
> get
> 172.16.20.1" say?
> 
> 
Hi, below the command output. About the netmask, IIRC the alias comes
with a /32 subnet.

# route get 172.16.20.1
   route to: 172.16.20.1
destination: 172.16.20.1
       mask: 255.255.255.255
  interface: vio0
 if address: 172.16.20.1
   priority: 1 (local)
      flags: <UP,HOST,DONE,LLINFO,LOCAL>
     use       mtu    expire
      44         0         0

Reply via email to