Home
last modified time | relevance | path

Searched refs:ns0 (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.10/tools/testing/selftests/netfilter/
Dnft_nat.sh12 ns0="ns0-$sfx"
33 ip netns add "$ns0"
35 echo "SKIP: Could not create net namespace $ns0"
53 ip link add veth0 netns "$ns0" type veth peer name eth0 netns "$ns1" > /dev/null 2>&1
58 ip link add veth1 netns "$ns0" type veth peer name eth0 netns "$ns2"
60 ip -net "$ns0" link set lo up
61 ip -net "$ns0" link set veth0 up
62 ip -net "$ns0" addr add 10.0.1.1/24 dev veth0
63 ip -net "$ns0" addr add dead:1::1/64 dev veth0
65 ip -net "$ns0" link set veth1 up
[all …]
Dbridge_brouter.sh26 ip netns add ns0
30 ip link add veth0 netns ns0 type veth peer name eth0 netns ns1
35 ip link add veth1 netns ns0 type veth peer name eth0 netns ns2
37 ip -net ns0 link set lo up
38 ip -net ns0 link set veth0 up
39 ip -net ns0 link set veth1 up
41 ip -net ns0 link add br0 type bridge
47 ip -net ns0 link set veth0 master br0
48 ip -net ns0 link set veth1 master br0
49 ip -net ns0 link set br0 up
[all …]
Dnft_meta.sh8 ns0="ns0-$sfx"
17 ip netns del "$ns0"
20 ip netns add "$ns0"
21 ip -net "$ns0" link set lo up
22 ip -net "$ns0" addr add 127.0.0.1 dev lo
28 ip netns exec "$ns0" nft -f /dev/stdin <<EOF
94 if ! ip netns exec "$ns0" nft list counter inet filter $cname | grep -q "$want"; then
97 ip netns exec "$ns0" nft list counter inet filter $cname
116 ip netns exec "$ns0" ping -q -c 1 127.0.0.1 -m 42 > /dev/null
134 ip netns exec "$ns0" nft reset counters > /dev/null
[all …]
Dipvs.sh69 ip netns add ns0
73 ip link add veth01 netns ns0 type veth peer name veth10 netns ns1
74 ip link add veth02 netns ns0 type veth peer name veth20 netns ns2
77 ip netns exec ns0 ip link set veth01 up
78 ip netns exec ns0 ip link set veth02 up
79 ip netns exec ns0 ip link add br0 type bridge
80 ip netns exec ns0 ip link set veth01 master br0
81 ip netns exec ns0 ip link set veth02 master br0
82 ip netns exec ns0 ip link set br0 up
83 ip netns exec ns0 ip addr add ${cip_v4}/24 dev br0
[all …]
/Linux-v5.10/Documentation/networking/
Dipvlan.rst145 | | NS:ns0 | | NS:ns1 | |
156 (a) Create two network namespaces - ns0, ns1::
158 ip netns add ns0
168 ip link set dev ipvl0 netns ns0
171 (d) Now switch to the namespace (ns0 or ns1) to configure the slave devices
173 - For ns0::
175 (1) ip netns exec ns0 bash
/Linux-v5.10/samples/bpf/
Dxsk_fwd.c981 u64 ns0; in main() local
1056 ns0 = time.tv_sec * 1000000000UL + time.tv_nsec; in main()
1063 ns_diff = ns1 - ns0; in main()
1064 ns0 = ns1; in main()