Re: how to set an alias on a carp interface?

2011-04-01 Thread Stuart Henderson
On 2011-02-17, Henning Brauer lists-open...@bsws.de wrote: * Harald Dunkel harald.dun...@aixigo.de [2011-02-17 16:51]: Hi folks, what would be the correct way to define network aliases on a carp interface? Currently I have the code below, but I see some packet filter problems around

Re: how to set an alias on a carp interface?

2011-02-20 Thread Claudio Jeker
On Sat, Feb 19, 2011 at 09:40:40PM +, Stuart Henderson wrote: On 2011-02-19, Claudio Jeker cje...@diehard.n-r-g.com wrote: On Sat, Feb 19, 2011 at 02:01:36AM -0500, Daniel Ouellet wrote: On 2/19/11 12:51 AM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 3:58 PM, Daniel

Re: how to set an alias on a carp interface?

2011-02-20 Thread Stuart Henderson
On 2011-02-20, Claudio Jeker cje...@diehard.n-r-g.com wrote: It is possible to that in ifconfig as well. I use it all the time. It works in hostname.if if you skip the inet IIRC. For main addresses, yes it does (either with or without the inet), but not for aliases. # ifconfig tun10

Re: how to set an alias on a carp interface?

2011-02-19 Thread Stuart Henderson
On 2011-02-19, Claudio Jeker cje...@diehard.n-r-g.com wrote: On Sat, Feb 19, 2011 at 02:01:36AM -0500, Daniel Ouellet wrote: On 2/19/11 12:51 AM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 3:58 PM, Daniel Ouelletdan...@presscom.net wrote: On 2/18/11 3:45 PM, Daniel Ouellet wrote: On

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
Think about it that way may be. You want an alias IP's, not an alias subnet, so how do you enter a single IP? With a /32 subnet. Actually I _do_ want to have alias subnets, as written before: Why? Please note that I would like to have 172.12.96.0/22, but 172.12.101.0/24 and

Re: how to set an alias on a carp interface?

2011-02-18 Thread Henning Brauer
* Daniel Ouellet dan...@presscom.net [2011-02-18 11:15]: Alias are enter with /32. huh? hell no. Your network card is configure with the IP 172.12.96.5 and you want to have on the same network card the IP 172.12.101.5 and 172.12.126.5 working right? Then enter it with the /32 netmark. Not

Re: how to set an alias on a carp interface?

2011-02-18 Thread Indunil Jayasooriya
one IP per subnet with the real mask so there is a route, all others with all-ones netmask. Then, It is like this.. # cat /etc/hostname.em0 inet 192.168.9.62 255.255.255.0 inet alias 192.168.9.63 255.255.255.255 inet alias 192.168.5.62 255.255.255.0 inet alias 192.168.5.63 255.255.255.255

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
On 2/18/11 5:42 AM, Henning Brauer wrote: * Daniel Ouelletdan...@presscom.net [2011-02-18 11:15]: Alias are enter with /32. huh? hell no. OK, but all examples show it as such in man(5) hostname.if and such. Your network card is configure with the IP 172.12.96.5 and you want to have on

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
On 2/18/11 6:10 AM, Indunil Jayasooriya wrote: one IP per subnet with the real mask so there is a route, all others with all-ones netmask. Then, It is like this.. # cat /etc/hostname.em0 inet 192.168.9.62 255.255.255.0 inet alias 192.168.9.63 255.255.255.255 inet alias 192.168.5.62

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
On 2/18/11 3:23 PM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 2:39 PM, Daniel Ouelletdan...@presscom.net wrote: On 2/18/11 5:42 AM, Henning Brauer wrote: * Daniel Ouelletdan...@presscom.net[2011-02-18 11:15]: Alias are enter with /32. huh? hell no. OK, but all examples show it as

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
On 2/18/11 3:45 PM, Daniel Ouellet wrote: On 2/18/11 3:23 PM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 2:39 PM, Daniel Ouelletdan...@presscom.net wrote: On 2/18/11 5:42 AM, Henning Brauer wrote: * Daniel Ouelletdan...@presscom.net [2011-02-18 11:15]: Alias are enter with /32. huh? hell

Re: how to set an alias on a carp interface?

2011-02-18 Thread Ted Unangst
On Fri, Feb 18, 2011 at 2:39 PM, Daniel Ouellet dan...@presscom.net wrote: On 2/18/11 5:42 AM, Henning Brauer wrote: * Daniel Ouelletdan...@presscom.net [2011-02-18 11:15]: Alias are enter with /32. huh? hell no. OK, but all examples show it as such in man(5) hostname.if and such. You

Re: how to set an alias on a carp interface?

2011-02-18 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, On 02/18/11 03:43, Dan Harnett wrote: IMHO, it would be better to use a new carp device for each alias. The routes will be created and destroyed properly with the status change of each carp device. I tried this together with

Re: how to set an alias on a carp interface?

2011-02-18 Thread Ted Unangst
On Fri, Feb 18, 2011 at 3:58 PM, Daniel Ouellet dan...@presscom.net wrote: On 2/18/11 3:45 PM, Daniel Ouellet wrote: On 2/18/11 3:23 PM, Ted Unangst wrote: Unless you refer at me writing /32 instead of the long way 255.255.255.255? Ah, yes, I thought you somehow meant just writing

Re: how to set an alias on a carp interface?

2011-02-18 Thread Daniel Ouellet
On 2/19/11 12:51 AM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 3:58 PM, Daniel Ouelletdan...@presscom.net wrote: On 2/18/11 3:45 PM, Daniel Ouellet wrote: On 2/18/11 3:23 PM, Ted Unangst wrote: Unless you refer at me writing /32 instead of the long way 255.255.255.255? Ah, yes, I thought

Re: how to set an alias on a carp interface?

2011-02-18 Thread Claudio Jeker
On Sat, Feb 19, 2011 at 02:01:36AM -0500, Daniel Ouellet wrote: On 2/19/11 12:51 AM, Ted Unangst wrote: On Fri, Feb 18, 2011 at 3:58 PM, Daniel Ouelletdan...@presscom.net wrote: On 2/18/11 3:45 PM, Daniel Ouellet wrote: On 2/18/11 3:23 PM, Ted Unangst wrote: Unless you refer at me writing

how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
Hi folks, what would be the correct way to define network aliases on a carp interface? Currently I have the code below, but I see some packet filter problems around route-to that might be related to a misconfigured carp interface. em1: inet 172.12.96.5 255.255.252.0 NONE inet alias

Re: how to set an alias on a carp interface?

2011-02-17 Thread Henning Brauer
* Harald Dunkel harald.dun...@aixigo.de [2011-02-17 16:51]: Hi folks, what would be the correct way to define network aliases on a carp interface? Currently I have the code below, but I see some packet filter problems around route-to that might be related to a misconfigured carp interface.

Re: how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Henning, On 02/17/11 17:37, Henning Brauer wrote: your way to configure aliases is correct, however, the masks are not. you are screwing up routing. you want an all-ones netmask on each and every IP address except one per subnet. alas you

Re: how to set an alias on a carp interface?

2011-02-17 Thread Daniel Ouellet
On 2/17/11 4:33 PM, Harald Dunkel wrote: your way to configure aliases is correct, however, the masks are not. you are screwing up routing. you want an all-ones netmask on each and every IP address except one per subnet. alas you want 255.255.255.255 on the carp if's IPs. That explains alot.

Re: how to set an alias on a carp interface?

2011-02-17 Thread Dan Harnett
On Thu, Feb 17, 2011 at 05:37:34PM +0100, Henning Brauer wrote: your way to configure aliases is correct, however, the masks are not. you are screwing up routing. you want an all-ones netmask on each and every IP address except one per subnet. alas you want 255.255.255.255 on the carp if's

Re: how to set an alias on a carp interface?

2011-02-17 Thread Harald Dunkel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/17/11 23:13, Daniel Ouellet wrote: Think about it that way may be. You want an alias IP's, not an alias subnet, so how do you enter a single IP? With a /32 subnet. Actually I _do_ want to have alias subnets, as written before: