Sponsored Content
Operating Systems Linux Red Hat Virtual ip or CARP configure in Redhat Linux Post 302204671 by sysgate on Thursday 12th of June 2008 08:41:17 AM
Old 06-12-2008
I'm not sure whether CARP is available for Red Hat, it's been ported / used, or at least as far as I know, only on BSD-like distributions, have you got a package installed ?
 

10 More Discussions You Might Find Interesting

1. Red Hat

How to configure a Redhat 9.0 as NIS+ client

I would like to know how to configure a Redhat 9.0 as NIS+ client. I have seen the post of larry, but it is not enough information for me to do the configuration. Could anyone tell me how to do it? Please help! Thank you! (3 Replies)
Discussion started by: alexhon
3 Replies

2. Linux

configure NIS in RedHat 9.0

Hi All i want to configure NIS on RedHat 9.0. pls help me i need the configure file pls mail this configure files with regards sudeendra (0 Replies)
Discussion started by: sudeendra
0 Replies

3. Emergency UNIX and Linux Support

How to configure in redhat linux on vmware?

Hi All, I installed Red-hat linux(64bit-x86) os on vmware 8,configure IP address and services but it is unable to come in to network.it is production server. please provide solution to me , it is very urgent... (3 Replies)
Discussion started by: Rajesh_Apple
3 Replies

4. Red Hat

How can i configure fence_cisco_ucs with redhat cluster suite

HI How can i configure fence_cisco_ucs with redhat cluster suite. i was trying to configure fencing aganet with red ahat cluster suite i issued command # /usr/sbin/fence_vmware_soap -a 172.22.90.61 -l admin -p duc2Cisco -o reboot then i got below error: Failed: You have to... (0 Replies)
Discussion started by: bentech4u
0 Replies

5. Red Hat

How to configure redhat clusters on VMWARE?

I'm using redhat 5.1 installed on VMware work station9. Can you guys help me to configure redhat clusters. (1 Reply)
Discussion started by: karthik9358
1 Replies

6. Solaris

Configure virtual ip - second ip

Hello Group, Could you please help me with the procedure to configure a virtual ip (second ip) under the same interface in Solaris 11. Thanks in advance ! (2 Replies)
Discussion started by: csierra
2 Replies

7. Red Hat

Difference Redhat Linux/RH Enterprise Linux

what is the difference between Redhat Linux and Redhat Enterprise Linux. whereas Redhat linux have Server installation options too. (2 Replies)
Discussion started by: hananabbas
2 Replies

8. Red Hat

Virtual Console RedHat

Hi all, I am new to this forum, I have been searching on how I can select text in a virtual console in RedHat without any luck, I would liek to select the text without using a mouse, just with keyboard, not only to select text but to move around the lines, I know Shift+PageUP will scroll up and... (8 Replies)
Discussion started by: ed_v_eta
8 Replies

9. Red Hat

How to configure Audit in Redhat?

Hi i am new to this area and in want to know how can i configure auditd . i have copied /usr/share/doc/audit-2.4.1/stig.rules to /etc/audit/audit.rules then i ran auditctl -R /etc/audit/audit.rules after that auditctl -l is listing all the rule which i mentioned in but how can i analyze... (1 Reply)
Discussion started by: bentech4u
1 Replies

10. UNIX for Beginners Questions & Answers

Virtual Interfaces on Linux

Hi, I have RH Linux system on which we have a 10Gb nic card that we want to configure multiple Virtual interfaces that are all tagged on the switch side. Here is what I am trying to do, I want to have clients from different vlans that are truncked to be able to communicate with my RHEL... (1 Reply)
Discussion started by: new2prog
1 Replies
CARP(4) 						   BSD Kernel Interfaces Manual 						   CARP(4)

