Lines Matching refs:ip
17 ip link add dummy1 type dummy
18 ip link add dummy2 type dummy
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"
40 ip link set dev "$name" up
48 ip link add mv0 link "$name" up address "$ucaddr" type macvlan
50 ip address add "$addr6" dev "$name"
62 ip link set dev "$name" down
63 ip link del "$name"
95 ip netns add ${n}
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
114 ip netns delete ${n} >/dev/null 2>&1 || true
129 ip netns exec ${SWITCH} ip link add br0 up type bridge
130 ip netns exec ${SWITCH} ip link set eth0 master br0 up
131 ip netns exec ${SWITCH} ip link set eth1 master br0 up
132 ip netns exec ${SWITCH} ip addr add ${SWITCHIP}/24 dev br0
137 ip netns exec ${CLIENT} ip link del bond0
138 ip netns exec ${SWITCH} ip link set eth0 up
139 ip netns exec ${SWITCH} ip link set eth1 up
145 ip netns exec ${CLIENT} ip link set eth0 down
146 ip netns exec ${CLIENT} ip link set eth1 down
148 ip netns exec ${CLIENT} ip link add bond0 type bond $@
149 ip netns exec ${CLIENT} ip link set eth0 master bond0
150 ip netns exec ${CLIENT} ip link set eth1 master bond0
151 ip netns exec ${CLIENT} ip link set bond0 up
152 ip netns exec ${CLIENT} ip addr add ${CLIENTIP}/24 dev bond0
162 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 >/dev/null 2>&1
166 ip netns exec ${SWITCH} ip link set eth0 down
168 ip netns exec ${SWITCH} ip link set eth0 up
169 ip netns exec ${SWITCH} ip link set eth1 down
172 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 >/dev/null 2>&1