[ASK] - How to add IP Route using Channel Bonding in RHEL6
Hi All,
I have question about IP Route using Channel Bonding in RHEL6. For example I have 1 machine with 4 Ethernet and I will create 2 channel bonding that connect to 2 different switches in different VLAN with following details:
Current Config: Code:
cat etc/modprobe.d/bonding.conf
Many thanks for help |
Well, generally this how its done.
1. Bond interfaces 2. create virtual interfaces which corresponds to your network vlan setup ( you will need to configure bridging). I can guide you how to get it done, but first, lets get bonding out of the way! Your config seems okay, have you tried applying it? if so, have you rebooted your system? Quote:
|
Hi amlife,
Yes the configuration for channel bonding works in my server, but I didn't test if primary Ethernet down. For example for Bond0 if eth0, I'm not sure eth1 will take over due the physical to different switch with different gateway with eth0 Please also help me to answer my 2nd question Quote:
|
there are number of ways to get it done, I would prefere to use iptables to control the traffic
iptables -A INPUT -s 10.2.0.17 -j DROP iptables -A OUTPUT -d 10.2.0.17 -j DROP iptables -A INPUT -s 10.2.2.10 -j DROP iptables -A OUTPUT -d 10.2.2.10 -j DROP |
Hi alife,
How do I put the iptables config that you describe below? this should be done on router/switch or I should create config on the server? Quote:
|
ptables -A INPUT -s 10.2.0.17 -j DROP
iptables -A OUTPUT -d 10.2.0.17 -j DROP iptables -A INPUT -s 10.2.2.10 -j DROP iptables -A OUTPUT -d 10.2.2.10 -j DROP You just need to run the commands one by one at the shell, then run iptables -L to verify |
All times are GMT -5. The time now is 11:41 AM. |