VMware Cloud Community
aloksinghericss
Contributor
Contributor
Jump to solution

How to Configure bonding mode to active-backup for management network in vCenter Appliance 6.5

Hi,

my current network configuration in vCenter 6.5 as below

[ /etc/systemd/network ]# cat 10-eth.network

[Match]

Name=eth*

[Network]

Bond=bond0  

ActiveSlave=false

PrimarySlave=true

[DHCP]

UseDNS=false

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

[ /etc/systemd/network ]# cat 20-bond.netdev

[NetDev]

Name=bond0

Kind=bond

[Bond]

Mode=balance-rr

MIIMonitorSec=10s

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

[ /etc/systemd/network ]# cat 30-bond-static.network

[Match]

Name=bond0

[Network]

Address=192.168.XX.XXX/24

Gateway=192.168.XX.X

DNS=192.168.XX.XXX

DHCP=no

[Route]

Gateway=192.168.XX.X

Destination=192.168.XX.X/24

[DHCP]

UseDNS=false

In file 20-bond.netdev, You can see Mode=balance-rr So, currently bond interface is in Load Balancing with round-robin

[ /etc/systemd/network ]# cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)

MII Status: up

MII Polling Interval (ms): 0

Up Delay (ms): 0

Down Delay (ms): 0

I want to make it something like below ,  I changed Mode=active-backup in 20-bond.netdev  but it seems not taking affect.

Bonding Mode: fault-tolerance (active-backup)

Primary Slave: eth0 (primary_reselect always)

Currently Active Slave: eth0

MII Status: up

MII Polling Interval (ms): 0

Up Delay (ms): 0

Down Delay (ms): 0

0 Kudos
1 Solution

Accepted Solutions
aloksinghericss
Contributor
Contributor
Jump to solution

Hi,

We can use bonding here as VCenter 6.5 uses Photon OS platform.  So if we want to create bonding in vCenter we can use below link

https://blog.jreypo.io/cloud-native/devops/vmware/sysadmin/linux/network-configuration-in-photon-os/

for my problem I just modified 20-bond.netdev as below and rebooted VM after change. it worked for me.

[NetDev]

Name=bond0

Kind=bond

[Bond]

Mode=active-backup

PrimaryReselectPolicy=always

MIIMonitorSec=10s

View solution in original post

0 Kudos
3 Replies
daphnissov
Immortal
Immortal
Jump to solution

What is it you're trying to achieve here, exactly? This is a virtual appliance. Why do you need to bond any interfaces? I'm not even sure that's supported to begin with.

0 Kudos
aloksinghericss
Contributor
Contributor
Jump to solution

Hi,

We can use bonding here as VCenter 6.5 uses Photon OS platform.  So if we want to create bonding in vCenter we can use below link

https://blog.jreypo.io/cloud-native/devops/vmware/sysadmin/linux/network-configuration-in-photon-os/

for my problem I just modified 20-bond.netdev as below and rebooted VM after change. it worked for me.

[NetDev]

Name=bond0

Kind=bond

[Bond]

Mode=active-backup

PrimaryReselectPolicy=always

MIIMonitorSec=10s

0 Kudos
daphnissov
Immortal
Immortal
Jump to solution

Do you know what you're doing is very likely totally unsupported? Still trying to understand why you're trying to configure bonding on a VM which performs a management function.

0 Kudos