File: setup.sh

package info (click to toggle)
netavark 1.16.1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: sh: 1,012; makefile: 158
file content (15 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ip netns add new
ip link add dev outside type veth peer name outsidebr
ip link add dev inside type veth peer name insidebr
ip link add brtest type bridge
ip addr add 172.172.1.1/24 dev brtest
ip link set outsidebr master brtest
ip link set insidebr master brtest
ip link set brtest up
ip link set inside netns new
ip link set outsidebr up
ip link set insidebr up
ip addr add 172.172.1.2/24 dev outside
ip link set outside up
ip netns exec new ip link set lo up
ip netns exec new ip link set inside up