GRE ethernet l2 mode
Материал из xapmc.net
- Configuration ethernet over internet on gre interfaces
- Load in module
modprobe ip_gre modprobe gre
- S1 - server 1
- S2 - server 2
S1: ip link add gre0 type gretap local 192.168.0.254 remote 192.168.0.11 S1: ip link set gre0 up S1: iptables -I INPUT -p gre -s 192.168.0.11 -j ACCEPT S2: ip link add gre0 type gretap local 192.168.0.11 remote 192.168.0.254 S2: ip link set gre0 up S2: iptables -I INPUT -p gre -s 192.168.0.254 -j ACCEPT S1: ip addr add 10.0.0.1/24 dev gre0 S2: ip addr add 10.0.0.2/24 dev gre0