3 function config_device
{
5 ip link add veth0
type veth peer name veth0b
7 ip link
set veth0 netns at_ns0
8 ip netns
exec at_ns0 ip addr add
172.16.1.100/24 dev veth0
9 ip netns
exec at_ns0 ip addr add
2401:db00
::1/64 dev veth0 nodad
10 ip netns
exec at_ns0 ip link
set dev veth0 up
11 ip link add foo
type vrf table
1234
13 ip addr add
172.16.1.101/24 dev veth0b
14 ip addr add
2401:db00
::2/64 dev veth0b nodad
15 ip link
set veth0b master foo
20 mkdir
-p /tmp
/cgroupv2
21 mount
-t cgroup2 none
/tmp
/cgroupv2
22 mkdir
-p /tmp
/cgroupv
2/foo
23 test_cgrp2_sock
/tmp
/cgroupv
2/foo foo
24 echo $$
>> /tmp
/cgroupv
2/foo
/cgroup.procs
29 ip netns delete at_ns0
38 ping -c1 -w1 172.16.1.100
39 ping6
-c1 -w1 2401:db00
::1