How to connect two network interfaces on the same subnet? - Red Hat Customer Portal (2024)

Environment

  • Red Hat Enterprise Linux 5, 6, 7, 8, 9
  • Multiple network interfaces, each with an IP address in the same subnet

Issue

  • How to connect two network interfaces on the same subnet?
  • In our environment, there are three bonding devices connected with the same segment.

    +---------------------+| Linux || .168 .169 | +-----+--------+------+ │ │+-----+--------+------+| Switch |+---------+-----------+ │+---------+-----------+| .1 || Gateway |+---------------------+
  • We have captured packet and found that packet should be transmitted from bond0 was actually transmitted from bond1

  • Also, it was confirmed that the transmit port staggered even if there was no bonding setting.

Resolution

It is usually not a good idea to connect two interfaces using the same subnet on the system, as you may run into the issues presented in the following two pages:

The recommended solution is to use a single interface or a single bond/team interface, then add the other IP addresses to that interface in the form of an alias IP address. If fault tolerance and/or load balancing is required at the network interface level, then an alias on a bond or team should be used. Please note that teaming is not supported in Red Hat Enterprise Linux 6 or earlier. If fault tolerance and/or load balancing is not needed at the interface level, then you can add the alias IP address to a single interface.

The following page provides steps on how to add an alias IP address: How to assign alias IP addresses to a network card (NIC)?.

The following page provides steps on how to set up a bond interface: How do I configure a bonding device on Red Hat Enterprise Linux (RHEL)?

The following pages provide documentation on teaming:

If your environment necessitates a multi-interface same-subnet solution and the above alias interface approach does not work for your environment, you may perform the steps in the Resolution section of the following two pages to avoid the most common issues when setting up multiple interfaces on the same subnet:

Root Cause

  • When there are 2 interfaces on the same subnet there is no assurance as to which interface will be used to transmit traffic and the machine will accept traffic for either IP on either interface.
  • This is because in Linux the IP address belongs to the host and is not associated with the interface.
  • If you ping with -I DEV, attempting to use a given interface, there is no guarantee the reply packet (if there even is one) will come back to the same interface, so pings done with -I DEV may not work.

Diagnostic Steps

  • Setup system with 2 interfaces on the same subnet.
  • Ping a target and capture packets with tcpdump.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

How to connect two network interfaces on the same subnet? - Red Hat Customer Portal (2024)
Top Articles
What do airport baggage scanners see?
How to Give Space to a Man So He Pursues You
Chris Provost Daughter Addie
America Cuevas Desnuda
10000 Divided By 5
J Prince Steps Over Takeoff
Prices Way Too High Crossword Clue
Tiraj Bòlèt Florida Soir
RBT Exam: What to Expect
Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
Kvta Ventura News
Best Nail Salon Rome Ga
Paradise leaked: An analysis of offshore data leaks
Aldi Süd Prospekt ᐅ Aktuelle Angebote online blättern
Jeff Now Phone Number
European Wax Center Toms River Reviews
Cb2 South Coast Plaza
Tokyo Spa Memphis Reviews
4Oxfun
Harbor Freight Tax Exempt Portal
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Tottenham Blog Aggregator
Tu Housing Portal
Tokioof
Perry Inhofe Mansion
Renfield Showtimes Near Marquee Cinemas - Wakefield 12
L'alternativa - co*cktail Bar On The Pier
Shiftwizard Login Johnston
All Things Algebra Unit 3 Homework 2 Answer Key
No Hard Feelings Showtimes Near Tilton Square Theatre
11 Pm Pst
What Time Is First Light Tomorrow Morning
Ket2 Schedule
Kelly Ripa Necklace 2022
Eastern New Mexico News Obituaries
3496 W Little League Dr San Bernardino Ca 92407
Craigslist Mexicali Cars And Trucks - By Owner
Rhode Island High School Sports News & Headlines| Providence Journal
If You're Getting Your Nails Done, You Absolutely Need to Tip—Here's How Much
2024-09-13 | Iveda Solutions, Inc. Announces Reverse Stock Split to be Effective September 17, 2024; Publicly Traded Warrant Adjustment | NDAQ:IVDA | Press Release
Tricare Dermatologists Near Me
Craigslist/Nashville
Craigslist Pets Charleston Wv
Freightliner Cascadia Clutch Replacement Cost
Rétrospective 2023 : une année culturelle de renaissances et de mutations
Craigslist Com Brooklyn
Verilife Williamsport Reviews
How Did Natalie Earnheart Lose Weight
Unbiased Thrive Cat Food Review In 2024 - Cats.com
Access One Ummc
Bloons Tower Defense 1 Unblocked
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5836

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.