# virtual interface on bond0

**URL:** https://forums.suse.com/t/virtual-interface-on-bond0/27863
**Category:** SLES Networking
**Created:** [February 2, 2016, 6:24pm UTC](https://forums.suse.com/t/virtual-interface-on-bond0/27863 "2016-02-02T18:24:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lbemont](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lbemont](https://forums.suse.com/u/lbemont)
#### Post date: [February 2, 2016, 6:24pm UTC](https://forums.suse.com/t/virtual-interface-on-bond0/27863/1 "2016-02-02T18:24:50Z")

</div>

I would like to add a virtual interface to an existing bonded interface. Can I accomplish by modifying the configuration file as shown below? If not, how do I do it? Also, is there a way to ifup this virtual interface independent of bond0 itself?

Thanks.

# more /etc/sysconfig/network/ifcfg-bond0

BONDING\_MASTER=‘yes’  
BONDING\_MODULE\_OPTS=‘mode=active-backup miimon=100’  
BONDING\_SLAVE0=‘eth0’  
BONDING\_SLAVE1=‘eth2’  
BOOTPROTO=‘static’  
BROADCAST=‘’  
ETHTOOL\_OPTIONS=‘’  
IPADDR=‘192.168.1.7/24’  
MTU=‘’  
NAME=‘’  
NETWORK=‘’  
REMOTE\_IPADDR=‘’  
STARTMODE=‘auto’  
USERCONTROL=‘no’  
# new virtual interface  
IPADDR\_V1=Â192.168.1.8′  
NETMASK\_V1=Â255.255.255.0′  
BROADCAST\_V1=Â192.168.1.255′

---

<div class="post-metadata">

### Author: ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)
#### Post date: [February 4, 2016, 1:47pm UTC](https://forums.suse.com/t/virtual-interface-on-bond0/27863/2 "2016-02-04T13:47:59Z")

</div>

Hi lbemont,

by adding another address to the ifcfg file you’re not adding a virtual interface, but a secondary IP address to the interface.

From /etc/sysconfig/network/ifcfg.template:

[QUOTE] # For multiple addresses use this variable multiple times and extend them with

# different suffixes. For example IPADDR\_1=, IPADDR\_2=. See section 'Multiple

# addresses’ in manpage ifcfg).[/QUOTE]

So your syntax of using the suffix “\_V1” should work. On the other hand, individual “up/down” of that IP address will not work.

To see the configure secondary IP address, use “ip addr list bond0”.

Regards,  
Jens
