Bug 194749
Summary: | kernel bonding does not work in a network nameservice in versions above 3.10.0-229.20.1 | ||
---|---|---|---|
Product: | Networking | Reporter: | Dan Geist (dan) |
Component: | Other | Assignee: | Stephen Hemminger (stephen) |
Status: | NEW --- | ||
Severity: | blocking | ||
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | > 3.10.0-229.20.1 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Dan Geist
2017-03-01 21:08:01 UTC
After advisement from the kernel network developer team, I discovered that this behavior is intentional and prevents non-hardware interface types (bond, bridge, etc.) from being moved between netns's. After disabling the default bond0 init configuration from the CentOS startup framework and implementing the following, the setup is now working with the newest kernel in the RHEL7/CentOS7 releases: $ cat /etc/rc.local #!/bin/bash modprobe bonding modprobe bonding mode=1 resend_igmp=1 updelay=0 use_carrier=1 miimon=100 downdelay=0 xmit_hash_policy=0 primary_reselect=0 fail_over_mac=0 arp_validate=0 lacp_rate=0 arp_interval=0 ad_select=0 ip netns add vntp ip link set p4p1 netns vntp ip link set p4p2 netns vntp ip netns exec vntp ip link add dev bond0 type bond mode active-backup ip netns exec vntp ip link set lo up ip netns exec vntp ip link set p4p1 up ip netns exec vntp ip link set p4p2 up ip netns exec vntp ip link set bond0 up ip netns exec vntp ifenslave bond0 p4p1 p4p2 I believe this bug report can be closed and marked as "user misunderstood feature". |