ifupdown helper scripts for network namespaces

Based on https://github.com/m0kct/debian-netns

Benjamin Collet 35f2972e98 Initial commit 6 年之前
if-down.d 35f2972e98 Initial commit 6 年之前
if-pre-up.d 35f2972e98 Initial commit 6 年之前
if-up.d 35f2972e98 Initial commit 6 年之前
LICENSE 35f2972e98 Initial commit 6 年之前
README 35f2972e98 Initial commit 6 年之前

README

# ifupdown-netns

Some simple scripts to simplify configuring network namespaces on Debian-like
systems. Copy them into the corresponding directories under `/etc/network`.

To configure an interface in a namespace:

```
auto eth1
iface eth1 inet manual
netns myns
```

On invocation of `ifup` it will create the necessary directories under
`/etc/netns/` and an empty `/etc/netns//network/interfaces` file if
it doesn't already exist.

If it does and the interface is configured it will invoke `ifup` inside the
namespace.