Revision 5918f9b7
Added by Ermal LUÇI over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
1055 | 1055 |
break; |
1056 | 1056 |
case "ipalias": |
1057 | 1057 |
$vipif = get_real_interface($vip['interface']); |
1058 |
if(does_interface_exist($vipif)) |
|
1059 |
pfSense_interface_deladdress($vipif, $vip['subnet']); |
|
1058 |
if (does_interface_exist($vipif)) { |
|
1059 |
if (is_ipaddrv6($vip['subnet'])) |
|
1060 |
mwexec("/sbin/ifconfig {$vipif} inet6 {$vip['subnet']} -alias"); |
|
1061 |
else |
|
1062 |
pfSense_interface_deladdress($vipif, $vip['subnet']); |
|
1063 |
} |
|
1060 | 1064 |
break; |
1061 | 1065 |
case "carp": |
1062 | 1066 |
$vipif = "{$vip['interface']}_vip{$vip['vhid']}"; |
Also available in: Unified diff
Resolves #2482. Remove an ipv6 alias from a vip eevn though the pfsense module does not have support for that