基于vlan的HSRP配置

(转载请注明来源和作者)

SW1
int port-channel 1
switchport mode trunk //*两个交换机使用二层etherchannel相连

int f0/1 //*作etherchannel的口
switchport mode trunk
channel-group 1 mode on 

int f0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.10 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 priority 150  //hrsp 默认优先级是100  这里设置优先级为150
standby 1 preempt

interface Vlan200
ip address 192.168.1.10 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 preempt     

//*HSRP部分

 

SW2

interface Port-channel1
switchport mode trunk

int F0/1
switchport mode trunk
channel-group 1 mode on

int F0/2
switchport mode trunk
channel-group 1 mode on

interface Vlan100
ip address 192.168.0.20 255.255.255.0
standby 1 ip 192.168.0.1
standby 1 preempt


interface Vlan200
ip address 192.168.1.20 255.255.255.0
standby 2 ip 192.168.1.1
standby 2 priority 150
standby 2 preempt


 

posted on 2011-02-16 09:41 prince 阅读(566) 评论(0)  编辑  收藏 所属分类: 硬件网络


只有注册用户登录后才能发表评论。


网站导航:
 
<2011年2月>
303112345
6789101112
13141516171819
20212223242526
272812345
6789101112

导航

统计

常用链接

留言簿(4)

随笔分类(72)

相册

blog友人

搜索

最新评论

阅读排行榜