Re: [pfSense] Delete last Alias IP when CARP address in subnet

2014-08-18 Thread Adam Williams
Thanks, Espen!

I was able to remove the `` using `viconfig`, and then run
`ifconfig em5 inet 2.2.2.10 -alias`.

By the way, these are made up IP addresses. I just remembered, I
should probably use private addresses for my examples :)

On Mon, Aug 18, 2014 at 2:24 PM, Espen Johansen  wrote:
> You can export only portions of the config.
> As for deleting the interface in cli withour making the proper changes in
> the config xml is not something i would advise at all. If you are sure you
> know how to do it you can edit the running config. Then use cli to remove
> the vip. If you want to do it cleanly I would suggest config edit followed
> by reboot or config export/import. All this would be workarounds since this
> seems to be a bug caused by a edge case. See the doc wiki or forum for
> propper xml edit procedures.
>
> 18. aug. 2014 20:16 skrev "Adam Williams"  følgende:
>
>> If it's that simple, I can use `viconfig` to delete the ``
>> element, then in FreeBSD, simply remove the IP address from the WAN
>> interface. I just am not terribly sure of the lifecycle of the config
>> file.
>>
>> On Mon, Aug 18, 2014 at 1:53 PM, Espen Johansen  wrote:
>> > Export config. Edit. Then import.
>> >
>> > 18. aug. 2014 19:21 skrev "Adam Williams"  følgende:
>> >>
>> >> Hello.
>> >>
>> >> I am running 2.1-RELEASE (built on Wed Sep 11 18:16:44 EDT 2013),
>> >> which I believe includes the fix for the bug documented here
>> >> https://redmine.pfsense.org/issues/2406, according to the release
>> >> notes at https://redmine.pfsense.org/versions/5.
>> >>
>> >> In that ticket, it says:
>> >>
>> >> > You can't remove the last IP alias on the subnet of a CARP IP because
>> >> > it'll break CARP, you have to delete the CARP IP first. The only
>> >> > exception
>> >> > being when the interface IP is on the CARP IP's subnet, which is also
>> >> > handled correctly.
>> >>
>> >> I believe I meet the "only exception" clause, since my WAN interface
>> >> is configured for the same subnet of the CARP address.
>> >>
>> >> I have the following configuration:
>> >>
>> >> ```
>> >> 
>> >> 
>> >> 
>> >> em5
>> >> 
>> >> 
>> >> 
>> >> 
>> >> 2.2.2.1
>> >> 28
>> >> WANGW
>> >> 
>> >> 
>> >> 
>> >> 
>> >> carp
>> >> wan
>> >> 2
>> >> 0
>> >> 1
>> >> 
>> >> 
>> >> single
>> >> 28
>> >> 2.2.2.9
>> >> 
>> >> 
>> >> ipalias
>> >> wan
>> >> 
>> >> single
>> >> 28
>> >> 2.2.2.10
>> >> 
>> >> 
>> >> ```
>> >>
>> >> However, I cannot delete this IP Alias, being given the message "This
>> >> entry cannot be deleted because it is still referenced by a CARP IP
>> >> with the description Alias." Of course, there is no CARP address with
>> >> that description, so it seems to be referencing the Alias itself!
>> >>
>> >> It's interesting to note that the `` element of the WAN
>> >> interface is `28`, where the similarly named element of the VIP
>> >> address is `2.2.2.10`, but the `` does match the
>> >> `` element of the interface.
>> >>
>> >> Does anyone know a workaround so that I can delete this IP Alias?
>> >>
>> >> Thanks!
>> >> ___
>> >> List mailing list
>> >> List@lists.pfsense.org
>> >> https://lists.pfsense.org/mailman/listinfo/list
>> >
>> >
>> > ___
>> > List mailing list
>> > List@lists.pfsense.org
>> > https://lists.pfsense.org/mailman/listinfo/list
>> ___
>> List mailing list
>> List@lists.pfsense.org
>> https://lists.pfsense.org/mailman/listinfo/list
>
>
> ___
> List mailing list
> List@lists.pfsense.org
> https://lists.pfsense.org/mailman/listinfo/list
___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list

Re: [pfSense] Delete last Alias IP when CARP address in subnet

2014-08-18 Thread Espen Johansen
You can export only portions of the config.
As for deleting the interface in cli withour making the proper changes in
the config xml is not something i would advise at all. If you are sure you
know how to do it you can edit the running config. Then use cli to remove
the vip. If you want to do it cleanly I would suggest config edit followed
by reboot or config export/import. All this would be workarounds since this
seems to be a bug caused by a edge case. See the doc wiki or forum for
propper xml edit procedures.
18. aug. 2014 20:16 skrev "Adam Williams"  følgende:

