Revision 990fb7a9
Added by Ermal LUÇI almost 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2334 | 2334 |
if (!$g['booting']) { |
2335 | 2335 |
/* remove all IPv4 addresses */ |
2336 | 2336 |
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0); |
2337 |
interface_bring_down($interface, true); |
|
2338 | 2337 |
} |
2339 | 2338 |
|
2340 | 2339 |
/* wireless configuration? */ |
... | ... | |
2441 | 2440 |
|
2442 | 2441 |
switch ($wancfg['ipaddr']) { |
2443 | 2442 |
case 'carpdev-dhcp': |
2443 |
interface_bring_down($interface); |
|
2444 | 2444 |
interface_carpdev_dhcp_configure($interface); |
2445 | 2445 |
break; |
2446 | 2446 |
case 'dhcp': |
2447 |
interface_bring_down($interface); |
|
2447 | 2448 |
interface_dhcp_configure($interface); |
2448 | 2449 |
break; |
2449 | 2450 |
case 'pppoe': |
2450 | 2451 |
case 'l2tp': |
2451 | 2452 |
case 'pptp': |
2452 | 2453 |
case 'ppp': |
2454 |
interface_bring_down($interface, true); |
|
2453 | 2455 |
interface_ppps_configure($interface); |
2454 | 2456 |
break; |
2455 | 2457 |
default: |
2458 |
interface_bring_down($interface); |
|
2459 |
|
|
2456 | 2460 |
if ($wancfg['ipaddr'] <> "" && $wancfg['subnet'] <> "") { |
2457 | 2461 |
pfSense_interface_setaddress($realif, "{$wancfg['ipaddr']}/{$wancfg['subnet']}"); |
2458 | 2462 |
} else if (substr($realif, 0, 3) == "gre") { |
Also available in: Unified diff
Ticket #867. Do not destory interfaces other than preventing a loop for ppp interfaces during interface configuration.