cisco 3750 双机热备份说明

cisco 3750G -24ts-s

switch-A
 的配置 

hostname switch-A
 
enable password ^%$&^&&*(*&(
 
 
ip subnet-zero
ip routing
 
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
spanning-tree vlan 500 priority 24576
 
 
interface GigabitEthernet1/0/1
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/2
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/3
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/4
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/5
switchport access vlan 102
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/6
switchport access vlan 102
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/7
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/8
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/9
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/10
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/11
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/12
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/13
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/14
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/15
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
interface GigabitEthernet1/0/17
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/18
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/19
switchport access vlan 600
switchport mode access
no ip address
no mdix auto
spanning-tree portfast
 
interface GigabitEthernet1/0/20
switchport access vlan 126
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/21
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/22
switchport access vlan 123
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/23
switchport access vlan 124
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/24
switchport access vlan 125
switchport trunk encapsulation dot1q
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/25
switchport access vlan 99
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/26
switchport access vlan 99
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/27
switchport access vlan 500
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/28
no ip address
 
interface Vlan1
no ip address
shutdown
interface Vlan99
ip address 172.17.1.2 255.255.0.0
ip rip send version 2
ip rip receive version 2
 
interface Vlan100
ip address 10.10.1 .2 255.255.255.0
no ip redirects
standby 1 i p 10.10.1 .1
standby 1 priority 200
 
interface Vlan101
ip address 192.168.100.2 255.255.255.0
no ip redirects
ip rip send version 2
ip rip receive version 2
standby name hexinyewu
standby 2 ip 192.168.100.1
standby 2 priority 200
 
interface Vlan102
ip address 192.168.101.2 255.255.255.0
no ip redirects
standby 3 ip 192.168.101.1
standby 3 priority 200
 
interface Vlan103
no ip address
 
interface Vlan123
ip address 10.10.27.2 255.255.255.0
no ip redirects
standby 4 i p 10.10.27 .1
standby 4 priority 200
 
interface Vlan124
ip address 10.10.26.2 255.255.255.0
no ip redirects
standby 5 i p 10.10.26 .1
standby 5 priority 200
 
interface Vlan125
ip address 10.10.25.2 255.255.255.0
no ip redirects
standby 6 i p 10.10.25 .1
standby 6 priority 200
 
interface Vlan126
ip address 10.10.40.2 255.255.255.0
no ip redirects
standby 8 i p 10.10.40 .1
 
interface Vlan500
ip address 172.16.2.2 255.255.255.252
ip rip v2-broadcast
ip rip send version 2
ip rip receive version 2
 
interface Vlan600
ip address 172.16.4.99 255.255.255.0
no ip redirects
ip rip send version 2
ip rip receive version 2
standby name link12
standby 7 ip 172.16.4.21
standby 7 priority 200
 
router rip
network 10.0.0.0
network 172.16.0.0
network 172.17.0.0
network 192.168.100.0
 
ip classless
ip route 10.10.33.0 255.255.255.0 172.16.4.22
ip route 10.10.34.0 255.255.255.0 172.16.4.22
ip route 10.10.35.0 255.255.255.0 172.16.4.22
ip route 10.10.36.0 255.255.255.0 172.16.4.22
ip route 10.10.37.0 255.255.255.0 172.16.4.22
ip route 192.168.1.0 255.255.255.0 172.16.4.22
ip route 192.168.2.0 255.255.255.0 172.16.4.22
ip route 192.168.3.0 255.255.255.0 172.16.4.22
ip route 192.168.4.0 255.255.255.0 172.16.4.22
ip route 192.168.5.0 255.255.255.0 172.16.4.22
ip route 192.168.10.0 255.255.255.0 172.16.4.22
ip route 192.168.11.0 255.255.255.0 172.16.4.22
ip route 192.168.12.0 255.255.255.0 172.16.4.22
ip route 192.168.13.0 255.255.255.0 172.16.4.22
ip route 192.168.14.0 255.255.255.0 172.16.4.22
ip http server
 
line con 0
line vty 0 4
password
看不到吧 
login
line vty 5 15
login
 
end
switch-B 的配置

 
hostname switch-B
 
enable password
看不到吧 
 
ip subnet-zero
ip routing
 
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
 
interface GigabitEthernet1/0/1
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/2
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/3
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/4
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/5
switchport access vlan 102
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/6
switchport access vlan 102
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/7
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/8
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/9
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/10
switchport access vlan 101
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/11
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/12
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/13
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/14
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/15
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/16
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/17
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/18
switchport access vlan 100
switchport mode access
no ip address
no mdix auto
 
interface GigabitEthernet1/0/19
switchport access vlan 600
switchport mode access
no ip address
no mdix auto
spanning-tree portfast
 
interface GigabitEthernet1/0/20
switchport access vlan 126
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/21
no ip address
no mdix auto
 
interface GigabitEthernet1/0/22
switchport access vlan 123
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/23
switchport access vlan 124
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/24
switchport access vlan 125
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
no mdix auto
 
interface GigabitEthernet1/0/25
switchport access vlan 99
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/26
switchport access vlan 99
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/27
switchport access vlan 500
switchport trunk encapsulation dot1q
switchport mode trunk
no ip address
 
interface GigabitEthernet1/0/28
no ip address
 
interface Vlan1
no ip address
shutdown
 
interface Vlan99
ip address 172.17.1.1 255.255.0.0
ip rip send version 2
ip rip receive version 2
 
interface Vlan100
ip address 10.10.1 .3 255.255.255.0
no ip redirects
standby 1 i p 10.10.1 .1
 
interface Vlan101
ip address 192.168.100.3 255.255.255.0
 
interface Vlan102
ip address 192.168.101.3 255.255.255.0
no ip redirects
standby 3 ip 192.168.101.1
 
interface Vlan123
ip address 10.10.27.3 255.255.255.0
no ip redirects
standby 4 i p 10.10.27 .1
 
interface Vlan124
ip address 10.10.26.3 255.255.255.0
no ip redirects
standby 5 i p 10.10.26 .1
 
interface Vlan125
ip address 10.10.25.3 255.255.255.0
no ip redirects
standby 6 i p 10.10.25 .1
 
interface Vlan126
ip address 10.10.40.3 255.255.255.0
no ip redirects
standby 8 i p 10.10.40 .1
 
interface Vlan511
ip address 172.1.2.46 255.255.255.252
ip rip send version 2
ip rip receive version 2
 
interface Vlan600
ip address 172.16.4.100 255.255.255.0
no ip redirects
standby 7 ip 172.16.4.21
 
router rip
network 172.16.0.0
network 172.17.0.0
 
ip classless
ip route 10.10.33.0 255.255.255.0 172.16.4.22 100
ip route 10.10.34.0 255.255.255.0 172.16.4.22 100
ip route 10.10.35.0 255.255.255.0 172.16.4.22 100
ip route 10.10.36.0 255.255.255.0 172.16.4.22 100
ip route 10.10.37.0 255.255.255.0 172.16.4.22 100
ip route 192.168.1.0 255.255.255.0 172.16.4.22 100
ip route 192.168.2.0 255.255.255.0 172.16.4.22 100
ip route 192.168.3.0 255.255.255.0 172.16.4.22 100
ip route 192.168.4.0 255.255.255.0 172.16.4.22 100
ip route 192.168.5.0 255.255.255.0 172.16.4.22 100
ip route 192.168.10.0 255.255.255.0 172.16.4.22 100
ip route 192.168.11.0 255.255.255.0 172.16.4.22 100
ip route 192.168.12.0 255.255.255.0 172.16.4.22 100
ip route 192.168.13.0 255.255.255.0 172.16.4.22 100
ip http server
 
line con 0
line vty 0 4
password
 
login
line vty 5 15
login
 
end