openrc/conf.d/network.Linux
Roy Marples 6027b0ed7d 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.
2009-04-16 23:47:23 +00:00

11 lines
401 B
Plaintext

# 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"