On 08/01/2016 02:54 AM, v024302 wrote:[color=blue]
i have a System on SLES 11 SP1 with 4 Network-Adapters.
I renamed them to eth2 (unchanged), eth3 (unchanged), ten1 (changed from
eth0) and ten2 (changed from eth1).[/color]
That’s all fine; the names do not really matter to the OS, so if you want
to share why the exciting rename, feel free to do so, particularly if it
helps better-understand what is going on down below.
[color=blue]
eth2 and eth3 are used for the Internet-Connection.
The two ports ten1 and ten2 are connected to the Interface bond0 for
Link-Aggreagrion.[/color]
The names matter even less when used as slaves in a bond, so I do not
understand the rename still, but oh well.
[color=blue]
If i assign the IP-Address 10.90.0.16/24 to bond0 and add the Alias 1
with 10.91.0.16/16 i can ping to both Subnetworks.[/color]
That sounds like my experience too; the bond has the IP addresses and
exposes them to the outside world, so everything should work assuming
other protocols (ARP) and devices (switches) do their jobs properly.
[color=blue]
Now i want to create two Interfacese named eth0 and eth1.[/color]
Just to be clear, are you creating two new devices, or renaming the old
ones back?
[color=blue]
This names are not optional![/color]
This is an interesting detail which I think should be explained. What you
name your slaves is irrelevant, so arbitrarily specifying certain names as
“not optional” raises questions such as “Why not?” which need to be
answered. There could be a valid reason, but it is much more-likely that
something is misunderstood, or other software is broken.
[color=blue]
eth0 should get the IP Address: 10.90.0.16/24.
eth1 should get the IP Address: 10.91.0.16/16.[/color]
Based on these IP addresses, I presume that the ten1 and ten2 devices from
above are now gone, and these are those devices (since your machine has
four (4) total devices as you stated). If these are meant to be separate
devices (fifth and sixth for the system) then please clarify, particularly
explaining why you have the same IPs assigned to bond0 (with its slaves
ten1 and ten2) as well as to eth0 and eth1.
[color=blue]
bond0 doesn’t need an IP-Address anymore. It should just forard the
Traffic from eth0 and eth1 to the real LAN.[/color]
This is not, at least in my experience, how bonding works.
[color=blue]
Now i want to create an internal switching between eth0, eth1 and bond0.[/color]
The clarification above regarding whether or not these are new devices
(fifth and sixth) or the old ones renamed back will be relevant at this point.
[color=blue]
My first idea was to create two dummy Intefaces and connect them to a
transparent bridge.
But the Interfaces just can ping their own IP.
Does anyone know how i can handle this?
If possible, i want to configure everything over Yast. But if this won’t
work any other solution is also fine.[/color]
Bonding can be configured via Yast if you use Yast to put the slave noes
into ready-for-bonding mode (one of the IP address “setups” is “None
(ready for bonding)” (paraphrased heavily). Using this you can then,
appropriately, configure IPs for he bond device itself as you should,
including alias addresses. I presume this is what you did originally,
though confirmation would be appreciate.
I think it is worthwhile to step back and look at the business case for
all of this. Trying to setup as you are is, I believe, invalid, so what
business case has you trying to use specific names for devices (eth0 and
eth1), and then trying to do some internal switching among those various
devices? Switching is a network layer thing, so trying to do so with a
bond device (that has no IP address in your second scenario) does not make
much sense either. Again, knowing why you are trying this may help us
find a way to help you. My best guess is to bridge internal and external
networks, and that should be fine assuming it is done properly, but your
current requirements do not look correct (to me).
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…