summaryrefslogtreecommitdiffstats
path: root/rc.inet1.conf
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2017-07-13 14:24:05 -0500
committerRobby Workman <rworkman@slackware.com>2017-07-14 00:35:12 -0500
commitc533543d40247ce6ab6d34bcf94aa8ab174bfc7e (patch)
tree20be85f40262b7f8d061e286cead191180f16d65 /rc.inet1.conf
parent6281b5d47da57004b1d00f1a9946f5af6cca38a0 (diff)
downloadslacknetsetup-c533543d40247ce6ab6d34bcf94aa8ab174bfc7e.tar.xz
rc.inet1.*: Added support for IP address aliases
This is accomplished with a new parameter in rc.inet1.conf: IPALIASES[$index]="space separated list of addresses" The aliases are added with a /32 mask and a label of ${interface}:{$number} to remain compatible with net-tools. IP address aliases are supported for both statically configured interfaces and dhcp-configured interfaces, although they'll only be configured for dhcp if the dhcpcd call succeeds. * note: I don't what happens if dhcpcd gets IPv4LL address
Diffstat (limited to 'rc.inet1.conf')
-rw-r--r--rc.inet1.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.inet1.conf b/rc.inet1.conf
index 93b3e6c..7fcc9bb 100644
--- a/rc.inet1.conf
+++ b/rc.inet1.conf
@@ -16,24 +16,28 @@
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
+IPALIASES[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
+IPALIASES[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
+IPALIASES[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
+IPALIASES[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
@@ -52,6 +56,7 @@ DEBUG_ETH_UP="no"
#BRNICS[0]="eth0"
#IPADDR[0]="192.168.0.1"
#NETMASK[0]="255.255.255.0"
+#IPALIASES[0]=""
#USE_DHCP[0]=""
#DHCP_HOSTNAME[0]=""