Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FYI - Hardware details - This is a Dell R610
- (4) ethernet ports
(2) - ports for cross over cables beween units - for 2gb transfer
(10 - DRAC port for remote management
NO ports are cabled except the (4) GB ethernet ports.
eth0 and eth1 have the same hardware address
eth2 and eth3 have the same hardware address
eth4 and eth5 have different hardware addresses
in the cat output
ifcfg-eth0 hw address matches the ifconfig -a output
ifcfg-eth1 hw address does not match the ifconfig -a output
eth2 hw matches
eth3 hw does not match
eth4 hw matches
eth5 hw matches
so ifcfg-eth0, ifcfg-eth2, ifcfg-eth4 and ifcfg-eth5 all match up with the output of ifconfig -a
ifcfg-eth1 and ifcfg-eth3 are bogus entries.
#########################
IMPORTANT I did not know about the other interfaces when I wrote the stuff below.
You may just need to make sure the contents of the ifcfg-ethx files match the correct addresses.
#########################
#Delete those 2 files. (or rename them preferably)
#Delete all the backup files (ifcfg-ethX~)
#rename the others according to which real address they have according to #ifconfig and make sure that you have two slaving to bond0 and two slaving to #bond1 (check the MASTER lines)
#then restart the network.
############################
Our posts crossed over, I didn't know about the other two ports and the DRAC port. Do you know what their hardware addresses are ?
Sorry now I'm concerned.
- Before I delete any files, (which I'm not sure is right) since if the machine has (4) ethernet ports, (2) 2gb crossover machine data ports and (1) DRAC
port. I believe the (4) ethernet ports are eth0, eth1, eth2, eth3 (I'm not sure what eth4 and eth5 are but they are not up)
- I'm not sure how the eth0, eth1, eth2, eth3 files were populated with the HW addresses - I suspect he retreived them from the GNOME network utility,
not sure
- What command or where CAN you get the real MAC addresses of eth0, eth1, eth2, eth3 ?
- I agree with what you stated matches ifconfig and the cat of the ifcfg-ethx files.
- Actually I'm ready to bond all (4) interfaces to bond0 tomorrow since I spent the entire day trying to figure this mess out.
- so if I move to bond0 only, I just need the specific mac addresses of eht0, eth1, eth2, eth3 so I can make sure their right in the ifcfg-ethx files.
How can I make sure I have the right MAC addresses to populate the files since I think it's best given the architecture and project to move to
(4) port bond0 instead of (2)x(2) bonding failover...which is a mess.
Command to see the real ethernet configuration is: "ifconfig ethN" without "HWADDR=" in ifcfg-eth. I do not know why you changed them, because looks like they become equal to their bond MAC address.
Also please remember, that "ifconfig" without any additional arguments, shows ACTIVE interfaces.
With "-a" all of them.
And one MAC + one IP for one interface bonding sounds very reasonably, because if one on other side decide to implement mac filtering all your connection from all interfaces in one bonding will be with one IP and MAC.
I would copy this format (notice no mention of hardware addresses) using the correct details for bonding mode, ip address and network into the relevant files.
Your ifcg-bond0.conf and ifcfg-bond1.conf files are mostly right already, just uncomment the options line in each.
Then comment out the options line in your bond0.conf and bond1.conf files found in modprobe.d
so that they just read
alias bond0 bonding
and
alias bond1 bonding
At least then you will be following the documented approach.
I think the hardware addresses were confusing, especially when we learned of the other 3 interfaces.
All the ifcfg-ethX.conf files should have ONBOOT=YES
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.