Lines Matching +full:link +full:- +full:name

2 # SPDX-License-Identifier: GPL-2.0
6 # Test that a link aggregation device (bonding, team) removes the hardware
15 local name
17 ip link add dummy1 type dummy
18 ip link add dummy2 type dummy
20 name="bond1"
21 ip link add "$name" up type bond mode "$mode"
22 ip link set dev dummy1 master "$name"
23 ip link set dev dummy2 master "$name"
25 name="team0"
26 teamd -d -c '
28 "device": "'"$name"'",
30 "name": "'"$mode"'"
40 ip link set dev "$name" up
47 # Used to test dev->uc handling
48 ip link add mv0 link "$name" up address "$ucaddr" type macvlan
49 # Used to test dev->mc handling
50 ip address add "$addr6" dev "$name"
60 check_err $? "IPv6 solicited-node multicast mac address not found on a slave"
62 ip link set dev "$name" down
63 ip link del "$name"
69 check_err $? "IPv6 solicited-node multicast mac address still present on a slave"
79 # +-----------+ +-----------+
83 # | eth0 +-------+ eth0 |
85 # | eth1 +-------+ eth1 |
87 # +-----------+ +-----------+
90 local state=${1:-down}
99 ip link add name lag1 type veth peer name lag1-end
100 ip link set dev lag1 netns lag_node1 $state name eth0
101 ip link set dev lag1-end netns lag_node2 $state name eth0
103 ip link add name lag1 type veth peer name lag1-end
104 ip link set dev lag1 netns lag_node1 $state name eth1
105 ip link set dev lag1-end netns lag_node2 $state name eth1
128 ip netns exec ${SWITCH} ip link add br0 up type bridge
129 ip netns exec ${SWITCH} ip link set eth0 master br0 up
130 ip netns exec ${SWITCH} ip link set eth1 master br0 up
136 ip netns exec ${CLIENT} ip link del bond0
137 ip netns exec ${SWITCH} ip link set eth0 up
138 ip netns exec ${SWITCH} ip link set eth1 up
144 ip netns exec ${CLIENT} ip link set eth0 down
145 ip netns exec ${CLIENT} ip link set eth1 down
147 ip netns exec ${CLIENT} ip link add bond0 type bond $@
148 ip netns exec ${CLIENT} ip link set eth0 master bond0
149 ip netns exec ${CLIENT} ip link set eth1 master bond0
150 ip netns exec ${CLIENT} ip link set bond0 up
161 slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null
165 ip netns exec ${SWITCH} ip link set eth0 down
167 ip netns exec ${SWITCH} ip link set eth0 up
168 ip netns exec ${SWITCH} ip link set eth1 down
170 # re-verify connectivity
171 slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null