Skip to content

Instantly share code, notes, and snippets.

View relet's full-sized avatar

Thomas Hirsch relet

View GitHub Profile
@relet
relet / ns-inet.sh
Last active January 23, 2017 06:57 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="ns1"
VETH="veth1"
VPEER="vpeer1"
VETH_ADDR="10.200.1.1"
VPEER_ADDR="10.200.1.2"
NET="eth0"