Bug #199
closedDeleting an unused VLAN ID removes IP addresses from all active VLAN interfaces
0%
Description
On 1.2.3 (Current snapshots, and from at least last month) when you delete a VLAN ID that is not assigned to an interface, all VLAN interfaces on the system have their IP addresses removed. When you have a VLAN for WAN and LAN, this is very harmful as it leaves the box up but unreachable.
How to reproduce:- Add a few VLAN IDs
- Assign an VLAN interface as an OPT and give it an IP.
- Delete one of the other unused VLAN IDs
When you look at the console menu header, any configured VLAN interface shows an IP address of "NONE" and indeed when you check the ifconfig output, no IP address is present.
If you run /etc/rc.reload_interfaces or reboot, they come back, but it must be done by hand to restore connectivity.
I've reproduced this on my live test system and on a clean VM.
Files
Updated by Jim Pingle almost 15 years ago
- File vlandeletefix.diff vlandeletefix.diff added
The attached patch may be the equivalent of swatting a fly with a cannon, but it seems to do the trick. With this patch I can delete VLANs one after another and the active ones stay up and running.
Updated by Jim Pingle almost 15 years ago
I may have spoken too soon on that. I deleted a few in a row rapidly and the system rebooted itself. I couldn't get to the console in time to see the error, but I'll keep trying to reproduce it.
Updated by Jim Pingle almost 15 years ago
Try as I might, I can't replicate the reboot that happened yesterday. I have created and deleted a couple dozen vlans and it seems to be holding up so far.
Updated by Scott Ullrich almost 15 years ago
- Status changed from New to Feedback
Updated by Chris Buechler over 14 years ago
- Status changed from Feedback to Closed