How to Connect virtual network with Bond interface (Virtuozzo 7)?

Discussion in 'Installation, Update and Configuration' started by Machiasiaweb, Aug 17, 2016.

  1. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    I have created bond0 during installation of Virtuozzo 7

    After done installation. Bonding is work fine and it now automatic binding to bridge interface (br0)

    ---------------
    bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
    ether 00:50:56:b0:23:f1 txqueuelen 0 (Ethernet)
    RX packets 900412 bytes 56989679 (54.3 MiB)
    RX errors 0 dropped 443367 overruns 0 frame 0
    TX packets 6053 bytes 1111202 (1.0 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 111.222.333.444 netmask 255.255.255.0 broadcast 111.222.333.1
    inet6 fe80::250:56ff:feb0:23f1 prefixlen 64 scopeid 0x20<link>
    ether 00:50:56:b0:23:f1 txqueuelen 0 (Ethernet)
    RX packets 457029 bytes 22764263 (21.7 MiB)
    RX errors 0 dropped 3 overruns 0 frame 0
    TX packets 6027 bytes 1086074 (1.0 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    eno16777728: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
    ether 00:50:56:b0:23:f1 txqueuelen 1000 (Ethernet)
    RX packets 457426 bytes 29231429 (27.8 MiB)
    RX errors 0 dropped 1 overruns 0 frame 0
    TX packets 6050 bytes 1110892 (1.0 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    eno33554952: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
    ether 00:50:56:b0:23:f1 txqueuelen 1000 (Ethernet)
    RX packets 442993 bytes 27758670 (26.4 MiB)
    RX errors 0 dropped 442979 overruns 0 frame 0
    TX packets 7 bytes 670 (670.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    -------------------

    When listing with virtual network, it looks still not nothing to there.

    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Host-Only host-only virbr0

    So I tried to add by myself

    # prlsrvctl net add Bridged
    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Bridged host-only virbr2
    Host-Only host-only virbr0

    # prlsrvctl net set Bridged -i bond0
    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Bridged host-only virbr1
    Host-Only host-only virbr0

    # prlsrvctl net set Bridged -t bridged --ifname bond0
    Failed to update Virtual Network Bridged: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.

    # prlsrvctl net addif Bridged bond0
    Failed to update Virtual Network Bridged: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.

    # prlsrvctl net set Bridged -i br0
    Failed to find network adapter br0 on the server.

    ----
    It was fail to add there. What is the correct step I should follow up?

    Thx!
     
    Last edited: Aug 17, 2016
  2. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
  3. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    Unfortunately I retry with vz7 again but still fail.
    ----------------------------------------------------------
    # prlsrvctl net add Bridged

    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Bridged host-only virbr2
    Host-Only host-only virbr0

    # prlsrvctl net set Bridged -t bridged --ifname bond0
    Failed to update Virtual Network Bridged: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.

    # prlsrvctl net set Bridged -i bond0

    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Bridged host-only virbr1
    Host-Only host-only virbr0

    # prlsrvctl net add Bridged -t bridged --ifname bond0
    Failed to add Virtual Network Bridged: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.

    ----------------------------------------------------

    Could you please advise more details?

    Thx!
     
    Last edited: Aug 17, 2016
  4. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    This clearly indicates you've skipped bridge configuration steps. Make sure you have persistent configuration file and it's set up according to documentation
     
  5. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    Thanks for your advise. I have added bridge config but still no luck. Is it something I still missing?

    =======

    # cd /etc/sysconfig/network-scripts

    # cp ifcfg-Bond_connection_1 ifcfg-bond1

    Edit ifcfg-bond1. Change bond0 to bond1. Change Bridged="br0" to "bridged". Remark UUID

    # cat ifcfg-bond1
    DEVICE=bond1
    BONDING_OPTS="miimon=100 updelay=0 downdelay=0 mode=active-backup"
    TYPE=Bond
    BONDING_MASTER=yes
    #UUID=8014dde4-4ea9-4b4c-be61-845d47a3c41d
    ONBOOT=yes
    BRIDGE="bridged"

    # cp ifcfg-br0 ifcfg-bridged

    Edit ifcfg-bridged. change br0 to bridged. Remark UUID. Remark those network IP setting

    # service network restart

    #prlsrvctl net add bridged

    #ifconfig | more
    bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500
    ether 00:50:56:b0:23:f1 txqueuelen 0 (Ethernet)
    RX packets 31757 bytes 2024989 (1.9 MiB)
    RX errors 0 dropped 15645 overruns 0 frame 0
    TX packets 459 bytes 78674 (76.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 111.222.333.444 netmask 255.255.255.0 broadcast 111.222.333.0
    inet6 fe80::250:56ff:feb0:23f1 prefixlen 64 scopeid 0x20<link>
    ether 00:50:56:b0:23:f1 txqueuelen 0 (Ethernet)
    RX packets 16112 bytes 809699 (790.7 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 458 bytes 72754 (71.0 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    bridged: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
    ether 52:fe:95:aa:43:d1 txqueuelen 0 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2 bytes 180 (180.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    bridged host-only virbr2
    Host-Only host-only virbr0


    # prlsrvctl net set bridged -t bridged --ifname bond1
    Failed to update Virtual Network bridged: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.

    # prlsrvctl net set bridged -i bond1

    No error but did not binding to bond1
    # prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    bridged host-only virbr1
    Host-Only host-only virbr0
    =================================
    Thx!
     
    Last edited: Aug 18, 2016
  6. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Network is still misconfigured. I can see that from the packet count on interface bridge which you shouldn't have even created in the first place.
    Please post output of the following command:
    Code:
     # grep . /etc/sysconfig/network-scripts/ifcfg-*
     
  7. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    Please find the output and I have tried additional config. Please check my last modified message.
    ========
    grep . /etc/sysconfig/network-scripts/ifcfg-*
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:HWADDR=00:50:56:B0:23:F1
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:TYPE=Ethernet
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:NAME="bond0 slave 1"
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:UUID=25cfb10b-57dc-4427-923e 3c546c80468e
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:DEVICE=eno16777728
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:MASTER=bond0
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_1:SLAVE=yes
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:HWADDR=00:50:56:B0:1A:96
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:TYPE=Ethernet
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:NAME="bond0 slave 2"
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:UUID=f20f4e3f-097b-4165-adae 1615553b2a74
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:DEVICE=eno33554952
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:MASTER=bond0
    /etc/sysconfig/network-scripts/ifcfg-bond0_slave_2:SLAVE=yes
    /etc/sysconfig/network-scripts/ifcfg-bond1:DEVICE=bond1
    /etc/sysconfig/network-scripts/ifcfg-bond1:BONDING_OPTS="miimon=100 updelay=0 d wndelay=0 mode=active-backup"
    /etc/sysconfig/network-scripts/ifcfg-bond1:TYPE=Bond
    /etc/sysconfig/network-scripts/ifcfg-bond1:BONDING_MASTER=yes
    /etc/sysconfig/network-scripts/ifcfg-bond1:#UUID=8014dde4-4ea9-4b4c-be61-845d47 3c41d
    /etc/sysconfig/network-scripts/ifcfg-bond1:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-bond1:BRIDGE="bridged"
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:DEVICE=bond0
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:BONDING_OPTS="miimon=100 updelay=0 downdelay=0 mode=active-backup"
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:TYPE=Bond
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:BONDING_MASTER=yes
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:UUID=8014dde4-4ea9-4b4c- e61-845d47a3c41d
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-Bond_connection_1:BRIDGE="br0"
    /etc/sysconfig/network-scripts/ifcfg-br0:DEVICE="br0"
    /etc/sysconfig/network-scripts/ifcfg-br0:BOOTPROTO=none
    /etc/sysconfig/network-scripts/ifcfg-br0:IPADDR=111.222.333.444
    /etc/sysconfig/network-scripts/ifcfg-br0:pREFIX=24
    /etc/sysconfig/network-scripts/ifcfg-br0:GATEWAY=111.222.333.1
    /etc/sysconfig/network-scripts/ifcfg-br0:DNS1=8.8.8.8
    /etc/sysconfig/network-scripts/ifcfg-br0:DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV4_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6INIT=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_AUTOCONF=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_PEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_PEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-br0:IPV6_PRIVACY=no
    /etc/sysconfig/network-scripts/ifcfg-br0:NAME="Bond connection 1"
    /etc/sysconfig/network-scripts/ifcfg-br0:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-br0:TYPE="Bridge"
    /etc/sysconfig/network-scripts/ifcfg-br0:DELAY="2"
    /etc/sysconfig/network-scripts/ifcfg-br0:STP="off"
    /etc/sysconfig/network-scripts/ifcfg-br0:UUID="83a4802e-3668-4190-8003-0896823d 12b"
    /etc/sysconfig/network-scripts/ifcfg-bridged:DEVICE="bridged"
    /etc/sysconfig/network-scripts/ifcfg-bridged:BOOTPROTO=none
    /etc/sysconfig/network-scripts/ifcfg-bridged:#IPADDR=111.222.333.444
    /etc/sysconfig/network-scripts/ifcfg-bridged:#PREFIX=24
    /etc/sysconfig/network-scripts/ifcfg-bridged:#GATEWAY=111.222.333.1
    /etc/sysconfig/network-scripts/ifcfg-bridged:#DNS1=8.8.8.8
    /etc/sysconfig/network-scripts/ifcfg-bridged:#DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV4_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6INIT=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_AUTOCONF=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_PEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_PEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-bridged:IPV6_PRIVACY=no
    /etc/sysconfig/network-scripts/ifcfg-bridged:NAME="Bond connection bridged"
    /etc/sysconfig/network-scripts/ifcfg-bridged:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-bridged:TYPE="Bridge"
    /etc/sysconfig/network-scripts/ifcfg-bridged:DELAY="2"
    /etc/sysconfig/network-scripts/ifcfg-bridged:STP="off"
    /etc/sysconfig/network-scripts/ifcfg-bridged:#UUID="83a4802e-3668-4190-8003-089 823d412b"
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:TYPE=Ethernet
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:BOOTPROTO=dhcp
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:pEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:pEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV4_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6INIT=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6_AUTOCONF=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6_DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6_PEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6_PEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:IPV6_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:NAME=eno16777728
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:UUID=6d5df17f-f781-4b45-998f-7 31811041ba
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:DEVICE=eno16777728
    /etc/sysconfig/network-scripts/ifcfg-eno16777728:ONBOOT=no
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:TYPE=Ethernet
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:BOOTPROTO=dhcp
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:pEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:pEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV4_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6INIT=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6_AUTOCONF=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6_DEFROUTE=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6_PEERDNS=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6_PEERROUTES=yes
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:IPV6_FAILURE_FATAL=no
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:NAME=eno33554952
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:UUID=3b39bdc4-6e76-4585-b158-f 37b206ee3b
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:DEVICE=eno33554952
    /etc/sysconfig/network-scripts/ifcfg-eno33554952:ONBOOT=no
    /etc/sysconfig/network-scripts/ifcfg-lo:DEVICE=lo
    /etc/sysconfig/network-scripts/ifcfg-lo:IPADDR=127.0.0.1
    /etc/sysconfig/network-scripts/ifcfg-lo:NETMASK=255.0.0.0
    /etc/sysconfig/network-scripts/ifcfg-lo:NETWORK=127.0.0.0
    /etc/sysconfig/network-scripts/ifcfg-lo:# If you're having problems with gated aking 127.0.0.0/8 a martian,
    /etc/sysconfig/network-scripts/ifcfg-lo:# you can change this to something else (255.255.255.255, for example)
    /etc/sysconfig/network-scripts/ifcfg-lo:BROADCAST=127.255.255.255
    /etc/sysconfig/network-scripts/ifcfg-lo:ONBOOT=yes
    /etc/sysconfig/network-scripts/ifcfg-lo:NAME=loopback

    ========

    Thx!
     
  8. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    I'm afraid your configuration doesn't seem to be performed according to the documentation.
    Why was there a necessity to rename adapters?
    Why is there "bond1" which is not attached to anything?
    Why "Name" directive for bridges does not match slave adapter name?

    Please reconfigure everything from scratch, and do only the necessary, leave behind adapter renaming.
     
  9. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Finally I have rebuild all interfaces config. May be the auto-gen config during OS installation make me confuse.
     
  10. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Glad to hear! Does it work now?
     
  11. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Yes.. finally is work now. Thanks for your take care before
     
  12. Aleksey Zhadan

    Aleksey Zhadan Bit Poster

    Messages:
    1
    Dear Machiasiaweb
    Could you please provide you configs of a bond and br?
    I have the same issue(
     
  13. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    Sorry make you miss understanding. It work with single interface and binding to bridge interface.

    However, bonding interface still fail binding with bridge interface.
     
  14. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    I haven't further test but some idea is after you initial install which you may using single interface first.

    Initially there are default bridge called 'Bridged' there

    > prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    Bridged bridged eth0 br0
    Host-Only host-only virbr0

    which bind to single interface eth0

    Then you remove the default Bridged

    > prlsrvctl del Bridged

    Then, config your bonding interface e.g. bond0 and blinding to br0

    After that create new bridge interface

    > prlsrvctl net add bridgednew

    and binding to bond0

    > prlsrvctl set bridged -t bridgednew --ifname bond0

    Done

    Check again the creation is success or not.

    > prlsrvctl net list
    Network ID Type Bound To Bridge Slave interfaces
    bridged bridgednew bond0 br0
    Host-Only host-only virbr0

    Hope you successful

    Thx!
     
  15. Machiasiaweb

    Machiasiaweb Mega Poster

    Messages:
    178
    Hello,

    It have problem when binding with VLAN sub-interface with following message

    > prlsrvctl set bridge20 -t bridge --ifname bond0.20

    ---
    Failed to update Virtual Network bridge20: Could not find the network adapter. The MAC address and VLAN tag you specified do not match any of the host computer's network adapters.
    ---

    My interface config is

    ----- ifcfg-bond0.20 ------
    DEVICE=bond0.20
    TYPE=VLAN
    BONDING_MASTER=yes
    UUID=7b035f2a-c885-4d71-9651-232a1fe69bb1
    ONBOOT=yes
    BRIDGE="br20"
    BOOTPROTO=none
    VLAN=yes
    BONDING_OPTS="miimon=100 updelay=0 downdelay=0 mode=active-backup"
    ----------------------------

    ------ ifcfg-br20 ------
    DEVICE="br20"
    BOOTPROTO=none
    IPV4_FAILURE_FATAL=no
    NAME="Bond connection vlan20"
    ONBOOT=yes
    TYPE="Bridge"
    STP=off
    IPADDR=192.168.20.88
    PREFIX=24
    --------------------------------


    Any idea?

    It is different compare with PCS 6

    Thanks!
     
  16. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475
    Aleksey, this thread will be difficult to read if you mix several issues in one place, so can you submit a separate thread for your question? Please include error output and your adapters' configuration files.
     
  17. Pavel

    Pavel A.I. Auto-Responder Staff Member

    Messages:
    475

    It might be because your vlan config is wrong. It still has some "bonding" options it shouldn't be having, like BONDING_MASTER and BONDING_OPTS - vlan should not have these. Remove them and try again.
     

Share This Page