# Advanced networking configuration

**URL:** <https://forums.suse.com/t/advanced-networking-configuration/1052>\
**Category:** RancherOS\
**Created:** [November 23, 2015, 6:15pm UTC](https://forums.suse.com/t/advanced-networking-configuration/1052 "2015-11-23T18:15:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tts\_jmardis](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@tts\_jmardis](https://forums.suse.com/u/tts_jmardis)\
**Post date:** [November 23, 2015, 6:15pm UTC](https://forums.suse.com/t/advanced-networking-configuration/1052/1 "2015-11-23T18:15:09Z")

</div>

Hello Everyone,

I need to customize the host network container with two advanced network options:

- First, use a modprobe configuration option before network is initialized
- Second, bond the network interfaces and run in LACP mode.

Seems pretty straight forward, but still trying to understand the system and how to customize. Any assistance is appreciated.

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![sjiveson](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sjiveson/32/966_2.png) [@sjiveson](https://forums.suse.com/u/sjiveson)\
**Post date:** [December 30, 2016, 2:52pm UTC](https://forums.suse.com/t/advanced-networking-configuration/1052/2 "2016-12-30T14:52:40Z")

</div>

For the benefit of others, regarding the bonding in LCAP mode, from v0.4.3, in the appropriate place in cloud-config;

```auto
          eth1:
            bond: bond0
          eth2:
            bond: bond0
          bond0:
            bond_opts:
              mode: 4
              miimon: 100
              lacp_rate: 1
              xmit_hash_policy: 1
            dhcp: true

```

---

<div class="post-metadata">

**Author:** ![bryman55](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@bryman55](https://forums.suse.com/u/bryman55)\
**Post date:** [June 7, 2017, 9:57pm UTC](https://forums.suse.com/t/advanced-networking-configuration/1052/3 "2017-06-07T21:57:44Z")

</div>

I have an interesting problem, I can create a bond just fine. However if I just configure a bond0 and no other interface, the system tries to configure one of my bonding interfaces as a primary interface. I would like bond0 to be the primary interface. So in my example below eth3 is reconfigured as a regular interface. If I plug an additional network port at eth0 my bond0 works fine. Again if I only want bond0, eth3 gets reconfigure from bond slave to eth3 dhcp. Any thoughts?

```
rancher:
  network:
    interfaces:
      eth*:
        dhcp: false
      eth2:
        bond: bond0
      eth3:
        bond: bond0
      bond0:
        dhcp: true
        bond_opts:
          mode: 6
          miimon: 100
          lacp_rate: 1
          xmit_hash_policy: 1
        mtu: 9000
```
