From 6027b0ed7d1791a363004ec5b77ec7e866fc8bc9 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 16 Apr 2009 23:47:23 +0000 Subject: Add a new init script - network This simply assigns static addresses and an optional default route. It's possible to add external commands as well, so to create a bonded interface. Hopefully we can add a few examples to satisfy most of the old net.lo, which is no longer installed into boot by default. --- conf.d/network.Linux | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 conf.d/network.Linux (limited to 'conf.d/network.Linux') diff --git a/conf.d/network.Linux b/conf.d/network.Linux new file mode 100644 index 00000000..9967301d --- /dev/null +++ b/conf.d/network.Linux @@ -0,0 +1,10 @@ +# ifconfig under Linux is not that powerful and doesn't easily handle +# multiple addresses +# On the other hand, ip (iproute2) is quite powerful and is also supported +# ip_eth0="192.168.0.10/24; 192.168.10.10/24" + +# Create a bonded interface +# interfaces="bond0" +# ifup_bond0="modprobe bonding; ifconfig bond0 up; ifenslave bond0 bge0" +# ifconfig_bond0="192.168.0.10/24" +# ifdown_bond0="rmmod bonding" -- cgit v1.2.3