Thứ Tư, 16 tháng 7, 2014

EtherChannel HSRP

hostname R1
!
license udi pid CISCO2911/K9 sn FTX1524K3EP
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.1 255.255.255.0
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 192.168.30.1 255.255.255.0
!
interface GigabitEthernet0/0.40
 encapsulation dot1Q 40
 ip address 192.168.40.1 255.255.255.0
!
interface GigabitEthernet0/1
 ip address 192.168.50.1 255.255.255.0
 duplex auto
 speed auto
 standby version 2
 standby 1 ip 192.168.50.254
 standby 1 priority 102
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
no cdp run
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
end
__________________________________________________________
hostname R2
!
license udi pid CISCO2911/K9 sn FTX1524KECC
!
spanning-tree mode pvst
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface GigabitEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.2 255.255.255.0
!
interface GigabitEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.2 255.255.255.0
!
interface GigabitEthernet0/0.30
 encapsulation dot1Q 30
 ip address 192.168.30.2 255.255.255.0
!
interface GigabitEthernet0/0.40
 encapsulation dot1Q 40
 ip address 192.168.40.2 255.255.255.0
!
interface GigabitEthernet0/1
 ip address 192.168.50.2 255.255.255.0
 duplex auto
 speed auto
 standby version 2
 standby 1 ip 192.168.50.254
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
end
__________________________________________________________
hostname Sw1
!
spanning-tree mode pvst
!
interface FastEthernet0/1
 channel-group 1 mode on
 switchport mode trunk
!
interface FastEthernet0/2
 channel-group 1 mode on
 switchport mode trunk
!
interface FastEthernet0/3
 channel-protocol lacp
 channel-group 3 mode active
 switchport mode trunk
!
interface FastEthernet0/4
 channel-protocol lacp
 channel-group 3 mode active
 switchport mode trunk
!
interface GigabitEthernet1/1
 switchport mode trunk
!
interface GigabitEthernet1/2
 switchport mode trunk
!
interface Port-channel 1
 switchport mode trunk
!
interface Port-channel 3
 switchport mode trunk
!
interface Vlan1
 no ip address
 shutdown
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
end
__________________________________________________________
hostname Sw2
!
spanning-tree mode pvst
!
interface FastEthernet0/1
 channel-group 1 mode on
 switchport mode trunk
!
interface FastEthernet0/2
 channel-group 1 mode on
 switchport mode trunk
!
interface FastEthernet0/3
channel-protocol pagp
 channel-group 2 mode desirable
 switchport mode trunk
!
interface FastEthernet0/4
channel-protocol pagp
 channel-group 2 mode desirable
 switchport mode trunk
!
interface FastEthernet0/5
 switchport access vlan 10
 switchport mode access
!
interface FastEthernet0/6
 switchport access vlan 20
 switchport mode access
!
interface Port-channel 1
 switchport mode trunk
!
interface Port-channel 2
 switchport mode trunk
!
interface Vlan1
 no ip address
 shutdown
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end
__________________________________________________________
hostname Sw3
!
spanning-tree mode pvst
!
interface FastEthernet0/1
channel-protocol pagp
 channel-group 2 mode desirable
 switchport mode trunk
!
interface FastEthernet0/2
channel-protocol pagp
 channel-group 2 mode desirable
 switchport mode trunk
!
interface FastEthernet0/3
 channel-protocol lacp
 channel-group 3 mode active
 switchport mode trunk
!
interface FastEthernet0/4
 channel-protocol lacp
 channel-group 3 mode active
 switchport mode trunk
!
interface FastEthernet0/5
 switchport access vlan 30
 switchport mode access
!
interface FastEthernet0/6
 switchport access vlan 40
 switchport mode access
!
interface Port-channel 2
 switchport mode trunk
!
interface Port-channel 3
 switchport mode trunk
!
interface Vlan1
 no ip address
 shutdown
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
end
__________________________________________________________
hostname Sw4
!
interface Vlan1
 no ip address
 shutdown
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
end

Không có nhận xét nào:

Đăng nhận xét