VirtualIP on bond interface comes up at boot unwanted

Issues related to configuring your network
Post Reply
Danilo7
Posts: 5
Joined: 2017/10/31 12:25:00

VirtualIP on bond interface comes up at boot unwanted

Post by Danilo7 » 2017/11/06 17:36:58

Hi everyone,
I have a problem with a virtual IP (bond0:1) assigned to the bond interface (bond0) that has two slaves (em1 and em2)
If I boot the system both bond0 (192.168.13.6) and bond0:1 (10.138.32.153) come up, but I'd like only bond0 to come up.
I've tried to look up on the Internet and I found I needed the ONPARENT=no, but I got no results
What is wrong in the configuration I am attaching? :?:


ifcfg-bond0

Code: Select all

DEVICE=bond0
NAME=bond0
TYPE=Bond
BONDING_MASTER=yes
IPADDR="192.168.13.6"
PREFIX=24
ONBOOT=yes
#GATEWAY="192.168.13.3"
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"

ifcfg-bond0:1

Code: Select all

DEVICE="bond0:1"
NAME="bond0:1"
TYPE="Bond"
BONDING_MASTER="yes"
IPADDR="10.138.32.153"
PREFIX="24"
ONBOOT="no"
ONPARENT="no"
GATEWAY="10.138.32.254"
DNS1="8.8.8.8"
BOOTPROTO="none"
BONDING_OPTS="mode=1 miimon=100"

ifcfg-em1

Code: Select all

TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="em1"
UUID="bfabb970-48fc-4553-9e9d-91c19e613cf3"
DEVICE="em1"
ONBOOT="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
MASTER="bond0"
SLAVE="yes"

ifcfg-em2

Code: Select all

TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="em2"
UUID="0f2b269e-1ede-4cbf-913a-793515110201"
DEVICE="em2"
ONBOOT="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"
MASTER="bond0"
SLAVE="yes"


User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualIP on bond interface comes up at boot unwanted

Post by TrevorH » 2017/11/06 17:53:25

You shouldn't have any of: BONDING_OPTS DNS1 GATEWAY ONBOOT or BONDING_MASTER in your bond0:0 file. Remove all of those and see if that helps.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Danilo7
Posts: 5
Joined: 2017/10/31 12:25:00

Re: VirtualIP on bond interface comes up at boot unwanted

Post by Danilo7 » 2017/11/07 08:49:50

TrevorH wrote:You shouldn't have any of: BONDING_OPTS DNS1 GATEWAY ONBOOT or BONDING_MASTER in your bond0:0 file. Remove all of those and see if that helps.
Hi TrevorH, thanks for the reply
I've tried to comment those settings, but the virtualIP still comes up at boot
I need the VirtualIP because witht he bonding interface I can't go on the internet. I bring up the alias only to make updates.
Any other ideas, please? :(

ifcfg-bond0:1

Code: Select all

DEVICE="bond0:1"
NAME="bond0:1"
TYPE="Bond"
#BONDING_MASTER="yes"
IPADDR="10.138.32.153"
PREFIX="24"
ONBOOT="no"
ONPARENT="no"
#GATEWAY="10.138.32.254"
#DNS1="8.8.8.8"
BOOTPROTO="none"
#BONDING_OPTS="mode=1 miimon=100"

Post Reply