flowchart LR
ve1e1 --- ve2e1
ve1e2 --- ve3e1
ve3e2 --- ve4e1
ve1tun -.- ve4tun
subgraph ve1
ve1tun(ve1tun<br/><small>.2.1</small>)
ve1e1(ve1e1<br/><small>.1.1</small>)
ve1e2(ve1e2<br/><small>.1.2</small>)
end
subgraph ve2
ve2e1(ve2e1<br/><small>.1.3</small>)
end
subgraph ve3
ve3e1(ve3e1<br/><small>.1.4</small>)
ve3e2(ve3e1<br/><small>.1.5</small>)
end
subgraph ve4
ve4e1(ve4e1<br/><small>.1.6</small>)
ve4tun(ve4tun<br/><small>.2.2</small>)
end
Created
April 25, 2022 13:58
-
-
Save sarjsheff/ce4e42a6d229540c616d8990763a1aff to your computer and use it in GitHub Desktop.
ip netns gre
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
./simple_lan.sh # https://gist.github.com/sarjsheff/1b5b088c18e237c9aa28fcc218578536#file-simple_net-sh | |
set -x | |
ip -n ve1 tunnel add ve1tun mode gre remote 10.20.1.6 local 10.20.1.1 | |
ip -n ve1 addr add 10.20.2.1/24 dev ve1tun | |
ip -n ve4 tunnel add ve4tun mode gre remote 10.20.1.1 local 10.20.1.6 | |
ip -n ve4 addr add 10.20.2.2/24 dev ve4tun | |
ip -n ve1 link set ve1tun up | |
ip -n ve4 link set ve4tun up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment