SOLVED XOA - static route - persistent
Hi, any ideea how to correctly add a static network route in XOA integrated install from XCP-ng enviroment?
Tried debian default config and seems not to work
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 10.13.0.12 netmask 255.255.255.0 gateway 10.13.0.1 post-up route add -net 10.8.0.0 netmask 255.255.255.0 gw 10.13.0.252 pre-down route del -net 10.8.0.0 netmask 255.255.255.0 gw 10.13.0.252
Read the brand new doc https://xcp-ng.org/docs/networking.html#static-routes
Thanks for reply, but .... manual is for XCP-ng server static route configuration - this already solved and it worked "like a charm".
My issue is with Xen Orchestra virtual machine that can be imported and installed when XCP-ng virtualization environment is functional.
This is where my trouble lies. ..:(
Or sorry, I misread. For XOA, your config/route seems fine. Please display the result of
route -n(as root)
Well :() thanks for reply.. and for solving the issue at the same time:
"route -n" doesn't work because net-tools package was not installed (static config was right, and I added static route using newer "ip" route package - that would have worked until next reboot.
Seems that XOA was missing net-tools necessary to interpret config,
Installed net-tools and after machine rebooted static route was added from confing.
You are welcome I'll add the package for the new XO Appliance (a new one is coming soon fixing various things)
It's done by the way New XOA got the package!