过期罐头电脑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2015|回复: 0
收起左侧

分享之 配置HSRP

[复制链接]
lucylove 2011-9-23 11:54:48 | 显示全部楼层
本帖最后由 lucylove 于 2011-9-23 11:55 编辑

sw1:
config)#int range f0/13 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu

vlan database
vtp domain benet
vtp server
vtp password 123
vtp pruning
vlan 2
vlan 3
vlan 4

config)#int vlan 2
config-if)#ip add 192.168.2.1 255.255.255.0
config-if)#no shu
config-if)#standby 10 ip 192.168.2.254
config-if)#standby 10 priority 150
config-if)#standby 10 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100

config)#int vlan 3
config-if)#ip add 192.168.3.1 255.255.255.0
config-if)#no shu
config-if)#standby 20 ip 192.168.3.254
config-if)#standby 20 priority 150
config-if)#standby 20 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100

config)#int vlan 4
config-if)#ip add 192.168.4.1 255.255.255.0
config-if)#no shu
config-if)#standby 30 ip 192.168.4.254
config-if)#standby 30 priority 100
config-if)#standby 30 preempt


config)#spanning vlan 2 root primary
config)#spanning vlan 3 root primary
config)#spanning vlan 4 root secondary

sw2:
config)#int range f0/13 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu

vlan database
vtp domian benet
vtp client
vtp password 123


config)#int vlan 2
config-if)#ip add 192.168.2.2 255.255.255.0
config-if)#no shu
config-if)#standby 10 ip 192.168.2.254
config-if)#standby 10 priority 100
config-if)#standby 10 preempt

config)#int vlan 3
config-if)#ip add 192.168.3.2 255.255.255.0
config-if)#no shu
config-if)#standby 20 ip 192.168.3.254
config-if)#standby 20 priority 100
config-if)#standby 20 preempt

config)#int vlan 4
config-if)#ip add 192.168.4.2 255.255.255.0
config-if)#no shu
config-if)#standby 30 ip 192.168.4.254
config-if)#standby 30 priority 150
config-if)#standby 30 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100

config)#spanning vlan 2 root secondary
config)#spanning vlan 3 root secondary
config)#spanning vlan 4 root primary

sw3:
config)#int range f0/14 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu

vlan database
vtp domian benet
vtp client
vtp password 123

config)#int f0/0
config-if)#switchport access vlan 2
config-if)#no shu
config)#int f0/1
config-if)#swithcport access vlan 3
config-if)#no shu

sw4:
config)#int range f0/14 - 15
config-range-if)#switchport mode trunk
cofing-range-if)#no shu

vlan database
vtp domian benet
vtp client
vtp password 123


config)#int f0/0
config-if)#switchport access vlan 2
config-if)#no shu
config)#int f0/1
config-if)#swithcport access vlan 4
config-if)#no shu

pc1:
vlan 2:192.168.2.10/24

pc2:
vlan 3:192.168.3.10/24

pc3:
vlan 2:192.168.2.11/24

pc4:
vlan 4:192.168.4.10/24


分享来源于:北京IT外包  如果有什么需要交流的,请给我留言,希望我们能够一起学习!!  http://www.ithuhang.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

一键重装系统|雨人系统下载|联系我们|网站地图|过期罐头电脑论坛

GMT+8, 2024-11-27 11:42 , Processed in 0.043000 second(s), 26 queries .

官方免责声明:本站内容来自网友和互联网.若侵犯到您的版权.请致信联系,我们将第一时间删除相关内容!

Powered by Discuz!

专注于win7_win10_win11系统下载装机

© 2010-2023 GQGTPC.Com

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