Those two commands are used in the pre-docker phase when you setup your weave bridge using create-bridge, e.g. inside /etc/network/interfaces.