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

    Second ip for hosts interface

    Scheduled Pinned Locked Moved Xen Orchestra
    12 Posts 4 Posters 1.4k Views 4 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
      SNSNSN @olivierlambert
      last edited by

      @olivierlambert No,

      I want to add second ip address to existing interface.

      59e0373a-5426-490d-93ab-ae054ebfb35d-resim.png

      Example how can i add 10.1.2.100/24 to eth3.

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

        I would better create a new network, but I let @fohdeesha answer here

        1 Reply Last reply Reply Quote 0
        • fohdeeshaF Offline
          fohdeesha Vates 🪐 Pro Support Team @SNSNSN
          last edited by

          @SNSNSN Hi, this isn't possible, at least not without a lot of manual workarounds. It's not recommended anyhow, why do you need to assign another subnet to an adapter already in a different subnet? These should typically be isolated either physically via different connections, or via VLANs.

          1 Reply Last reply Reply Quote 0
          • planedropP Offline
            planedrop Top contributor
            last edited by

            Normally speaking you wouldn't have multiple subnets/IPs on a single virtual NIC, the best route to go is to add another NIC and assign IPs on that end.

            What is your goal here?

            S 1 Reply Last reply Reply Quote 1
            • S Offline
              SNSNSN @planedrop
              last edited by

              @planedrop said in Second ip for hosts interface:

              Normally speaking you wouldn't have multiple subnets/IPs on a single virtual NIC, the best route to go is to add another NIC and assign IPs on that end.

              What is your goal here?

              I have storages on 2 different ip blocks. 1 for NFS 1 for ISCSI...

              planedropP 1 Reply Last reply Reply Quote 0
              • planedropP Offline
                planedrop Top contributor @SNSNSN
                last edited by

                @SNSNSN Generally you'd want to create another virtual NIC for the VM to connect to the other subnet, it's very uncommon for a single NIC to be used for multiple subnets other than in a VLAN scenario (and then it's usually just for switches, hypervisors, and routers).

                You'd want to add another NIC/interface to this VM and then assign that to the other subnet/VLAN.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  SNSNSN @planedrop
                  last edited by

                  @planedrop If there is no solution to add 2 ip on single PIF, vlan will be solution. I just wonder is it possible or not...

                  planedropP fohdeeshaF 2 Replies Last reply Reply Quote 0
                  • planedropP Offline
                    planedrop Top contributor @SNSNSN
                    last edited by

                    @SNSNSN IIRC most operating systems don't support this anyway, unless you are using VLANs, multiple IPs on a single interface isn't the norm and I'm pretty sure the best way to do what you want here is add another interface on the other subnet.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      SNSNSN @planedrop
                      last edited by

                      @planedrop Yea, looks like, thank you.

                      1 Reply Last reply Reply Quote 1
                      • fohdeeshaF Offline
                        fohdeesha Vates 🪐 Pro Support Team @SNSNSN
                        last edited by

                        @SNSNSN Indeed, these would typically at least be isolated via vlans at least (one vlan for iscsi traffic, one for iscsi). There's no point in having them in two different subnets if they're in the same network and vlan, the traffic isn't isolated at all. You might as well have them in the same subnet if you're doing that, in which case you only need 1 IP on the XCP-ng management NIC.

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