Initial commit
This commit is contained in:
commit
35f2972e98
5 changed files with 90 additions and 0 deletions
19
README
Normal file
19
README
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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/<namespace>/network/interfaces` file if
|
||||
it doesn't already exist.
|
||||
|
||||
If it does and the interface is configured it will invoke `ifup` inside the
|
||||
namespace.
|
Loading…
Add table
Add a link
Reference in a new issue