Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml
Show First 20 Lines • Show All 5,099 Lines • ▼ Show 20 Lines | ifconfig_<replaceable>em0</replaceable>_alias1="inet vhid <replaceable>2</replaceable> advskew <replaceable>100</replaceable> pass <replaceable>testpass</replaceable> alias <replaceable>192.168.1.51</replaceable>/32"</programlisting> | ||||
<acronym>VHID</acronym>s configured means that | <acronym>VHID</acronym>s configured means that | ||||
<systemitem>hostc.example.org</systemitem> will notice if | <systemitem>hostc.example.org</systemitem> will notice if | ||||
either of the master servers becomes unavailable. If a master | either of the master servers becomes unavailable. If a master | ||||
fails to advertise before the backup server, the backup server | fails to advertise before the backup server, the backup server | ||||
will pick up the shared <acronym>IP</acronym> address until | will pick up the shared <acronym>IP</acronym> address until | ||||
the master becomes available again.</para> | the master becomes available again.</para> | ||||
<note> | <note> | ||||
<para>Preemption is disabled by default. If preemption has | <para>If the original master server becomes available again, | ||||
been enabled, <systemitem>hostc.example.org</systemitem> | <systemitem>hostc.example.org</systemitem> will not release | ||||
might not release the virtual <acronym>IP</acronym> address | the virtual <acronym>IP</acronym> address back to it | ||||
back to the original master server. The administrator | automatically. For this to happen, preemption has to be | ||||
enabled. The feature is disabled by default, | |||||
it is controlled via the &man.sysctl.8; variable | |||||
<varname>net.inet.carp.preempt</varname>. The administrator | |||||
can force the backup server to return the | can force the backup server to return the | ||||
<acronym>IP</acronym> address to the master with the | <acronym>IP</acronym> address to the master:</para> | ||||
command:</para> | |||||
<screen>&prompt.root; <userinput>ifconfig em0 vhid 1 state backup</userinput></screen> | <screen>&prompt.root; <userinput>ifconfig em0 vhid 1 state backup</userinput></screen> | ||||
</note> | </note> | ||||
<para>Once the configuration is complete, either restart | <para>Once the configuration is complete, either restart | ||||
networking or reboot each system. High availability is now | networking or reboot each system. High availability is now | ||||
enabled.</para> | enabled.</para> | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |