Cisco HSRP 工程实例
来源:互联网 发布:淘宝企业店铺运营方案 编辑:程序博客网 时间:2024/04/30 13:11
图:
标记:接入层交换机我们标记为sw1,做热备的两台交换机,左边的我们标记为sw2,右边的标记为sw3。
说明:我这里的连线方式和拓扑上的不一样,具体方式如下:
Switch1 F0/1 <----> Switch2 F0/1
Switch1 F0/2 <----> Switch3 F0/2
Switch2 F0/10 <----> Switch3 F0/10
Switch2 F0/2 <----> Switch4 F0/2
Switch3 F0/1 <----> Switch4 F0/1
Router1 F0/0 <----> Switch4 F0/0
Switch1 F0/1 <----> Switch2 F0/1
Switch1 F0/2 <----> Switch3 F0/2
Switch2 F0/10 <----> Switch3 F0/10
Switch2 F0/2 <----> Switch4 F0/2
Switch3 F0/1 <----> Switch4 F0/1
Router1 F0/0 <----> Switch4 F0/0
router配置:
Router#show run
Building configuration...
Current configuration : 1023 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
ip address 10.250.34.51 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial1/0 2
ip route 192.168.10.0 255.255.255.0 172.16.1.2
ip route 192.168.10.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.2
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Building configuration...
Current configuration : 1023 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial1/0
ip address 10.250.34.51 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Serial1/0 2
ip route 192.168.10.0 255.255.255.0 172.16.1.2
ip route 192.168.10.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.3
ip route 192.168.20.0 255.255.255.0 172.16.1.2
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
sw1配置:
sw1#show run
Building configuration...
Current configuration : 940 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
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
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Building configuration...
Current configuration : 940 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
switchport mode trunk
!
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
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
sw2配置:
sw2#show run
Building configuration...
Current configuration : 1497 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
no switchport
ip address 172.16.1.2 255.255.255.0
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/11
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/12
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 priority 200
standby 1 preempt
standby 1 track FastEthernet0/2 150
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 preempt
standby 2 track FastEthernet0/2
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Building configuration...
Current configuration : 1497 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
no switchport
ip address 172.16.1.2 255.255.255.0
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/11
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/12
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 priority 200
standby 1 preempt
standby 1 track FastEthernet0/2 150
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 preempt
standby 2 track FastEthernet0/2
!
ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
sw3配置:
sw3#show run
Building configuration...
Current configuration : 1572 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
no switchport
ip address 172.16.1.3 255.255.255.0
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/11
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/12
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.10.253 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 preempt
standby 1 track FastEthernet0/1
!
interface Vlan20
ip address 192.168.20.253 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 priority 200
standby 2 preempt
standby 2 track FastEthernet0/1 150
!
ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.0c07.ac02 interface FastEthernet0/10 vlan 20
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
Building configuration...
Current configuration : 1572 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sw3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
no switchport
ip address 172.16.1.3 255.255.255.0
!
interface FastEthernet0/2
switchport mode trunk
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/11
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/12
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 192.168.10.253 255.255.255.0
standby 1 ip 192.168.10.250
standby 1 timers 3 50
standby 1 preempt
standby 1 track FastEthernet0/1
!
interface Vlan20
ip address 192.168.20.253 255.255.255.0
standby 2 ip 192.168.20.250
standby 2 priority 200
standby 2 preempt
standby 2 track FastEthernet0/1 150
!
ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.0c07.ac02 interface FastEthernet0/10 vlan 20
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
!
end
sw4我这里没有做任何配置,大家可以根据需要在上面作访问控制列表之类的配置,好了,配置过程中遇到了一些问题,不过最后都解决了,坚持就是胜利啊!
文章转载至http://bbs.net527.cn 无忧网客联盟
无忧网客联盟主站
无忧linux时代
- Cisco HSRP 工程实例
- (原)Cisco HSRP&VRRP
- 双网卡HSRP配置实例
- HSRP
- HSRP
- HSRP
- HSRP
- HSRP
- Cisco IOS Cookbook 中文精简版 22-23 HSRP
- HSRP协议原理及配置实例
- 热备份HSRP详细配置实例
- RFC双语计划:rfc2281中文版(中英文对照)............Cisco热备份路由协议(HSRP)
- cisco 2600 配置实例
- Cisco ACL应用实例
- Cisco 2950 实例配置
- Cisco L2TP 配置实例
- CISCO路由器做桥接的实例
- CISCO Wireless AP1242配置实例
- 记录一次.net项目的破解过程
- LINQ之Order By
- JS/VBS配合Adodb.Stream处理字节数据/输出二进制文件
- FLASH与ASP通信入门教程(七) 其它通讯方式原理浅谈
- TCP/IP协议介绍
- Cisco HSRP 工程实例
- Google Reader高效指南
- (转)UltraWebGrid使用指南 - 前台属性和方法(JavaScript用)
- 更改oracle10g的归档模式和归档路径
- 在网页上显示你Google Talk的在线状态
- php生成 php配置文件
- 学习ContentProvider---之二:Modify data:insert,update,delete
- 文件路径详解
- struts2 自定义标签