运行VRRP的2台华为交换机型号大全要一样吗

扫一扫体验手机阅读
如何利用华为交换机配置MSTP+VRRP的实验之一
<span type="1" blog_id="1066453" userid='
66篇文章,24W+人气,1粉丝
高并发架构之路
¥51.00147人订阅
9本网络安全实战书籍精华
¥51.00510人订阅
<span type="1" blog_id="1066453" userid='Cisco冗余路由协议VRRP说明
Cisco冗余路由协议VRRP说明
& &VRRP全称是虚拟冗余协议(Virtual Router Redundancy Protocol),这个协议主要是为了做双机,将两台路由器虚拟成一台。主虚拟路由器:该VRRP路由器将承担下列任务:转发那些寻址到与虚拟路由器关联的IP地址的数据包,应答对该IP地址的ARP请求。注意,如果存在IP地址所有者,那么该所有者总是主虚拟路由器。备份虚拟路由器:一组可用的VRRP路由器,当主虚拟路由器失效后将承担主虚拟路由器的转发功能。
& & & VRRP把在同一个广播域中的多个路由器接口编为一组,形成一个虚拟路由器,并为其分配一个IP地址,作为虚拟路由器的接口地址。虚拟路由器的接口地址既可以是其中一个路由器接口的地址,也可以是第三方地址。如果使用路由器的接口地址作为VRRP虚拟地址,则拥有这个IP地址的路由器作为主用路由器,其他路由器作为备份。如果采用第三方地址,则优先级高的路由器成为主用路由器;如果两路由器优先级相同,则谁先发VRRP报文,谁就成为主用。
VRRP的配置并不复杂,R1上配置
&ip address 192.168.1.2 255.255.255.0
&vrrp 1 ip 192.168.1.1 & & &\\创建 VRRP组1 虚拟IP为 192.168.1.1
&vrrp 1 priority 120 & & & & & &\\设置VRRP组1的优先级为120
vrrp 1 preempt & & & & & & & & \\启用抢占 具体可以设置时间&
&ip address 192.168.1.3 255.255.255.0
&vrrp 1 ip 192.168.1.1 & & &\\创建 VRRP组1 虚拟IP为 192.168.1.1
&vrrp 1 priority 100 & & & & & &\\设置VRRP组1的优先级为120
vrrp 1 preempt & & & & & & & & \\启用抢占 具体可以设置时间&
配置完成后用show vrrp brief命令查看一下状态,正常应该为一主一备
R1#show vrrp brief
Interface & & & & &Grp Pri Time &Own Pre State & Master addr & & Group addr
Fa1/0 & & & & & & &1 & 120 3531 & & & Y &Master &192.168.1.2 & & 192.168.1.1
R2#show vrrp brief&
Interface & & & & &Grp Pri Time &Own Pre State & Master addr & & Group addr
Fa1/0 & & & & & & &1 & 100 3609 & & & Y &Backup &192.168.1.2 & & 192.168.1.1
配置完成后优先级高的一个就会成为主,另外一个为备机。配置VRRP前提需要两台路由器或可以互相通信,完全隔离的两台是不能建立主备的。
其它设备配置:
VRRP配置命令:
1) & & & &华为系列交换机配置:
vrrp ping-enable:根据VRRP的标准协议,备份组的虚拟IP地址是无法使用ping命令来ping通的。此命令可以使用户能够使用ping命令来ping通备份组的虚拟IP地址。如果需要主机可以ping通网关,则此命令必须在配置vrrp之前使能。
vrrp vrid virtual-router-ID virtual-ip virtual-address:将一个本网段的IP地址指定到一个虚拟路由器
vrrp vrid virtual-router-ID priority priority-value:设置路由器在备份组中的优先级,优先级越大,越有机会成为备份组中的主设备。
vrrp vrid virtual-router-ID preempt-mode [ timer delay delay-value ]:设置路由器抢占模式。在非抢占方式下,一旦备份组中的某台路由器成为Master,只要它没有出现故障,其它路由器即使随后被配置更高的优先级,也不 会成为Master。如果路由器设置为抢占方式,它一旦发现自己的优先级比当前的Master的优先级高,就会成为Master,相应地,原来的 Master将会变成Backup。
vrrp vrid virtual-router-ID track interface interface-type interface-number [ reducedpriority-reduced ]: 如果路由器是备份组中优先级最高,它就是备份组中的master,但是当此设备由于某种原因down掉时,其他的backup设备由于优先级没有此设备 高,所以不会抢占它成为master。这样就会导致原有的路由不变,但是实际中这条路由已经断了,所以数据包都丢失。此命令可以在优先级高的设备使用,当 master设备出现down掉后,将优先级降到比其一backup设备低,这样那台backup设备会抢占为master,链路不会断开。
vrrp vrid virtual-router-id authentication-mode { md5 key | simple key }:设置备份组中认证。可以选md5和密文两种认证方式,但两边必须相同。
显示vrrp相关命令:
显示VRRP的概要信息
display vrrp [ interface type number [ virtual-router-ID ] ]
显示VRRP的详细信息
display vrrp verbose [ interface type number [ vrid virtual-router-ID ] ]
使能对VRRP报文的调试
debugging vrrp packet
禁止对VRRP报文的调试
undo debugging vrrp packet
使能对VRRP状态的调试
debugging vrrp state
禁止对VRRP状态的调试
undo debugging vrrp state
2) & & & Cisco系列设备配置:
& & router vrrp :激活vrrp协议。
virtual-ip :设置vip。
Interface {IFNAME | ethernet IFNAME | Vlan }:启用vrpp的接口。
Enable:在接口下使能vrrp。
preempt-mode {true| false}:设置是否采用抢占模式。
priority :设置路由器vrrp的优先级。
circuit-failover {IFNAME | ethernet IFNAME | Vlan } :设置当设备down掉时,降级的参数。
显示vrrp相关命令:
show vrrp&
debug vrrp
具体实例配置如下:
华为5510和cisco3750做vrrp双机备份配置。
华为5510相关配置如下:
[switch]vrrp ping-enable & &//要想ping通网关,此命令必须在配置vrrp之前,启用。
[switch]interface vlan 100
[switch- vlan100]ip address 192.168.0.1 255.255.255.0
[switch- vlan100]vrrp vrid 1 virtual-ip 192.168.0.254
[switch- vlan100]vrrp vrid 1 priority 160
[switch- vlan100]vrrp vrid 1 timer advertise 5
[switch- vlan100]vrrp vrid 1 track interface vlan 100 reduced 50 & &//只是作为介绍,实际中没有配置,因为此设备的优先级没有cisco3750高。设置没有必要。
Cisco3750相关配置如下:
SwitchA(config)#interface vlan 200&
SwitchA(Config-if-Vlan1)# ip address 192.168.0.2 255.255.255.0
SwitchA(Config-if-Vlan1)#exit
SwitchA(config)#router vrrp 1&
SwitchA(config-router)#virtual-ip 192.168.0.254&
SwitchA(config-router)#interface vlan 200&
SwitchA(config-router)#enable&
SwitchA(config-router)#priority 200
SwitchA(config-router)#preempt-mode true
SwitchA(config-router)#circuit-failover vlan 200 50 //指定当主机down掉后,将优先级降低50&>&交换机 vrrp+mstp配置实例
交换机 vrrp+mstp配置实例
上传大小:256KB
交换机 vrrp+mstp配置实例
锐捷tac贾文宇
switch a 、switch b选用两台锐捷的s5750 ;switch c 、shwich d 选
用锐捷的 s3750和s3760
全网共有两个业务vlan ,为 vlan 10 、vlan 20
Switch a 、switch b 都分别对两vlan起用两vrrp组,实现两组的业务的负载分担和备份。
Switch a、switch b、switch c、switch d 都起用 mstp多生成数协议,并且所有设备都属于同一个mst域,且实例映射一致(vlan 10映射实例1、vlan 20映射实例2 其他vlan映射默认实例0)。
Vlan 10业务以switch a为根桥; vlan 20业务以switch b为根桥;实现阻断网络环路,并能实现不同vlan数据流负载分担功能。
综合评分:0
{%username%}回复{%com_username%}{%time%}\
/*点击出现回复框*/
$(".respond_btn").on("click", function (e) {
$(this).parents(".rightLi").children(".respond_box").show();
e.stopPropagation();
$(".cancel_res").on("click", function (e) {
$(this).parents(".res_b").siblings(".res_area").val("");
$(this).parents(".respond_box").hide();
e.stopPropagation();
/*删除评论*/
$(".del_comment_c").on("click", function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_invalid/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parents(".conLi").remove();
alert(data.msg);
$(".res_btn").click(function (e) {
var parentWrap = $(this).parents(".respond_box"),
q = parentWrap.find(".form1").serializeArray(),
resStr = $.trim(parentWrap.find(".res_area_r").val());
console.log(q);
//var res_area_r = $.trim($(".res_area_r").val());
if (resStr == '') {
$(".res_text").css({color: "red"});
$.post("/index.php/comment/do_comment_reply/", q,
function (data) {
if (data.succ == 1) {
var $target,
evt = e || window.
$target = $(evt.target || evt.srcElement);
var $dd = $target.parents('dd');
var $wrapReply = $dd.find('.respond_box');
console.log($wrapReply);
//var mess = $(".res_area_r").val();
var mess = resS
var str = str.replace(/{%header%}/g, data.header)
.replace(/{%href%}/g, 'http://' + window.location.host + '/user/' + data.username)
.replace(/{%username%}/g, data.username)
.replace(/{%com_username%}/g, data.com_username)
.replace(/{%time%}/g, data.time)
.replace(/{%id%}/g, data.id)
.replace(/{%mess%}/g, mess);
$dd.after(str);
$(".respond_box").hide();
$(".res_area_r").val("");
$(".res_area").val("");
$wrapReply.hide();
alert(data.msg);
}, "json");
/*删除回复*/
$(".rightLi").on("click", '.del_comment_r', function (e) {
var id = $(e.target).attr("id");
$.getJSON('/index.php/comment/do_comment_del/' + id,
function (data) {
if (data.succ == 1) {
$(e.target).parent().parent().parent().parent().parent().remove();
$(e.target).parents('.res_list').remove()
alert(data.msg);
//填充回复
function KeyP(v) {
var parentWrap = $(v).parents(".respond_box");
parentWrap.find(".res_area_r").val($.trim(parentWrap.find(".res_area").val()));
评论共有0条
VIP会员动态
CSDN下载频道资源及相关规则调整公告V11.10
下载频道用户反馈专区
下载频道积分规则调整V1710.18
spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip
资源所需积分/C币
当前拥有积分
当前拥有C币
输入下载码
为了良好体验,不建议使用迅雷下载
交换机 vrrp+mstp配置实例
会员到期时间:
剩余下载个数:
剩余积分:0
为了良好体验,不建议使用迅雷下载
积分不足!
资源所需积分/C币
当前拥有积分
您可以选择
程序员的必选
绿色安全资源
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
为了良好体验,不建议使用迅雷下载
资源所需积分/C币
当前拥有积分
当前拥有C币
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
无法举报自己的资源
你当前的下载分为234。
你还不是VIP会员
开通VIP会员权限,免积分下载
你下载资源过于频繁,请输入验证码
您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:!
若举报审核通过,可返还被扣除的积分
被举报人:
xiezhiwenhappy
请选择类型
资源无法下载 ( 404页面、下载失败、资源本身问题)
资源无法使用 (文件损坏、内容缺失、题文不符)
侵犯版权资源 (侵犯公司或个人版权)
虚假资源 (恶意欺诈、刷分资源)
含色情、危害国家安全内容
含广告、木马病毒资源
*投诉人姓名:
*投诉人联系方式:
*版权证明:
*详细原因:
交换机 vrrp+mstp配置实例查看:11826|回复:11
初级工程师
虚拟做不了vrrp。
3560也没有vrrp做。
但是还是想了解VRRP的配置。
cisco的vrrp配置。
竞赛题目要求
创建两个vrrp组,分别为group10 , group20 实现交换A是vlan10的活跃路由,vlan20是备份路由。
创建两个vrrp组,分别为group10 , group20 实现交换B是vlan20是活跃路由,vlan10是备份路由。
除了这些包括 要配置抢占模式。优先级。
就是求这些配置。!
备注:图左边是A 。右边是B。!
A/B之间起trunk
interface Vlan10
ip address 192.168.1.1 255.255.255.0
vrrp 10 ip 192.168.1.254
vrrp 10 priority 150
interface Vlan20
ip address 192.168.2.1 255.255.255.0
vrrp 20 ip 192.168.2.254
vrrp 20 ip preempt(抢占 show run不显示)
interface Vlan10
ip address 192.168.1.2 255.255.255.0
vrrp 10 ip 192.168.1.254
vrrp 10 ip preempt(抢占show run不显示)
interface Vlan20
ip address 192.168.2.2 255.255.255.0
vrrp 20 ip 192.168.2.254
vrrp 20 priority 150
提示: 作者被禁止或删除 内容自动屏蔽
初级工程师
引用:原帖由 a 于
12:41 发表
A/B之前做个trunk 或聚合端口
SWA:& &vlan 10&&为主&&vlan 20 为备份
int vlan 10
&&ip add 192.168.1.254 255.255.255.0
&&vrrp 10 ip 192.168.1.100& & -----------------设置一个虚地址
&&vrrp 10 priority 254&&... 做VRRP前 在他们口之前一定要做tr吗?
提示: 作者被禁止或删除 内容自动屏蔽
要trunk 的
switch0#sh run
Building configuration...
Current configuration : 1408 bytes
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname switch0
boot-start-marker
boot-end-marker
enable secret 5 $1$qi5E$WUjRihiWgN.Y.lw1VscKP.
no aaa new-model
resource policy
memory-size iomem 5
no ip domain lookup
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
interface FastEthernet0/0
!& && && &
interface FastEthernet0/1
switchport mode trunk
!& && && &
interface FastEthernet0/2
!& && && &
interface FastEthernet0/3
!& && && &
interface FastEthernet0/4
!& && && &
interface FastEthernet0/5
!& && && &
interface FastEthernet0/6
!& && && &
interface FastEthernet0/7
!& && && &
interface FastEthernet0/8
!& && && &
interface FastEthernet0/9
!& && && &
interface FastEthernet0/10
!& && && &
interface FastEthernet0/11
!& && && &
interface FastEthernet0/12
!& && && &
interface FastEthernet0/13
!& && && &
interface FastEthernet0/14
!& && && &
interface FastEthernet0/15
!& && && &
interface Vlan1
no ip address
!& && && &
interface Vlan10
ip address 192.168.1.253 255.255.255.0
vrrp 10 ip 192.168.1.1
vrrp 10 priority 120
!& && && &
interface Vlan20
ip address 192.168.2.253 255.255.255.0
vrrp 20 ip 192.168.2.1
!& && && &
ip http server
no ip http secure-server
!& && && &
!& && && &
!& && && &
mac-address-table static .010a interface FastEthernet0/1 vlan 10
!& && && &
!& && && &
control-plane
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
line con 0
exec-timeout 0 0
password 7 B
logging synchronous
transport output none
line aux 0
line vty 0 4
password 7
transport input none
!& && && &
!& && && &
switch1#sh run
Building configuration...
Current configuration : 1334 bytes
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname switch1
boot-start-marker
boot-end-marker
enable secret 5 $1$gq/G$Fk1MaZjUYnyZtGSboMwQB/
no aaa new-model
resource policy
memory-size iomem 5
no ip domain lookup
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
interface FastEthernet0/0
!& && && &
interface FastEthernet0/1
switchport mode trunk
!& && && &
interface FastEthernet0/2
!& && && &
interface FastEthernet0/3
!& && && &
interface FastEthernet0/4
!& && && &
interface FastEthernet0/5
!& && && &
interface FastEthernet0/6
!& && && &
interface FastEthernet0/7
!& && && &
interface FastEthernet0/8
!& && && &
interface FastEthernet0/9
!& && && &
interface FastEthernet0/10
!& && && &
interface FastEthernet0/11
!& && && &
interface FastEthernet0/12
!& && && &
interface FastEthernet0/13
!& && && &
interface FastEthernet0/14
!& && && &
interface FastEthernet0/15
!& && && &
interface Vlan1
no ip address
!& && && &
interface Vlan10
ip address 192.168.1.254 255.255.255.0
vrrp 10 ip 192.168.1.1
!& && && &
interface Vlan20
ip address 192.168.2.254 255.255.255.0
vrrp 20 ip 192.168.2.1
vrrp 20 priority 120
!& && && &
ip http server
no ip http secure-server
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
control-plane
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
!& && && &
line con 0
exec-timeout 0 0
password 7
logging synchronous
transport output none
line aux 0
line vty 0 4
password 7 121A0C041104
transport input none
!& && && &
!& && && &
初级工程师
谢谢了。:D
提示: 作者被禁止或删除 内容自动屏蔽
初级工程师
看你的网络拓扑就知道在PT中模拟。HSRP&&VRRP是实现不了的。早点学会GNS3吧。这样来的更快!
初级工程师
引用:原帖由 ckwentao 于
21:22 发表
看你的网络拓扑就知道在PT中模拟。HSRP&&VRRP是实现不了的。早点学会GNS3吧。这样来的更快! 恩!谢谢了。两台华为交换机在核心上面做vrrp,状态9为什么都显示为主的_百度知道
两台华为交换机在核心上面做vrrp,状态9为什么都显示为主的
&#xe6b9;答题抽奖
首次认真答题后
即可获得3次抽奖机会,100%中奖。
zhengzhuo19730知道合伙人
来自电脑网络类芝麻团
zhengzhuo19730
采纳数:20240
获赞数:14817
擅长:暂未定制
参与团队:
首先S3352后缀是-EI的交换机才能支持VRRP,配置vrrp之后必须配合MSTP才能达到效果。PS: 因为下联的交换机都是双链路上联到两个做VRRP的核心交换机的。
为你推荐:
其他类似问题
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 思科交换机型号大全 的文章

 

随机推荐