XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XOA - static route - persistent

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    10 Posts 3 Posters 2.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      shade.mdk
      last edited by olivierlambert

      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

      cat /etc/network/interfaces

      # 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
      
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by olivierlambert

        Hi there!

        Read the brand new doc 😉 https://xcp-ng.org/docs/networking.html#static-routes

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shade.mdk @olivierlambert
          last edited by

          @olivierlambert
          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. ..:(

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Or sorry, I misread. For XOA, your config/route seems fine. Please display the result of route -n (as root)

            1 Reply Last reply Reply Quote 0
            • S Offline
              shade.mdk
              last edited by

              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.
              3172b7db-7aee-4c8a-bb4e-8c3397166e89-image.png
              19d057d8-76a9-4d8f-80cf-5152b01ebd62-image.png
              Thanks again.

              1 Reply Last reply Reply Quote 1
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                You are welcome 🙂 I'll add the package for the new XO Appliance (a new one is coming soon fixing various things)

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shade.mdk
                  last edited by

                  Great 😄

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Online
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    It's done by the way 🙂 New XOA got the package!

                    u2m4c6U 1 Reply Last reply Reply Quote 0
                    • u2m4c6U Offline
                      u2m4c6 @olivierlambert
                      last edited by u2m4c6

                      @olivierlambert Hopefully it is okay to bump an old thread since I have the same (or at least very similar) question. Is it possible to add the static route via XOA GUI? I was able to easily add two routes via the XE CLI for my Hetzner dedicated servers to talk Hetzner cloud servers, but just wondering if I can do that with XOA.

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Online
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        Since this is a pretty advanced setting, I'm not sure we want to add it into the UI 🤔

                        What do you think @julien-f ?

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post