|
发表于 2003-3-22 11:06:47
|
显示全部楼层
转贴自cisco技术
作者:ciscogun
Ws-c4006-S3 双机备份...
刚刚帮助别人把两台WS-C4006-S3做HSRP,
硬件配置分别是4K机箱+SUP3+WS-X4306-GB
拓扑图如下(比较烂):
------------------------------------WS-C4006-A----------------------------
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service compress-config
!
hostname 4006_A
!
boot system bootflash:cat4000-is-mz.121-11b.EW1.bin
no logging console
enable password 靠,,,,我还靠....真烦..
!
ip subnet-zero
no ip domain-lookup
!
!
!
interface GigabitEthernet1/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet1/2
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/1
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/2
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/3
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/4
switchport trunk encapsulation dot1q
no snmp trap link-status
!
interface GigabitEthernet2/5
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/6
switchport trunk encapsulation dot1q
switchport mode trunk
no snmp trap link-status
!
interface Vlan1
no ip address
!
interface Vlan60
ip address 10.10.202.17 255.255.255.0
no ip redirects
standby 60 ip 10.10.202.16
standby 60 priority 80
standby 60 preempt
!
interface Vlan100
ip address 10.254.150.10 255.255.255.0
no ip redirects
standby 100 ip 10.254.150.5
standby 100 priority 120
standby 100 preempt
!
interface Vlan210
ip address 10.10.210.2 255.255.255.0
no ip redirects
standby 210 ip 10.10.210.1
standby 210 priority 120
standby 210 preempt
!
interface Vlan211
ip address 10.10.211.2 255.255.255.0
ip helper-address 10.10.210.51
ip helper-address 10.10.210.52
no ip redirects
standby 211 ip 10.10.211.1
standby 211 priority 80
standby 211 preempt
spanning-tree port-priority 120
spanning-tree cost 5
!
interface Vlan212
ip address 10.10.212.2 255.255.255.0
ip helper-address 10.10.210.51
ip helper-address 10.10.210.52
no ip redirects
standby 212 ip 10.10.212.1
standby 212 priority 120
standby 212 preempt
ip routing
router ospf 100
network 10.10.10.0 0.0.0.255 area 0
network 10.254.150.0 0.0.0.255 area 0
..............
!
ip classless
no ip http server
!
!
line con 0
stopbits 1
line vty 0 4
password 看不见吗?
login
!
end
------------------------------------WS-C4006-B------------------------
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
service compress-config
!
hostname 4006_B
!
boot system bootflash:cat4000-is-mz.121-11b.EW1.bin
no logging console
enable password 你还看得见??
!
ip subnet-zero
ip host switch8 10.254.150.28
ip host switch7 10.254.150.27
ip host switch6 10.254.150.26
ip host switch5 10.254.150.25
!
!
!
interface GigabitEthernet1/1
no switchport
no ip address
no keepalive
no snmp trap link-status
!
interface GigabitEthernet1/2
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/2
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/3
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/4
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/5
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface GigabitEthernet2/6
switchport trunk encapsulation dot1q
switchport trunk native vlan 100
switchport mode trunk
no snmp trap link-status
!
interface Vlan1
no ip address
!
interface Vlan60
ip address 10.10.202.18 255.255.255.0
no ip redirects
standby 60 ip 10.10.202.16
standby 60 priority 120
standby 60 preempt
!
interface Vlan100
ip address 10.254.150.20 255.255.255.0
no ip redirects
standby 100 ip 10.254.150.5
standby 100 priority 80
standby 100 preempt
!
interface Vlan210
ip address 10.10.210.3 255.255.255.0
no ip redirects
standby 210 ip 10.10.210.1
standby 210 priority 80
standby 210 preempt
!
interface Vlan211
ip address 10.10.211.3 255.255.255.0
no ip redirects
standby 211 ip 10.10.211.1
standby 211 priority 120
standby 211 preempt
spanning-tree port-priority 100
spanning-tree cost 8
!
interface Vlan212
ip address 10.10.212.3 255.255.255.0
no ip redirects
standby 212 ip 10.10.212.1
standby 212 priority 80
standby 212 preempt
!
ip routing
router ospf 100
network 10.10.10.0 0.0.0.255 area 0
network 10.254.150.0 0.0.0.255 area 0
……………
ip classless
ip route 172.16.0.0 255.255.255.0 Vlan1
no ip http server
!
!
line con 0
stopbits 1
line vty 0 4
password 还看得见????
login
line vty 5 15
password 不可能的事
login
!
end
大概记了一点。
4006-A#show standy brief
ID GRO PROI State po_IP .....
vlan60 60 80 standy 10....
vlan100 100 120 Active 10.....
vlan210 210 120 Active 10.....
vlan211 211 80 standy 10.........
vlan212 212 120 Active 10.....
4006-B#show standy brief
ID GRO PROI State po_IP .....
vlan100 100 80 standy 10....
vlan60 60 120 Active 10.....
vlan210 210 80 standy 10.....
vlan211 211 120 Active 10.........
vlan212 212 80 standy 10..... |
|