NAME
carp -- Common Address Redundancy Protocol SYNOPSIS
device carp DESCRIPTION
The CARP allows multiple hosts on the same local network to share a set of IPv4 and/or IPv6 addresses. Its primary purpose is to ensure that these addresses are always available. To use carp, the administrator needs to configure at a minimum a common virtual host ID (vhid), and attach at least one IP address to this vhid on each machine which is to take part in the virtual group. Additional parameters can also be set on a per-vhid basis: advbase and advskew, which are used to control how frequently the host sends advertisements when it is the master for a virtual host, and pass which is used to authenticate carp advertisements. The advbase parameter stands for ``advertisement base''. It is measured in seconds and specifies the base of the advertisement interval. The advskew parameter stands for ``advertisement skew''. It is measured in 1/256 of seconds. It is added to the base advertisement interval to make one host advertise a bit slower that the other does. Both advbase and advskew are put inside CARP advertisements. These values can be configured using ifconfig(8), or through the SIOCSVH ioctl(2). CARP virtual hosts can be configured on multicast-capable interfaces: Ethernet, layer 2 VLAN, FDDI and Token Ring. An arbitrary number of virtual host IDs can be configured on an interface. An arbitrary number of IPv4 or IPv6 addresses can be attached to a particular vhid. It is important that all hosts participating in a vhid have the same list of prefixes configured on the vhid, since all prefixes are included in the cryptographic checksum supplied in each advertisement. Multiple vhids running on one interface participate in master/backup elections independently. Additionally, there are a number of global parameters which can be set using sysctl(8): net.inet.carp.allow Accept incoming carp packets. Enabled by default. net.inet.carp.preempt Allow virtual hosts to preempt each other. When enabled, a vhid in a backup state would preempt a mas- ter that is announcing itself with a lower advskew. Disabled by default. net.inet.carp.log Determines what events relating to carp vhids are logged. A value of 0 disables any logging. A value of 1 enables logging state changes of carp vhids. Values above 1 enable logging of bad carp packets. The default value is 1. net.inet.carp.demotion This value shows current level of CARP demotion. The value is added to the actual advskew sent in announcements for all vhids. At normal system operation the demotion factor is zero. However, prob- lematic conditions raise its level: when carp experiences problem with sending announcements, when an interface running a vhid goes down, or while the pfsync(4) interface is not synchronized. The demotion factor can be adjusted writing to the sysctl oid. The signed value supplied to the sysctl(8) command is added to current demotion factor. This allows to control carp behaviour depending on some external conditions, for example on the status of some daemon utility. net.inet.carp.ifdown_demotion_factor This value is added to net.inet.carp.demotion when an interface running a vhid goes down. The default value is 240 (the maximum advskew value). net.inet.carp.senderr_demotion_factor This value is added to net.inet.carp.demotion when carp experiences errors sending its announcements. The default value is 240 (the maximum advskew value). STATE CHANGE NOTIFICATIONS
Sometimes it is useful to get notified about carp status change events. This can be accomplished by using devd(8) hooks. Master/slave events are signalled under system CARP. The subsystem specifies the vhid and name of the interface where the master/slave event occurred. The type of the message displays the new state of the vhid. Please see devd.conf(5) and the EXAMPLES section for more information. EXAMPLES
For firewalls and routers with multiple interfaces, it is desirable to failover all of the addresses running carp together, when one of the physical interfaces goes down. This is achieved by the use of the preempt option. Enable it on both hosts A and B: sysctl net.inet.carp.preempt=1 Assume that host A is the preferred master and we are running the 192.168.1.0/24 prefix on em0 and 192.168.2.0/24 on em1. This is the setup for host A (advskew is above 0 so it could be overwritten in the emergency situation from the other host): ifconfig em0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.1/24 ifconfig em1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.2.1/24 The setup for host B is identical, but it has a higher advskew: ifconfig em0 vhid 1 advskew 200 pass mekmitasdigoat 192.168.1.1/24 ifconfig em1 vhid 2 advskew 200 pass mekmitasdigoat 192.168.2.1/24 When one of the physical interfaces of host A fails, advskew is demoted to a configured value on all its carp vhids. Due to the preempt option, host B would start announcing itself, and thus preempt host A on both interfaces instead of just the failed one. Processing of carp status change events can be set up by using the following devd.conf rule: notify 0 { match "system" "CARP"; match "subsystem" "[0-9]+@[0-9a-z]+"; match "type" "(MASTER|BACKUP)"; action "/root/carpcontrol.sh $subsystem $type"; }; To see carp packets decoded in tcpdump(8) output, one needs to specify -T carp option, otherwise tcpdump(8) tries to interpret them as VRRP packets: tcpdump -npi vlan0 -T carp SEE ALSO
inet(4), pfsync(4), devd.conf(5), rc.conf(5), ifconfig(8), sysctl(8), tcpdump(8) HISTORY
The carp device first appeared in OpenBSD 3.5. The carp device was imported into FreeBSD 5.4. In FreeBSD 10.0, carp was significantly rewritten, and is no longer a pseudo-interface. BSD
February 21, 2013 BSD
All times are GMT -4. The time now is 06:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy