GRE - wnsgml972/Dashboard-Thema GitHub Wiki

GRE - Generic Routing Encapsulation

191.168.10.1
sudo ip tunnel add tunnel1 mode gre remote 192.168.10.1 local 192.168.10.2 dev enp0s8 key 100
sudo ip tunnel add tunnel2 mode gre remote 192.168.10.1 local 192.168.10.2 dev enp0s8 key 200
sudo ifconfig tunnel1 192.168.100.2 netmask 255.255.255.252 pointopoint 192.168.100.1
sudo ifconfig tunnel1 mtu 1500 up
sudo ifconfig tunnel2 192.168.200.2 netmask 255.255.255.252 pointopoint 192.168.200.1
sudo ifconfig tunnel2 mtu 1500 up
sudo tc qdisc add dev tunnel1 root handle 1:0 tbf rate 50Mbit burst 500k latency 1ms
sudo tc qdisc add dev tunnel2 root handle 1:0 tbf rate 950Mbit burst 500k latency 1ms

192.168.10.2
sudo ip tunnel add tunnel1 mode gre remote 192.168.10.2 local 192.168.10.1 dev enp0s8 key 100
sudo ip tunnel add tunnel2 mode gre remote 192.168.10.2 local 192.168.10.1 dev enp0s8 key 200
sudo ifconfig tunnel1 192.168.100.1 netmask 255.255.255.252 pointopoint 192.168.100.2
sudo ifconfig tunnel1 mtu 1500 up
sudo ifconfig tunnel2 192.168.200.1 netmask 255.255.255.252 pointopoint 192.168.200.2
sudo ifconfig tunnel2 mtu 1500 up
sudo tc qdisc add dev tunnel1 root handle 1:0 tbf rate 50Mbit burst 500k latency 1ms
sudo tc qdisc add dev tunnel2 root handle 1:0 tbf rate 950Mbit burst 500k latency 1ms

  • μ˜μƒμ€ 192.168.100.1
  • iperf λŠ” 192.168.200.1
  • bw κ·Έλž˜ν”„λŠ” 192.168.10.1 κ³Ό 192.168.100.1

일반 νŠΈλž˜ν”½ START
Both Side
sudo tc qdisc change dev tunnel1 root handle 1:0 tbf rate 5Mbit burst 500k latency 1ms
sudo tc qdisc add dev tunnel2 root handle 1:0 tbf rate 950Mbit burst 500k latency 1ms

μ°¨λ“± νŠΈλž˜ν”½ START
Both Side
sudo tc qdisc change dev tunnel1 root handle 1:0 tbf rate 50Mbit burst 500k latency 1ms
sudo tc qdisc change dev tunnel2 root handle 1:0 tbf rate 850Mbit burst 500k latency 1ms