您的位置:首页 > 其它

HSRP 不同VLAN之间的热备份路由协议

2013-12-18 11:50 295 查看
HSRP

划分vlanR6(config-if)#switchport access vlan 10R6(config-if)#inter f1/2R6(config-if)#switchport access vlan 20R6(config)#interface range f1/3 -4配置R5>enR5#conf tR5(config)#vlan 10配置地址R5(config-if)#no shutR5(config)#inter vlan 10R5(config-if)#standby 2 ip 192.168.10.1配置占先权R5(config-if)#standby 2 priority 150配置 vlan20配置占先权R5(config-if)#standby 3 priority 145负载均衡% This switch is already the root of VLAN10 spanning treeVLAN 10 bridge priority set to 8192VLAN 10 bridge max aging time unchanged at 20VLAN 10 bridge hello time unchanged at 2VLAN 10 bridge forward delay unchanged at 15R5(config)#spanning-tree vlan 20 root secondaryVLAN 20 bridge priority set to 16384VLAN 20 bridge max aging time unchanged at 20VLAN 20 bridge hello time unchanged at 2VLAN 20 bridge forward delay unchanged at 15R5(config)#inter f1/0R5(config-if)#no switchportR5(config-if)#ip address 202.106.1.10R5(config-if)#ip address 202.106.1.10 255.255.255.0R5(config-if)#no shutR5(config)#ip route 0.0.0.0 0.0.0.0 202.106.1.1上配置R3>enR3#conf tR3(config)#inte f1/1给vlan抢占R3(config-if)#inter vlan 20R3(config-if)#ip address 192.168.20.11 255.255.255.0R3(config-if)#no shutR3(config-if)#standby 3 ip 192.168.20.1R3(config-if)#standby 3 preemptR3(config-if)#standby 3 priority 150负载均衡VLAN 10 bridge priority set to 16384VLAN 10 bridge max aging time unchanged at 20VLAN 10 bridge hello time unchanged at 2VLAN 10 bridge forward delay unchanged at 15R3(config)#spanning-tree vlan 20 root primaryVLAN 20 bridge priority set to 8192VLAN 20 bridge max aging time unchanged at 20VLAN 20 bridge hello time unchanged at 2VLAN 20 bridge forward delay unchanged at 15R3(config)#ip route 0.0.0.0 0.0.0.0 202.106.10.1上配置:R4>enR4#conf tR4(config)#inter f0/0R4(config-if)#ip address 202.106.10.1 255.255.255.0测试结果
<span style="font-family: 宋体; color: red; font-size: 19px; mso-hansi-font-family: "Times New Roman'; mso-ascii-font-family: 'Times New Roman'">


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息