… and a client at location 1
parent
8bfa034f33
commit
8249478a04
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
. machines/$mach/opts.shs
|
||||||
|
|
||||||
|
nsenter --wdns=$nethorror_root $namespaces "$@"
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/false
|
||||||
|
|
||||||
|
namespaces="--net=./state/$mach/netns --mount=./state/$mach/mntns"
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
|
||||||
|
ensure_started
|
||||||
|
attach machines/$mach/setup.sh
|
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
. ./lib.shs
|
||||||
|
|
||||||
|
# typically: bring up the networks
|
||||||
|
ip link set dev lo up
|
||||||
|
|
||||||
|
# TODO: DHCP client!
|
||||||
|
ip addr add 192.168.0.2/24 dev wifi
|
||||||
|
# No IPv6 at public spaces lol (but we should try obtaining it anyway!
|
||||||
|
ip link set dev wifi up
|
||||||
|
ip route add default via 192.168.0.1 dev wifi
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -eu
|
||||||
|
. ./lib.shs
|
||||||
|
. machines/$mach/opts.shs
|
||||||
|
|
||||||
|
setup_statedir
|
||||||
|
|
||||||
|
unshare $namespaces /bin/true # just create the namespaces
|
||||||
|
|
||||||
|
# TODO: make it virt_wifi (need to read iproute2 src…)
|
||||||
|
veth_to_bridge wifi loc1_cli ve_loc1_cli1
|
Loading…
Reference in New Issue