网管程序员论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3673|回复: 0

基本VRRP配置

[复制链接]
发表于 2007-8-28 07:20:22 | 显示全部楼层 |阅读模式
拓朴
实验说明 某企业为实现用户24小时不间断上网业务,使用两台路由器进行热备(VRRP).
 企业PC只需网关设定为VRRP指定的网关(192.168.0.100)即可.
配置
R1配置
!
hostname R1
!
interface FastEthernet0/0
 ip address 192.168.0.1 255.255.255.0
 duplex half
 vrrp 1 ip 192.168.0.100 //VRRP组1的虚拟地址为192.168.0.100,即PC的网关
 vrrp 1 priority 120
//VRRP组1在R1的优先级为120
!

R2配置
!
hostname R2
!
interface FastEthernet0/0
 ip address 192.168.0.2 255.255.255.0
 duplex half
 vrrp 1 ip 192.168.0.100
!
调试
调试的过程
R1#show vrrp
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.0.100
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 120
 Master Router is 192.168.0.1 (local), priority is 120
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.531 sec
在R2上查看

R2#show vrrp
FastEthernet0/0 - Group 1
 State is Backup
 Virtual IP address is 192.168.0.100
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Master Router is 192.168.0.1, priority is 120
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec (expires in 2.909 sec)
我们关掉R1的f0/0接口
R2#show vrrp
FastEthernet0/0 - Group 1
 State is Master
 Virtual IP address is 192.168.0.100
 Virtual MAC address is 0000.5e00.0101
 Advertisement interval is 1.000 sec
 Preemption enabled
 Priority is 100
 Master Router is 192.168.0.2 (local), priority is 100
 Master Advertisement interval is 1.000 sec
 Master Down interval is 3.609 sec
R2#
*Feb 22 01:14:48.327: %VRRP-6-STATECHANGE: Fa0/0 Grp 1 state Backup ->
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|小黑屋|手机版|Archiver|最新更新|网管程序员社区 鄂ICP备11008024号-3

GMT+8, 2019-11-20 03:57 , Processed in 0.124800 second(s), 22 queries .

Powered by 网管论坛

© 2001-2018 www.027safe.com Inc.

快速回复 返回顶部 返回列表