> If it's that simple, I can use `viconfig` to delete the ``
> element, then in FreeBSD, simply remove the IP address from the WAN
> interface. I just am not terribly sure of the lifecycle of the config
> file.
>
> On Mon, Aug 18, 2014 at 1:53 PM, Espen Johansen  wrote:
> > Export config. Edit. Then import.
> >
> > 18. aug. 2014 19:21 skrev "Adam Williams"  følgende:
> >>
> >> Hello.
> >>
> >> I am running 2.1-RELEASE (built on Wed Sep 11 18:16:44 EDT 2013),
> >> which I believe includes the fix for the bug documented here
> >> https://redmine.pfsense.org/issues/2406, according to the release
> >> notes at https://redmine.pfsense.org/versions/5.
> >>
> >> In that ticket, it says:
> >>
> >> > You can't remove the last IP alias on the subnet of a CARP IP because
> >> > it'll break CARP, you have to delete the CARP IP first. The only
> exception
> >> > being when the interface IP is on the CARP IP's subnet, which is also
> >> > handled correctly.
> >>
> >> I believe I meet the "only exception" clause, since my WAN interface
> >> is configured for the same subnet of the CARP address.
> >>
> >> I have the following configuration:
> >>
> >> ```
> >> 
> >> 
> >> 
> >> em5
> >> 
> >> 
> >> 
> >> 
> >> 2.2.2.1
> >> 28
> >> WANGW
> >> 
> >> 
> >> 
> >> 
> >> carp
> >> wan
> >> 2
> >> 0
> >> 1
> >> 
> >> 
> >> single
> >> 28
> >> 2.2.2.9
> >> 
> >> 
> >> ipalias
> >> wan
> >> 
> >> single
> >> 28
> >> 2.2.2.10
> >> 
> >> 
> >> ```
> >>
> >> However, I cannot delete this IP Alias, being given the message "This
> >> entry cannot be deleted because it is still referenced by a CARP IP
> >> with the description Alias." Of course, there is no CARP address with
> >> that description, so it seems to be referencing the Alias itself!
> >>
> >> It's interesting to note that the `` element of the WAN
> >> interface is `28`, where the similarly named element of the VIP
> >> address is `2.2.2.10`, but the `` does match the
> >> `` element of the interface.
> >>
> >> Does anyone know a workaround so that I can delete this IP Alias?
> >>
> >> Thanks!
> >> ___
> >> List mailing list
> >> List@lists.pfsense.org
> >> https://lists.pfsense.org/mailman/listinfo/list
> >
> >
> > ___
> > List mailing list
> > List@lists.pfsense.org
> > https://lists.pfsense.org/mailman/listinfo/list
> ___
> List mailing list
> List@lists.pfsense.org
> https://lists.pfsense.org/mailman/listinfo/list
___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list

Re: [pfSense] Delete last Alias IP when CARP address in subnet

2014-08-18 Thread Adam Williams
If it's that simple, I can use `viconfig` to delete the ``
element, then in FreeBSD, simply remove the IP address from the WAN
interface. I just am not terribly sure of the lifecycle of the config
file.

On Mon, Aug 18, 2014 at 1:53 PM, Espen Johansen  wrote:
> Export config. Edit. Then import.
>
> 18. aug. 2014 19:21 skrev "Adam Williams"  følgende:
>>
>> Hello.
>>
>> I am running 2.1-RELEASE (built on Wed Sep 11 18:16:44 EDT 2013),
>> which I believe includes the fix for the bug documented here
>> https://redmine.pfsense.org/issues/2406, according to the release
>> notes at https://redmine.pfsense.org/versions/5.
>>
>> In that ticket, it says:
>>
>> > You can't remove the last IP alias on the subnet of a CARP IP because
>> > it'll break CARP, you have to delete the CARP IP first. The only exception
>> > being when the interface IP is on the CARP IP's subnet, which is also
>> > handled correctly.
>>
>> I believe I meet the "only exception" clause, since my WAN interface
>> is configured for the same subnet of the CARP address.
>>
>> I have the following configuration:
>>
>> ```
>> 
>> 
>> 
>> em5
>> 
>> 
>> 
>> 
>> 2.2.2.1
>> 28
>> WANGW
>> 
>> 
>> 
>> 
>> carp
>> wan
>> 2
>> 0
>> 1
>> 
>> 
>> single
>> 28
>> 2.2.2.9
>> 
>> 
>> ipalias
>> wan
>> 
>> single
>> 28
>> 2.2.2.10
>> 
>> 
>> ```
>>
>> However, I cannot delete this IP Alias, being given the message "This
>> entry cannot be deleted because it is still referenced by a CARP IP
>> with the description Alias." Of course, there is no CARP address with
>> that description, so it seems to be referencing the Alias itself!
>>
>> It's interesting to note that the `` element of the WAN
>> interface is `28`, where the similarly named element of the VIP
>> address is `2.2.2.10`, but the `` does match the
>> `` element of the interface.
>>
>> Does anyone know a workaround so that I can delete this IP Alias?
>>
>> Thanks!
>> ___
>> List mailing list
>> List@lists.pfsense.org
>> https://lists.pfsense.org/mailman/listinfo/list
>
>
> ___
> List mailing list
> List@lists.pfsense.org
> https://lists.pfsense.org/mailman/listinfo/list
___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list

