Chinaunix首页 | 论坛 | 博客
  • 博客访问: 811414
  • 博文数量: 50
  • 博客积分: 757
  • 博客等级: 上士
  • 技术积分: 1913
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-29 14:29
个人简介

DBA

文章分类

全部博文(50)

文章存档

2015年(3)

2014年(2)

2013年(14)

2012年(19)

2011年(12)

分类: LINUX

2012-01-29 18:06:17



tar -zxvf vrrpd-1.0.tar.gz
cd vrrpd-1.0
[root@work_monitor vrrpd-1.0]# vi INSTALL

1. uncompress the source
2. cd in the directory
3. type 'make'
4. if everything is ok, there is now a file 'vrrpd' in the directory
5. copy vrrpd in your path (e.g /usr/sbin) and vrrpd.8 in your man path
   (e.g. /usr/man/man8)

it requires to be run as root.

Usage: vrrpd -i ifname -v vrid [-f piddir] [-s] [-a auth] [-p prio] [-nh] ipaddr
  -h       : display this short inlined help
  -n       : Dont handle the virtual mac address
  -i ifname: the interface name to run on
  -v vrid  : the id of the virtual server [1-255]
  -s       : Switch the preemption mode (Enabled by default)
  -a auth  : (not yet implemented) set the authentification type
             auth=(none|pass/hexkey|ah/hexkey) hexkey=0x[0-9a-fA-F]+
  -p prio  : Set the priority of this host in the virtual server (dfl: 100)
  -f piddir: specify the directory where the pid file is stored (dfl: /var/run)
  -d delay : Set the advertisement interval (in sec) (dfl: 1)
  ipaddr   : the ip address(es) of the virtual server

两台服务器
Linux Server S1 Details
-----------------------------
eth0 is connected to LAN switch. IP Address Binded to eth0 is 192.168.100.22
eth1 is connected to Internet Router.

Linux Server S2 Details
-----------------------------
eth0 is connected to LAN switch. IP Address Binded to eth0 is 192.168.100.44
eth1 is connected to Internet Router.

I started vrrpd daemon on S1 & S2 using the following command-

On Server S1: vrrpd -i eth0 -v 1 -p 255 192.168.100.22        ( MASTER)

On Server S2: vrrpd -i eth0 -v 1 -p 200 192.168.100.22         (Backup)

This way 192.168.100.22 became the Virtual IP of Virtual Router with VRID = 1.

see:$:ip add show


阅读(2611) | 评论(0) | 转发(0) |
0

上一篇:Python 学习

下一篇:Using Per-Table Tablespaces

给主人留下些什么吧!~~