EoGRE Layer 2 Tunnel
This example configures a Ethernet-over-GRE layer 2 tunnel and a bridge:
- create a bridge interface
br0 - create a EoGRE tunnel
eogreto192.0.2.2using VNI42 - add
eogreand the interfaceeth0to the bridgebr0 - disable STP on the bridge
br0 - set all interface link states to
up
{
networking.ifstate = {
enable = true;
settings = {
interfaces = {
br0 = {
link = {
kind = "bridge";
br_stp_state = 0;
state = "up";
};
};
eth0 = {
link = {
kind = "physical";
master = "br0";
state = "up";
};
};
eogre = {
link = {
kind = "gretap";
gre_local = "192.0.2.1";
gre_remote = "192.0.2.2";
master = "br0";
state = "up";
};
};
};
};
};
}