Re: [pfSense] Delete last Alias IP when CARP address in subnet

2014-08-18 Thread Espen Johansen
Export config. Edit. Then import.
18. aug. 2014 19:21 skrev "Adam Williams"  følgende:

> Hello.
>
> I am running 2.1-RELEASE (built on Wed Sep 11 18:16:44 EDT 2013),
> which I believe includes the fix for the bug documented here
> https://redmine.pfsense.org/issues/2406, according to the release
> notes at https://redmine.pfsense.org/versions/5.
>
> In that ticket, it says:
>
> > You can't remove the last IP alias on the subnet of a CARP IP because
> it'll break CARP, you have to delete the CARP IP first. The only exception
> being when the interface IP is on the CARP IP's subnet, which is also
> handled correctly.
>
> I believe I meet the "only exception" clause, since my WAN interface
> is configured for the same subnet of the CARP address.
>
> I have the following configuration:
>
> ```
> 
> 
> 
> em5
> 
> 
> 
> 
> 2.2.2.1
> 28
> WANGW
> 
> 
> 
> 
> carp
> wan
> 2
> 0
> 1
> 
> 
> single
> 28
> 2.2.2.9
> 
> 
> ipalias
> wan
> 
> single
> 28
> 2.2.2.10
> 
> 
> ```
>
> However, I cannot delete this IP Alias, being given the message "This
> entry cannot be deleted because it is still referenced by a CARP IP
> with the description Alias." Of course, there is no CARP address with
> that description, so it seems to be referencing the Alias itself!
>
> It's interesting to note that the `` element of the WAN
> interface is `28`, where the similarly named element of the VIP
> address is `2.2.2.10`, but the `` does match the
> `` element of the interface.
>
> Does anyone know a workaround so that I can delete this IP Alias?
>
> Thanks!
> ___
> List mailing list
> List@lists.pfsense.org
> https://lists.pfsense.org/mailman/listinfo/list
>
___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list

[pfSense] Delete last Alias IP when CARP address in subnet

2014-08-18 Thread Adam Williams
Hello.

I am running 2.1-RELEASE (built on Wed Sep 11 18:16:44 EDT 2013),
which I believe includes the fix for the bug documented here
https://redmine.pfsense.org/issues/2406, according to the release
notes at https://redmine.pfsense.org/versions/5.

In that ticket, it says:

> You can't remove the last IP alias on the subnet of a CARP IP because it'll 
> break CARP, you have to delete the CARP IP first. The only exception being 
> when the interface IP is on the CARP IP's subnet, which is also handled 
> correctly.

I believe I meet the "only exception" clause, since my WAN interface
is configured for the same subnet of the CARP address.

I have the following configuration:

```



em5




2.2.2.1
28
WANGW




carp
wan
2
0
1


single
28
2.2.2.9


ipalias
wan

single
28
2.2.2.10


```

However, I cannot delete this IP Alias, being given the message "This
entry cannot be deleted because it is still referenced by a CARP IP
with the description Alias." Of course, there is no CARP address with
that description, so it seems to be referencing the Alias itself!

It's interesting to note that the `` element of the WAN
interface is `28`, where the similarly named element of the VIP
address is `2.2.2.10`, but the `` does match the
`` element of the interface.

Does anyone know a workaround so that I can delete this IP Alias?

Thanks!
___
List mailing list
List@lists.pfsense.org
https://lists.pfsense.org/mailman/listinfo/list