Additional addresses on bonded interface

Has anyone set up additional addresses on a bonded interface in SuSE 10.3 or 11? It looks like the functionality is there but the GUI interface under Yast doesnt support it, no add button.

I’m trying to upgrade an old firewall box I built under SuSE 10. We currently have 8 IPs from our ISP, and the incoming nic listens on all 8 of those then splits it out to the proper networks and DMZ. They’ve added another line for additional bandwidth and want to bond the incoming lines.

I’ve put SuSE 11 on an identical box that I’ll swap out and gotten channel bonding working under that but I cant seem to get virtual addresses/aliases working on the bonded nic.

Any ideas? or has anyone tried setting up aliases manually on 11? I remember on older versions doing things that way was very fragile.

I did a quick Google and found (among others)
assigning alias ip address
http://www.faqs.org/docs/Linux-mini/IP-Alias.html
Quick HOWTO : Ch03 : Linux Networking - Linux Home Networking

use eth0:1 etc, but you may need a module.

Yes, but the problem with doing it with doing it from the command line like that is nothings permanent. If you reboot the machine everything disappears. The last time I tried doing it by hand was in 7 and 8 and even after putting in the proper files if anything touched yast it would blow away all the network settings, I had to make a script to redo everything. From the many threads I’m seeing on the subject it seems to continue to be a problem up through 10.3

EDIT: hmmm maybe this will work on bonded, I’ll try it:
The correct way to add IP aliases (multiple IPs) on one device in SuSe Linux 10 (and below) - Aaron Tiensivu’s Blog

Hm, that blog you found seems to be serious enough. I would liike to hear the reuslts of your test.

Goto YaST > Network Settings. Then edit the nic you want to add the extra address to. (In case of SLES/SLED you have to select ‘Advanced’ and then ‘additional addresses’).
It could be you need to use the traditional ifup method and not the Network Manager to get this option available.

This works for sure in openSUSE 11.0 and up. Don’t know about 10.3, but I would think so.

Cheers,
Wj

This the YaST window in 10.3: http://www.xs4all.nl/~hcvv/yast-network-routing1.jpg
It seems to be possible to add them here.

@hvcc:

Yes that blog post does work. It appears thats the only way to do it at this point, but its a little too hackish for my tastes. I’d like something a little easier to maintain.

I’ve been given the go ahead to get a new dell for this task so that solves all my issues, the only reason I was trying to do this in OpenSuse was the older spare machine with enough nics to handle it was 32 bit and could not run SLES 10. I know SLES has the capability to do this on a bonded interface through the advanced tab.

The screenshots you provided are for a standard interface, add a new one of bonded type then try to edit it and you’ll quickly see what I’m talking about, its the same in 10.3 and 11. The space where you used to be able to add addresses is now taken up by the section for slave devices.

Wouldnt let me edit the above post…

I think this is a bug in OpenSuSE 10.3 and 11. The text entry box to enter additional addresses is there on a bonded interface, but there is no button to actually add it after its been typed in, or to display the addresses. That whole section is taken up by the huge slave devices part. To me it appears that it was intended to be there but its not, why else have the text box and no controlls for it. A better Gui layout is needed or that functionality moved to another tab like it is in SLES.

I think you should not be to afraid from doing as the blog tells you. It does not seem to ‘hackish’ to me. It only puts the correct parameters in the file where they should be. YaST (when working correctly) does the same. Once this file contains the correct parameters it is used at every boot (or at /etc/init.d/network restart when you do not want to reboot).

Only keep a copy of the original config file and a copy of the new working one on another place (maybe even a floppy), so that you do not have to reinvent everything when you reinstall your system (either because you upgrade or because disaster struck you). Also keeping some short piece of documentation on what you did together with the backups might be usefull in the future.

I’m using OpenSuSE 11 and the “Additional Addresses” area is grayed-out. Does anyone know why this option is disabled or how to enable it? I’m moving from 10.3 to 11 and I need to setup an alias IP and hostname.

Thanks

Perhaps you are not using the ifup method of enabling the interface?

Thank you for the quick reply.

That is very possible. I inherited this project and know just enough about SuSE to break things, ifup is new to me. Does this have something to do with NetworkManager being enabled? Do I want to turn this off?

NetworkManager and ifup are mutually exclusive methods. So if you are running NetworkManager, you would not be using ifup.

Great information. NetworkManager came enabled by default. As soon as I disabled it, my additional address worked great.

Thank you!!