此配置是证券两个交换核心
配置也比较简单
简单的把环境描述一下
便于看配置
2 3号板子上的的四个口做port channel 绑定成了一个端口
分别是2/1 2/2 和3/1 3/2
6号板子上的1-24端口是下联二层交换机 ,端口做trunk
其余端口为空或者是链接小机或服务器 为access模式
vlan internal allocation policy ascending
!
interface Port-channel1
description eth-link main 4506 with backup 4506
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface GigabitEthernet2/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet2/2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet2/3
!
interface GigabitEthernet2/4
!
interface GigabitEthernet2/5
!
interface GigabitEthernet2/6
!
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet3/2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet3/3
!
interface Port-channel1
description eth-link main 4506 with backup 4506
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/1
!
interface GigabitEthernet1/2
!
interface GigabitEthernet2/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet2/2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet2/3
!
interface GigabitEthernet2/4
!
interface GigabitEthernet2/5
!
interface GigabitEthernet2/6
!
interface GigabitEthernet3/1
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet3/2
switchport trunk encapsulation dot1q
switchport mode trunk
channel-group 1 mode on
!
interface GigabitEthernet3/3
interface GigabitEthernet3/4
!
interface GigabitEthernet3/5
!
interface GigabitEthernet3/6
!
interface GigabitEthernet6/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/4
switchport trunk encapsulation dot1q
switchport mode trunk
!interface GigabitEthernet6/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/7
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/9
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/10
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/11
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/12
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/13
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/14
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/15
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/16
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/17
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/18
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/19
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/20
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/21
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/22
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/25
!
interface GigabitEthernet6/26
!
interface GigabitEthernet6/27
!
interface GigabitEthernet6/28
!
interface GigabitEthernet6/29
!
interface GigabitEthernet6/30
!
interface GigabitEthernet6/31
!
interface GigabitEthernet6/32
!
interface GigabitEthernet6/33
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/34
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/35
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/36
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/37
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/38
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/39
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/40
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/41
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/42
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/43
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/44
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/45
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/46
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/47
switchport access vlan 7
!
interface GigabitEthernet6/48
switchport access vlan 7
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.99.254 255.255.255.0
!
interface Vlan99
ip address 192.168.199.254 255.255.255.0
!
no ip http server
!
!
!
!
!
line con 0
stopbits 1
line vty 0 4
password cisco
no login
line vty 5 6
password cisco
no login
!
!
end
!
interface GigabitEthernet3/5
!
interface GigabitEthernet3/6
!
interface GigabitEthernet6/1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/3
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/4
switchport trunk encapsulation dot1q
switchport mode trunk
!interface GigabitEthernet6/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/6
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/7
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/8
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/9
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/10
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/11
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/12
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/13
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/14
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/15
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/16
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/17
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/18
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/19
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/20
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/21
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/22
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/23
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/24
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet6/25
!
interface GigabitEthernet6/26
!
interface GigabitEthernet6/27
!
interface GigabitEthernet6/28
!
interface GigabitEthernet6/29
!
interface GigabitEthernet6/30
!
interface GigabitEthernet6/31
!
interface GigabitEthernet6/32
!
interface GigabitEthernet6/33
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/34
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/35
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/36
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/37
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/38
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/39
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/40
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/41
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/42
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/43
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/44
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/45
switchport access vlan 2
spanning-tree portfast
!
interface GigabitEthernet6/46
switchport access vlan 99
spanning-tree portfast
!
interface GigabitEthernet6/47
switchport access vlan 7
!
interface GigabitEthernet6/48
switchport access vlan 7
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.99.254 255.255.255.0
!
interface Vlan99
ip address 192.168.199.254 255.255.255.0
!
no ip http server
!
!
!
!
!
line con 0
stopbits 1
line vty 0 4
password cisco
no login
line vty 5 6
password cisco
no login
!
!
end