This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PREFIX="$1" | |
IFACE="$2" | |
ip netns add jool | |
ip link add name to_jool typ veth peer name to_world | |
ip link set up dev to_jool | |
ip link set dev to_world netns jool | |
ip netns exec jool ip link set up dev to_world |