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

    Create Bond for management

    Scheduled Pinned Locked Moved Solved Management
    24 Posts 6 Posters 5.1k Views 5 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.
    • O Offline
      OskarNTT
      last edited by

      Hi
      How can i set BOND to my eth0 and eth1 when i have management on eth0 with vlan ?

      Tristis OrisT jbamfordJ 2 Replies Last reply Reply Quote 0
      • C Offline
        Chr57 @nikade
        last edited by

        @nikade
        It is solved.
        Reinstalled the nodes since the setup is not in production yet.
        Bond worked fine and the switch ports went from LACP fall back into LACP active/active.

        bond.jpg

        nikadeN 1 Reply Last reply Reply Quote 1
        • Tristis OrisT Offline
          Tristis Oris Top contributor @OskarNTT
          last edited by Tristis Oris

          Do you mean on trunk interface?
          just create a bond first, then create network with vlan.

          e2841c98-c2f3-454d-8a67-642c302fd29b-изображение.png

          O 1 Reply Last reply Reply Quote 0
          • O Offline
            OskarNTT @Tristis Oris
            last edited by

            @Tristis-Oris cant create with interface when i have managment
            on other my ethernet connection i have no problem, but create bond with eth0 when i have managment is a problem for XO. I wish maangment would use bond not only eth0

            Tristis OrisT 1 Reply Last reply Reply Quote 0
            • Tristis OrisT Offline
              Tristis Oris Top contributor @OskarNTT
              last edited by Tristis Oris

              @OskarNTT at that moment XO will lost connect to server and can't done creation.
              Can you change mng to another link for that operation?

              Not sure if it any another workaround here.

              maybe that possible at xen settings screen or console.
              try to create bond with xsconsole

              O 1 Reply Last reply Reply Quote 0
              • O Offline
                OskarNTT @Tristis Oris
                last edited by OskarNTT

                @Tristis-Oris said in Create Bond for management:

                @OskarNTT at that moment XO will lost connect to server and can't done creation.
                Can you change mng to another link for that operation?

                Not possible this requires from me changing in physicall inftstrature
                eth0 and eth1 going to managment switch
                eth2 and eth3 going to main lan
                eth4 and eth5 going to backup vlans

                and i create bond on lan and backup but cant on managment

                edit:
                Any tips, step by step how can i set this?

                Tristis OrisT 1 Reply Last reply Reply Quote 0
                • Tristis OrisT Offline
                  Tristis Oris Top contributor @OskarNTT
                  last edited by

                  @OskarNTT no bond creation at xsconsole, so probably only way it's cli.

                  look for syntax here https://support.citrix.com/article/CTX135690/lacp-bonding-in-xenserver-configuration-and-troubleshooting
                  But i have no idea what will happens.

                  nikadeN 1 Reply Last reply Reply Quote 0
                  • nikadeN Offline
                    nikade Top contributor @Tristis Oris
                    last edited by

                    When creating a bond with XCP-NG center the mgmt interface is moved on top of bond0 and is the "untagged" vlan. So in cisco that would be the "native vlan".

                    There is a short interruption and then connectivity is back again if you've configured the switch in LACP-mode (if choosing lacp when creating the bond).

                    O 1 Reply Last reply Reply Quote 0
                    • O Offline
                      OskarNTT @nikade
                      last edited by

                      @nikade said in Create Bond for management:

                      When creating a bond with XCP-NG center the mgmt interface is moved on top of bond0 and is the "untagged" vlan. So in cisco that would be the "native vlan".

                      There is a short interruption and then connectivity is back again if you've configured the switch in LACP-mode (if choosing lacp when creating the bond).

                      What if i have vlan and this is required?

                      1 Reply Last reply Reply Quote 0
                      • jbamfordJ Offline
                        jbamford @OskarNTT
                        last edited by

                        @OskarNTT bond never has a IP on it. You create your bond0 then create your VLANs on top. Make sure that LACP is enabled on the switch and configured as a Trunk not Access. Create VLAN first then move both Interfaces to Bond job done.

                        O 1 Reply Last reply Reply Quote 0
                        • O Offline
                          OskarNTT @jbamford
                          last edited by OskarNTT

                          @jbamford Xo cant create BOND without interface so i cant create bond and vlan to move interface

                          jbamfordJ 1 Reply Last reply Reply Quote 0
                          • jbamfordJ Offline
                            jbamford @OskarNTT
                            last edited by

                            @OskarNTT I’ve done it in XO.

                            O 1 Reply Last reply Reply Quote 0
                            • O Offline
                              OskarNTT @jbamford
                              last edited by OskarNTT

                              @jbamford said in Create Bond for management:

                              @OskarNTT I’ve done it in XO.

                              without interface?
                              2024-03-06 12_15_49-Window.png

                              jbamfordJ 1 Reply Last reply Reply Quote 0
                              • jbamfordJ Offline
                                jbamford @OskarNTT
                                last edited by

                                @OskarNTT you select the both which will automatically assign it to management just like in XCP-ng Center. I’ve done it like this on 3 nodes in a cluster.

                                nikadeN 1 Reply Last reply Reply Quote 0
                                • nikadeN Offline
                                  nikade Top contributor @jbamford
                                  last edited by

                                  @jbamford said in Create Bond for management:

                                  @OskarNTT you select the both which will automatically assign it to management just like in XCP-ng Center. I’ve done it like this on 3 nodes in a cluster.

                                  Exactly, when selecting both eth0 and eth1 the mgmt interface will be moved ontop of the bond0 as an untagged vlan.
                                  In your switch, just configure the native vlanid of your mgmt network to that lacp interface and you're good to go.

                                  jbamfordJ 1 Reply Last reply Reply Quote 0
                                  • jbamfordJ Offline
                                    jbamford @nikade
                                    last edited by

                                    @nikade correct. But I strongly recommend putting Management in a management VLAN. Do away with Native VLANs. Bond0 should never have a IP on it. Build Bond0 then VLANs on top I.e MGMT VLAN, Servers that are going to be exposed in an isolated VLAN. It is good practice to not use Native VLAN 1 and working in a Data Center like myself VLAN everything.

                                    nikadeN 1 Reply Last reply Reply Quote 0
                                    • nikadeN Offline
                                      nikade Top contributor @jbamford
                                      last edited by

                                      @jbamford said in Create Bond for management:

                                      @nikade correct. But I strongly recommend putting Management in a management VLAN. Do away with Native VLANs. Bond0 should never have a IP on it. Build Bond0 then VLANs on top I.e MGMT VLAN, Servers that are going to be exposed in an isolated VLAN. It is good practice to not use Native VLAN 1 and working in a Data Center like myself VLAN everything.

                                      Im not talking about using VLAN 1, you can change the native vlan-id on the interface to your management vlan.
                                      Also, if you dont have a dedicated nic for management you'll need to put it on the bond0 and that means bond0 having an ip on it, we've done this for about 10 years without any issues so im not really sure why you are against it.

                                      For example, our management vlan is vlan-id 99 and our server has 2 NIC's.
                                      We then create a lacp bond on eth0 and eth1 and the mgmt interface is automatically moved from the default eth0 to bond0.
                                      We then go to the switch and we configure the native vlan-id on the lacp interface to vlan-id 99.

                                      jbamfordJ 1 Reply Last reply Reply Quote 0
                                      • jbamfordJ Offline
                                        jbamford @nikade
                                        last edited by

                                        @nikade that is wrong. Bond0 never has a IP. It is one of the weaknesses with TCP-IP and 802.3ad. When I did my CCNA/CCNP it was well documented.

                                        nikadeN 1 Reply Last reply Reply Quote 0
                                        • nikadeN Offline
                                          nikade Top contributor @jbamford
                                          last edited by

                                          @jbamford said in Create Bond for management:

                                          @nikade that is wrong. Bond0 never has a IP. It is one of the weaknesses with TCP-IP and 802.3ad. When I did my CCNA/CCNP it was well documented.

                                          I don't think you are correct, this is how it looks on all 18 of our XCP-NG's with management on top of the lacp/bonded interfaces:

                                          c73b1d5a-91c4-44d7-a4f1-19d2f7f8cc07-image.png

                                          But anyway, end of discussion, you've been presented with a solution that works, if you don't want to use it that's your decision.

                                          jbamfordJ 1 Reply Last reply Reply Quote 0
                                          • jbamfordJ Offline
                                            jbamford @nikade
                                            last edited by

                                            @nikade no management VLAN looks a mess. Don’t moan when you get compromised and you wonder why data breaches happen 😄

                                            C 1 Reply Last reply Reply Quote 0
                                            • C Offline
                                              Chr57 @jbamford
                                              last edited by Chr57

                                              Have the same problem.
                                              We use LACP fallback in the switch so if the ports in the LACP not receive LACP one port goes into standard mode/non LACP. That's what is active now.

                                              Trying to create a bond with the eth0 (currently used to manage) and eth1 but can't select bond mode.

                                              Have also in the switch enabled native vlan that is the manage vlan.

                                              LACP fallback.jpg Bond managment.jpg

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