Linux – bridge IPv4 while routing IPv6 on the same two interfaces

bridgeipipv6linuxnetworking

Is it possible to bridge aliased interfaces? And use their standard "parent" interfaces independently with full functionality?

Here's the scenario: I have a Linux based firewall and router with two interfaces (eth0, eth1). I would like to bridge for IPv4 traffic and route for IPv6 traffic using just these interfaces.

Would it be possible to setup eth0 and eth1 for IPv6 routing and forwarding, while at the same time bridging eth0:1 and eth1:1 as a "passthrough" IPv4 bridge (all of the IPv4 routing is done on other side of this machine) so I can setup packet filtering rules both on the bridge and on the standard eth0, and eth1 interfaces?

Best Answer

Bridging is a layer-2 thing. Aliasses on interfaces are for assigning multiple IP addresses: that is layer-3...

What you want is a brouter. See http://ebtables.sourceforge.net/examples/basic.html#ex_brouter