# Rancher OS IP Bonding

**URL:** <https://forums.suse.com/t/rancher-os-ip-bonding/18788>\
**Category:** Rancher 1.x\
**Created:** [November 11, 2020, 12:09pm UTC](https://forums.suse.com/t/rancher-os-ip-bonding/18788 "2020-11-11T12:09:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tauhid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/tauhid/32/6820_2.png) [@tauhid](https://forums.suse.com/u/tauhid)\
**Post date:** [November 11, 2020, 12:09pm UTC](https://forums.suse.com/t/rancher-os-ip-bonding/18788/1 "2020-11-11T12:09:46Z")

</div>

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  
 ![Ping_172.16.219.84_AfterDisconnectingCable](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/0/049937f4711b493b20cb11f5d93f8c2be4044ab5.png)  
 ![Ping_172.16.219.88_AfterDisconnectingETH0](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/b/b958a87189ffa8bb67aa89ae95b442839d4d98a1.png)

And after connecting cable to eth0 port and disconnecting cables from eth1 and eth5 this happens:  
 ![Ping_172.16.219.84_AfterConnectingCableToETH0_DisconnectingTableFromETH1andETH5](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/4/4956be48f2e0774e76ab5d74d7a1454440c5130c.png)  
 ![Ping_172.16.219.88_AfterConnectingTo_ETH0_andDisconnectingFrom_ETH1andETH5](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/f/f4f902dab6d93aa16805306e42af6a909bc60082.png)  
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.
