Lines Matching full: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
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
131 ip netns exec ${SWITCH} ip addr add ${SWITCHIP}/24 dev br0
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
151 ip netns exec ${CLIENT} ip addr add ${CLIENTIP}/24 dev bond0
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
171 slowwait 2 ip netns exec ${CLIENT} ping ${SWITCHIP} -c 2 -W 0.1 &> /dev/null