add hack scripts

This commit is contained in:
Nico Schottelius 2020-01-10 23:27:21 +01:00
commit ebcb1680d7
4 changed files with 79 additions and 0 deletions

21
uncloud/hack/hackcloud/net.sh Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
netid=100
dev=wlp2s0
dev=wlp0s20f3
dev=wlan0
vxlandev=vxlan${netid}
bridgedev=br${netid}
ip -6 link add ${vxlandev} type vxlan \
id ${netid} \
dstport 4789 \
group ff05::${netid} \
dev ${dev} \
ttl 5
ip link set ${vxlandev} up
ip link add ${bridgedev} type bridge
ip link set ${bridgedev} up