Example: 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
eogre
to192.0.2.2
using VNI42
- add
eogre
and the interfaceeth0
to the bridgebr0
- disable STP on the bridge
br0
- set all interface link states to
up
ifstate
interfaces:
- name: br0
link:
kind: bridge
br_stp_state: 0
state: up
- name: eth0
link:
kind: physical
master: br0
state: up
- name: eogre
link:
kind: gretap
gre_local: 192.0.2.1
gre_remote: 192.0.2.2
master: br0
state: up
manually
ip link add name br0 type bridge stp_state 0
ip link set dev eth0 master br0
ip link add eogre type gretap local 192.0.2.1 remote 192.0.2.2
ip link set dev eogre master br0
ip link dev br0 set up
ip link dev eth0 set up
ip link dev eogre set up