begin networking
This commit is contained in:
parent
da77ac65eb
commit
a2547bcd83
2 changed files with 77 additions and 0 deletions
17
network/create-vxlan-on-dev.sh
Normal file
17
network/create-vxlan-on-dev.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "$0 vxlanid dev"
|
||||
echo "f.i. $0 100 eth0"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
netid=$1; shift
|
||||
dev=$1; shift
|
||||
|
||||
ip -6 link add vxlan${netid} type vxlan \
|
||||
id ${netid} \
|
||||
dstport 4789 \
|
||||
group ff05::${netid} \
|
||||
dev ${dev} \
|
||||
ttl 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue