Date: Thu, 11 Sep 2014 09:24:52 -0700 From: Freddie Cash <fjwcash@gmail.com> To: Steven Hartland <killing@multiplay.co.uk> Cc: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: Using CARP with multiple IP aliases (FBSD 10.0) Message-ID: <CAOjFWZ7L619Ms=r=G7vPnA9E-5EGc-tQcgf19NbV-bxCU5TJvw@mail.gmail.com> In-Reply-To: <FE2CFC78656D40D996B1970649E20CCF@multiplay.co.uk> References: <CAOjFWZ5_M_d3AStmkUJKk0TgesowJH-jWsKBbvZshwQ278o8ow@mail.gmail.com> <FE2CFC78656D40D996B1970649E20CCF@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 11, 2014 at 8:54 AM, Steven Hartland <killing@multiplay.co.uk> wrote: > > I believe you need a seperate vhid per IP assuming you want each to fail > over > to another machine when it goes down e.g. > ifconfig igb0 inet 1.2.3.4/24 vhid 30 pass mypass > ifconfig igb0 inet 1.2.3.5/32 vhid 31 pass mypass alias > ifconfig igb0 inet 1.2.3.6/32 vhid 32 pass mypass alias > ifconfig igb0 inet 1.2.3.7/32 vhid 33 pass mypass alias ifconfig igb0 inet 1.2.3.8/32 vhid 34 pass mypass alias > =E2=80=8BThat's what I'm trying to avoid. :) And everything appears to ge= t added to the interf=E2=80=8B ace correctly: [fcash@myhost ~]$ ifconfig igb0 igb0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=3Dbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM> ether a0:36:9f:34:90:f7 inet x.y.z.130 netmask 0xffffffff broadcast x.y.z.130 vhid 30 inet6 fe80::a236:9fff:fe45:80e8%igb0 prefixlen 64 scopeid 0x2 inet x.y.z.251 netmask 0xffffff80 broadcast x.y.z.255 inet x.y.z.134 netmask 0xffffffff broadcast x.y.z.134 vhid 30 inet x.y.z.175 netmask 0xffffffff broadcast x.y.z.175 vhid 30 inet x.y.z.131 netmask 0xffffffff broadcast x.y.z.131 vhid 30 inet x.y.z.132 netmask 0xffffffff broadcast x.y.z.132 vhid 30 inet x.y.z.133 netmask 0xffffffff broadcast x.y.z.133 vhid 30 inet x.y.z.135 netmask 0xffffffff broadcast x.y.z.135 vhid 30 inet x.y.z.136 netmask 0xffffffff broadcast x.y.z.136 vhid 30 inet x.y.z.137 netmask 0xffffffff broadcast x.y.z.137 vhid 30 inet x.y.z.138 netmask 0xffffffff broadcast x.y.z.138 vhid 30 inet x.y.z.140 netmask 0xffffffff broadcast x.y.z.140 vhid 30 inet x.y.z.223 netmask 0xffffffff broadcast x.y.z.223 vhid 30 inet x.y.z.141 netmask 0xffffffff broadcast x.y.z.141 vhid 30 inet x.y.z.142 netmask 0xffffffff broadcast x.y.z.142 vhid 30 inet x.y.z.144 netmask 0xffffffff broadcast x.y.z.144 vhid 30 inet x.y.z.145 netmask 0xffffffff broadcast x.y.z.145 vhid 30 inet x.y.z.146 netmask 0xffffffff broadcast x.y.z.146 vhid 30 inet x.y.z.150 netmask 0xffffffff broadcast x.y.z.150 vhid 30 inet x.y.z.154 netmask 0xffffffff broadcast x.y.z.154 vhid 30 inet x.y.z.159 netmask 0xffffffff broadcast x.y.z.159 vhid 30 inet x.y.z.160 netmask 0xffffffff broadcast x.y.z.160 vhid 30 inet x.y.z.161 netmask 0xffffffff broadcast x.y.z.161 vhid 30 inet x.y.z.162 netmask 0xffffffff broadcast x.y.z.162 vhid 30 inet x.y.z.163 netmask 0xffffffff broadcast x.y.z.163 vhid 30 inet x.y.z.164 netmask 0xffffffff broadcast x.y.z.164 vhid 30 inet x.y.z.165 netmask 0xffffffff broadcast x.y.z.165 vhid 30 inet x.y.z.166 netmask 0xffffffff broadcast x.y.z.166 vhid 30 inet x.y.z.169 netmask 0xffffffff broadcast x.y.z.169 vhid 30 inet x.y.z.171 netmask 0xffffffff broadcast x.y.z.171 vhid 30 inet x.y.z.172 netmask 0xffffffff broadcast x.y.z.172 vhid 30 inet x.y.z.177 netmask 0xffffffff broadcast x.y.z.177 vhid 30 inet x.y.z.178 netmask 0xffffffff broadcast x.y.z.178 vhid 30 inet x.y.z.179 netmask 0xffffffff broadcast x.y.z.179 vhid 30 inet x.y.z.181 netmask 0xffffffff broadcast x.y.z.181 vhid 30 inet x.y.z.188 netmask 0xffffffff broadcast x.y.z.188 vhid 30 inet x.y.z.189 netmask 0xffffffff broadcast x.y.z.189 vhid 30 inet x.y.z.190 netmask 0xffffffff broadcast x.y.z.190 vhid 30 inet x.y.z.191 netmask 0xffffffff broadcast x.y.z.191 vhid 30 inet x.y.z.192 netmask 0xffffffff broadcast x.y.z.192 vhid 30 inet x.y.z.193 netmask 0xffffffff broadcast x.y.z.193 vhid 30 inet x.y.z.194 netmask 0xffffffff broadcast x.y.z.194 vhid 30 inet x.y.z.195 netmask 0xffffffff broadcast x.y.z.195 vhid 30 inet x.y.z.196 netmask 0xffffffff broadcast x.y.z.196 vhid 30 inet x.y.z.197 netmask 0xffffffff broadcast x.y.z.197 vhid 30 inet x.y.z.198 netmask 0xffffffff broadcast x.y.z.198 vhid 30 inet x.y.z.199 netmask 0xffffffff broadcast x.y.z.199 vhid 30 inet x.y.z.200 netmask 0xffffffff broadcast x.y.z.200 vhid 30 inet x.y.z.201 netmask 0xffffffff broadcast x.y.z.201 vhid 30 inet x.y.z.202 netmask 0xffffffff broadcast x.y.z.202 vhid 30 inet x.y.z.222 netmask 0xffffffff broadcast x.y.z.222 vhid 30 inet x.y.z.204 netmask 0xffffffff broadcast x.y.z.204 vhid 30 inet x.y.z.207 netmask 0xffffffff broadcast x.y.z.207 vhid 30 inet x.y.z.208 netmask 0xffffffff broadcast x.y.z.208 vhid 30 inet x.y.z.209 netmask 0xffffffff broadcast x.y.z.209 vhid 30 inet x.y.z.210 netmask 0xffffffff broadcast x.y.z.210 vhid 30 inet x.y.z.215 netmask 0xffffffff broadcast x.y.z.215 vhid 30 inet x.y.z.212 netmask 0xffffffff broadcast x.y.z.212 vhid 30 inet x.y.z.213 netmask 0xffffffff broadcast x.y.z.213 vhid 30 inet x.y.z.205 netmask 0xffffffff broadcast x.y.z.205 vhid 30 inet x.y.z.206 netmask 0xffffffff broadcast x.y.z.206 vhid 30 inet x.y.z.211 netmask 0xffffffff broadcast x.y.z.211 vhid 30 inet x.y.z.214 netmask 0xffffffff broadcast x.y.z.214 vhid 30 inet x.y.z.216 netmask 0xffffffff broadcast x.y.z.216 vhid 30 inet x.y.z.217 netmask 0xffffffff broadcast x.y.z.217 vhid 30 inet x.y.z.219 netmask 0xffffffff broadcast x.y.z.219 vhid 30 inet x.y.z.220 netmask 0xffffffff broadcast x.y.z.220 vhid 30 inet x.y.z.227 netmask 0xffffffff broadcast x.y.z.227 vhid 30 inet x.y.z.228 netmask 0xffffffff broadcast x.y.z.228 vhid 30 inet x.y.z.182 netmask 0xffffffff broadcast x.y.z.182 vhid 30 nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active carp: MASTER vhid 30 advbase 1 advskew 1=E2=80=8B =E2=80=8B =E2=80=8BAnd the documentation I read a long time ago hinted that the above= is a valid configuration. I'm just not sure if I'm adding the IPs to the vhid correctly. Are all the parameters needed on every ifconfig invocation, or only the first one? Are the pass/advskew set per vhid, or per IP? If I need to use a separate vhid per IP I can. Just need confirmation that that is how it works. :)=E2=80=8B --=20 Freddie Cash fjwcash@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ7L619Ms=r=G7vPnA9E-5EGc-tQcgf19NbV-bxCU5TJvw>