免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1363 | 回复: 0
打印 上一主题 下一主题

三层交换做hsrp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-15 10:31 |只看该作者 |倒序浏览


en
config t
line 0
no exec-timeout
no ip domain lookup
end
r1
en
config t
interface f0/0
no shut
interface f0/0.1
en do 1
ip add 10.0.0.3 255.255.255.0
standby 1 ip 10.0.0.1
standby 1 priority 130
standby 1 preempt
no shut
interface f0/0.2
en do 2
ip add 11.0.0.3 255.255.255.0
standby 2 ip 11.0.0.1
standby 2 priority 125
standby 2 preempt
no shut
end
r2
config t
interface f0/0
no shut
interface f0/0.1
en do 1
ip add 10.0.0.4 255.255.255.0
standby 1 ip 10.0.0.1
standby 1 priority 125
standby 1 preempt
no shut
interface f0/0.2
en do  2
ip add 11.0.0.4 255.255.255.0
standby 2 ip 11.0.0.1
standby 2 priority 130
standby 2 preempt
no shut
end

s1
en
vlan database
vtp domain zhou
vlan 1
vlan 2
vtp server
exit
config t
interface range f0/0 -3
switch mode trunk
no shut
exit
s2
en
vlan database
vtp domain zhou
vtp client
exit
config t
interface range f0/0 -3
switch mode trunk
no shut
exit
s3
en
vlan database
vtp client
vtp domain zhou
exit
config t
interface range f0/0 -3
no shut
interface f0/0
switch mode trunk
interface f0/3
switch mode trunk
exit
end
s4
en
vlan database
vtp domain zhou
vtp client
exit
config t
interface f0/0
switch mode trunk
interface f0/3
switch mode trunk
no shut
end
s3
config t
interface range f0/1 -2
switch access vlan 1
no shut
exit
s4
config t
interface f0/1
switch access vlan 2
no shut
exit
r3/r4
en
config t
no ip routing
interface f0/0
ip add dhcp
no shut
exit
r5
en
config t
no ip routing
ip dhcp pool vlan1
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
ip dhcp excluded-address 10.0.0.1 10.0.0.4
ip dhcp pool vlan2
network 11.0.0.0 255.255.255.0
default-router 11.0.0.1
ip dhcp excluded-address 10.0.0.1 10.0.0.4      
exit
config t
ip default-gateway 10.0.0.1
interface f0/0
ip add 10.0.0.2 255.255.255.0
no shut
end




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94591/showart_1900507.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP