Lines Matching refs:swp2
42 swp2=${NETIFS[p2]}
45 ip link set dev $swp2 up
52 ip link set dev $swp2 down
59 local swp2_mac=$(mac_get $swp2)
66 ip addr flush dev $swp2
77 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
79 ip addr add dev $swp2 192.0.2.2/28 2>&1 >/dev/null \
83 ip link set dev $swp2 addr 00:11:22:33:44:66
85 ip addr add dev $swp2 192.0.2.2/28 &>/dev/null
90 ip link set dev $swp2 addr 00:11:22:33:00:66 &>/dev/null
92 ip link set dev $swp2 addr 00:11:22:33:00:66 2>&1 >/dev/null \
98 ip addr del dev $swp2 192.0.2.2/28
101 ip link set dev $swp2 addr $swp2_mac
134 ip link set dev $swp2 master br1
150 ip link set dev $swp2 addr 00:11:22:33:44:55 &>/dev/null
152 ip link set dev $swp2 addr 00:11:22:33:44:55 2>&1 >/dev/null \
165 local swp2_mac=$(mac_get $swp2)
176 ip link set dev $swp2 master br1
190 ip link set dev $swp2 addr 00:11:22:33:44:55
195 ip link set dev $swp2 addr $swp2_mac
400 ip link set dev $swp2 down
402 ip link set dev $swp2 master bond1
424 ip link set dev $swp2 nomaster
473 ip link set dev $swp2 down
475 ip link set dev $swp2 master bond1
500 ip link set dev $swp2 nomaster
501 check_err $? "lag slave $swp2 was not unlinked from master"
630 sysctl_set net.ipv6.conf.$swp2.keep_addr_on_down 1
632 simple_if_init $swp2 192.0.2.2/24 2001:db8:1::2/64
647 ip link set dev $swp2 down
657 ip link set dev $swp2 up
672 simple_if_fini $swp2 192.0.2.2/24 2001:db8:1::2/64
674 sysctl_restore net.ipv6.conf.$swp2.keep_addr_on_down