View Full Version : network bond
johnbrand
03-17-2008, 05:16 PM
Guys,
Has anybody tried using bond as the main ethernet connection. I have it setup, but I'm getting problems when I activate the firewall.
Please help.
-John Brand
netipro
03-18-2008, 07:51 AM
Hi
Did you see this ?
http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html
It mights help you
Paul
netipro
03-18-2008, 07:53 AM
Guys,
Has anybody tried using bond as the main ethernet connection. I have it setup, but I'm getting problems when I activate the firewall.
Please help.
-John Brand
Could you please tell us what kind of problems you get, any errors messages ?
Paul
johnbrand
03-19-2008, 03:40 AM
I am testing it for a couple of days now and the main problem is that the ip aliasses get lost. Then I need to restart iworx and they are back.
Where can I find some log files from the firewall, because I cant find any info why it is blocking. But when I start APF the server stops responding.
-John
netipro
03-19-2008, 10:07 AM
What you can do is to set the APF on the debug mode, start it, then take a look at the logs
Don't forget to set off back the debug option
vi /etc/apf/conf.apf
and set DEVM="1" rather than 0
# Set firewall dev cronjob
# 1 = enabled / 0 = disabled
DEVM="0"
Be sure the APF firewall is started
apf -s
you can check the logs here
/var/logs/apf_log
ps: le debug mode is just a rule that flush all firewall rules every 5mn
ps2: your problem is surely a link one. Look at the /etc/apf/conf.apf file and maybe set your ETH name to bond0 or something like this (as you did set it in /etc/sysconfig/netw..script/...)
Paul
johnbrand
03-20-2008, 03:39 AM
Thanx Netipro,
Your fix with apf worked. There is a line saying IF="eth0" and needs to be changed to IF="bond0".
Then it works.
Also I needed to fix the problem about losing the alias over night. I now added the alias in a "ifcfg-bond0:0" file, maybe now it keeps working.
"ifcfg-bond0" looks like this.
DEVICE=bond0
IPADDR=84.244.000.000
NETMASK=255.255.255.224
GATEWAY=84.244.000.000
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
TYPE=Ethernet
"ifcfg-bond0:0"
DEVICE=bond0:0
IPADDR=84.244.000.000
NETMASK=255.255.255.224
ONBOOT=yes
Did I make some mistakes or would this probably work.
-John
netipro
03-20-2008, 07:13 AM
Thanx Netipro,
Your fix with apf worked. There is a line saying IF="eth0" and needs to be changed to IF="bond0".
Then it works.
Happy to know we did help you
Also I needed to fix the problem about losing the alias over night. I now added the alias in a "ifcfg-bond0:0" file, maybe now it keeps working.
"ifcfg-bond0" looks like this.
"ifcfg-bond0:0"
Did I make some mistakes or would this probably work.
-John
It should indeed solve your pbm
Let us know ;)
Just for our information, about network Bond, why do you use it (load balancing, ...) ?
Paul
johnbrand
03-20-2008, 07:50 AM
We made our network redundant. And well, you know. There are 3 network outlets in the iworx servers, so why not use 2 network connections and create a redundant network system. So we just use it for backup to a different part of our network.
And I really hope the problem with the disapearing network alias overnight is solved.
-John
netipro
03-23-2008, 05:49 AM
And I really hope the problem with the disapearing network alias overnight is solved.
-John
Hi John
Just for my personal information, is it solved ?
Paul
johnbrand
03-31-2008, 02:15 PM
Sorry for my late reply.
Yes it is solved. It works like a charm.
-John
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.