summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc17
1 files changed, 16 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index a681e8b..2665e33 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -616,6 +616,21 @@ function interfaces_carp_bring_up_final() {
echo " done.\n";
}
+function interfaces_ipalias_configure() {
+ global $g, $config, $debugging;
+ if(isset($config['system']['developerspew'])) {
+ $mt = microtime();
+ echo "interfaces_ipalias_configure() being called $mt\n";
+ }
+ $viparr = &$config['virtualip']['vip'];
+ foreach ($viparr as $vip) {
+ if ($vip['mode'] == "ipalias") {
+ $if = $vip['interface'];
+ mwexec("/sbin/ifconfig " . escapeshellarg($config['interfaces'][$if]['if']) . " " . $vip['subnet'] . "/" . escapeshellarg($vip['subnet_bits']) . " alias");
+ }
+ }
+}
+
function interfaces_wireless_configure($if, $wlcfg) {
global $config, $g;
@@ -1819,4 +1834,4 @@ function get_interface_mac($interface) {
return $mac;
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud