add working network
This commit is contained in:
parent
ebcb1680d7
commit
b9c9a5e0ec
6 changed files with 23 additions and 2 deletions
3
uncloud/hack/hackcloud/.gitignore
vendored
Normal file
3
uncloud/hack/hackcloud/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.iso
|
||||
radvdpid
|
||||
foo
|
|
@ -1,2 +0,0 @@
|
|||
tap0
|
||||
tap0
|
|
@ -6,3 +6,4 @@ dev=$1; shift
|
|||
|
||||
# bridge is setup from outside
|
||||
ip link set dev "$dev" master ${bridge}
|
||||
ip link set dev "$dev" up
|
||||
|
|
|
@ -5,6 +5,7 @@ dev=wlp2s0
|
|||
dev=wlp0s20f3
|
||||
dev=wlan0
|
||||
|
||||
ip=2a0a:e5c1:111:888::42/64
|
||||
vxlandev=vxlan${netid}
|
||||
bridgedev=br${netid}
|
||||
|
||||
|
@ -19,3 +20,5 @@ ip link set ${vxlandev} up
|
|||
|
||||
ip link add ${bridgedev} type bridge
|
||||
ip link set ${bridgedev} up
|
||||
|
||||
ip addr add ${ip} dev ${bridgedev}
|
||||
|
|
13
uncloud/hack/hackcloud/radvd.conf
Normal file
13
uncloud/hack/hackcloud/radvd.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
interface br100
|
||||
{
|
||||
AdvSendAdvert on;
|
||||
MinRtrAdvInterval 3;
|
||||
MaxRtrAdvInterval 5;
|
||||
AdvDefaultLifetime 3600;
|
||||
|
||||
prefix 2a0a:e5c1:111:888::/64 {
|
||||
};
|
||||
|
||||
RDNSS 2a0a:e5c0::3 2a0a:e5c0::4 { AdvRDNSSLifetime 6000; };
|
||||
DNSSL place7.ungleich.ch { AdvDNSSLLifetime 6000; } ;
|
||||
};
|
3
uncloud/hack/hackcloud/radvd.sh
Normal file
3
uncloud/hack/hackcloud/radvd.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
radvd -C ./radvd.conf -n -p ./radvdpid
|
Loading…
Reference in a new issue