Catalyst3550とCatalyst2950でVLANをMHSRP、STP(mode mst)、EtherChannelを用いて冗長化して構成する


デフォルトGW 192.168.11.1、各VLAN間の通信制限なし。
VLAN10 192.168.12.0/24
 ->2950をEtherChannelで接続し冗長化。STP&Trunkにて経路断の冗長化
 サーバはbonding(alb)で別々の2950に接続。
VLAN20 192.168.13.0/24
 ->2950をEtherChannelで接続し冗長化。STP&Trunkにて経路断の冗長化
 サーバはbonding(alb)で別々の2950に接続。
VLAN30 192.168.14.0/24
 ->2950の接続なし、3550だけで構成。Trunkにて経路断の冗長化
 サーバはbonding(alb)で別々の3550に接続。

3550_1に投入したコマンド

vlan database
vlan 10 name vlan10
vlan 20 name vlan20
vlan 30 name vlan30
exit

configure terminal
ip routing
interface vlan 1
no ip address
no shutdown
exit
interface vlan 10
ip address 192.168.12.2 255.255.255.0
standby 10 ip 192.168.12.1
standby 10 priority 100
no shutdown
exit
interface vlan 20
ip address 192.168.13.2 255.255.255.0
standby 10 ip 192.168.13.1
standby 10 priority 105
standby 10 preempt
no shutdown
exit
interface vlan 30
ip address 192.168.14.2 255.255.255.0
standby 10 ip 192.168.14.1
standby 10 priority 105
no shutdown
exit
interface FastEthernet 0/1
no switchport
ip address 192.168.11.202 255.255.255.0
standby 10 ip 192.168.11.201
standby 10 priority 105
standby 10 preempt
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 192.168.11.1
int range f 0/2 - 16
switchport mode access
switchport access vlan 10
exit
int range f 0/17 - 32
switchport mode access
switchport access vlan 20
exit
int range f 0/33 - 46
switchport mode access
switchport access vlan 30
exit
int range f 0/47 - 48
switchport mode access
switchport access vlan 1
switchport trunk encapsulation dot1q
switchport mode trunk
exit
interface range fastEthernet 0/3 - 4
channel-group 1 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 2 mode active
exit
interface range fastEthernet 0/17 - 18
channel-group 3 mode active
exit
interface range fastEthernet 0/19 - 20
channel-group 4 mode active
exit
spanning-tree mode mst
interface range fastEthernet 0/47 - 48
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po1
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po2
spanning-tree cost 48
spanning-tree port-priority 48
exit
interface Po3
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po4
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit
3550_2に投入したコマンド

vlan database
vlan 10 name vlan10
vlan 20 name vlan20
vlan 30 name vlan30
exit

configure terminal
ip routing
interface vlan 1
no ip address
no shutdown
exit
interface vlan 10
ip address 192.168.12.3 255.255.255.0
standby 10 ip 192.168.12.1
standby 10 priority 105
standby 10 preempt
no shutdown
exit
interface vlan 20
ip address 192.168.13.3 255.255.255.0
standby 10 ip 192.168.13.1
standby 10 priority 100
no shutdown
exit
interface vlan 30
ip address 192.168.14.3 255.255.255.0
standby 10 ip 192.168.14.1
standby 10 priority 105
standby 10 preempt
no shutdown
exit
interface FastEthernet 0/1
no switchport
ip address 192.168.11.203 255.255.255.0
standby 10 ip 192.168.11.201
standby 10 priority 100
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 192.168.11.1
int range f 0/2 - 16
switchport mode access
switchport access vlan 10
exit
int range f 0/17 - 32
switchport mode access
switchport access vlan 20
exit
int range f 0/33 - 46
switchport mode access
switchport access vlan 30
exit
int range f 0/47 - 48
switchport mode access
switchport access vlan 1
switchport trunk encapsulation dot1q
switchport mode trunk
exit
interface range fastEthernet 0/3 - 4
channel-group 1 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 2 mode active
exit
interface range fastEthernet 0/17 - 18
channel-group 3 mode active
exit
interface range fastEthernet 0/19 - 20
channel-group 4 mode active
exit
spanning-tree mode mst
interface range fastEthernet 0/47 - 48
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po1
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po2
spanning-tree cost 48
spanning-tree port-priority 48
exit
interface Po3
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po4
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit
VLAN10の2950_1に投入したコマンド

vlan database
vlan 10 name vlan10
exit

config t
interface vlan 10
ip address 192.168.12.4 255.255.255.0
no shutdown
int range f 0/1 - 48
switchport mode access
switchport access vlan 10
exit
interface range fastEthernet 0/1 - 2
channel-group 1 mode active
exit
interface range fastEthernet 0/3 - 4
channel-group 2 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 3 mode active
exit
spanning-tree mode mst
interface Po1
spanning-tree cost 64
spanning-tree port-priority 64
exit
interface Po2
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po3
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit
VLAN10の2950_2に投入したコマンド

vlan database
vlan 10 name vlan10
exit

config t
interface vlan 10
ip address 192.168.12.5 255.255.255.0
no shutdown
int range f 0/1 - 48
switchport mode access
switchport access vlan 10
exit
interface range fastEthernet 0/1 - 2
channel-group 1 mode active
exit
interface range fastEthernet 0/3 - 4
channel-group 2 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 3 mode active
exit
spanning-tree mode mst
interface Po1
spanning-tree cost 64
spanning-tree port-priority 64
exit
interface Po2
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po3
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit
VLAN20の2950_3に投入したコマンド

vlan database
vlan 20 name vlan20
exit

config t
interface vlan 20
ip address 192.168.13.4 255.255.255.0
no shutdown
int range f 0/1 - 48
switchport mode access
switchport access vlan 20
exit
interface range fastEthernet 0/1 - 2
channel-group 1 mode active
exit
interface range fastEthernet 0/3 - 4
channel-group 2 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 3 mode active
exit
spanning-tree mode mst
interface Po1
spanning-tree cost 64
spanning-tree port-priority 64
exit
interface Po2
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po3
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit
VLAN20の2950_4に投入したコマンド

vlan database
vlan 20 name vlan20
exit

config t
interface vlan 20
ip address 192.168.13.5 255.255.255.0
no shutdown
int range f 0/1 - 48
switchport mode access
switchport access vlan 20
exit
interface range fastEthernet 0/1 - 2
channel-group 1 mode active
exit
interface range fastEthernet 0/3 - 4
channel-group 2 mode active
exit
interface range fastEthernet 0/5 - 6
channel-group 3 mode active
exit
spanning-tree mode mst
interface Po1
spanning-tree cost 64
spanning-tree port-priority 64
exit
interface Po2
spanning-tree cost 16
spanning-tree port-priority 16
exit
interface Po3
spanning-tree cost 48
spanning-tree port-priority 48
exit
exit