I am installing rancher os bare metal and i use cloud-config.yml to set up ip bonding among NIC ports. My cloud-config.yml file looks like this:
ssh_authorized_keys:
- ssh-rsa mySSHKeyGoesHere
hostname: MyTestRancherOSServer
rancher:
network:
interfaces:
eth*:
dhcp: false
eth0:
address: 172.16.219.84/16
gateway: 172.16.0.1
“mac=b8:ca:3a:5c:da:bd”:
bond: bond0
“mac=00:1b:21:37:a8:65”:
bond: bond0
bond0:
address: 172.16.219.88/16
gateway: 172.16.0.1
bond_opts:
downdelay: 200
lacp_rate: 1
miimon: 100
mode: 0
use_carrier: 0
updelay: 200
dns:
nameservers:- 1.1.1.1
- 8.8.8.8
After installing rancher os with this configuration i can login normally from putting using the SSH Key.
As you can see from the config file i have 3 cables connected to eth0, eth1, eth5 from my switch. I have set a specific ip for eth0 where eth1 and eth5 are using bond0.
Now the problem is if I disconnect the cable from eth0 port while eth1 and eth5 is still connected with cables and if I ping 172.16.219.88 it says
And after connecting cable to eth0 port and disconnecting cables from eth1 and eth5 this happens:
Can anyone explain what is the problem? Anything wrong with the configuration?
I just want that if my eth0 goes down i will be able to connect through bond0 and if any port from bond0 is disabled i will be able to connect with another port which is using bond0. Any help would be appreciated.