etherchannel

LACP
 interface range fa0/23-24
  channel-group 1 mode active

PAGP
 interface range fa023-24
  channel-group 1 mode desirable

 interfae range fa0/23-24
  channel-group 1 mode on

===============================
 interface port-channel 1

확인
 show etherchannel 1 summary
 show ip interface brief
 
-------------------------------
switchport
 L2 (access, trunk)
 L3 (routed) ==> no swtichport, ip routing
 
===============================
L2 etherchannel
 interface range fa0/23-24
  switchport mode trunk
  channel-group 1 mode active
 
L3 etherchannel
 interface range fa0/23-24
  no switchport
  channel-group 1 mode active

 interface port-channel 1
  ip address 10.1.12.1 255.255.255.0

config)#monitor session 1 source interface fa0/1 both
config)#monitor session 1 destination interface fa0/2

Switch(config)# port-channel load-balance src-mac (source)
Switch(config)# port-channel load-balance drc-mac (destination)

=================================
실습, lab 6-1

sw13(config)#interface range fa0/23-24
sw13(config-if-range)#switchport trunk encapsulation dot1q
sw13(config-if-range)#switchport mode trunk
sw13(config-if-range)#no shut
sw13(config-if-range)#exit
sw13(config)#vlan 10
sw13(config-vlan)#name vlan_10
sw13(config-vlan)#exit
sw13(config)#vlan 20
sw13(config-vlan)#name vlan_20
sw13(config-vlan)#exit
sw13(config)#vlan 30
sw13(config-vlan)#name vlan_30
sw13(config-vlan)#exit
sw13(config)#exit

show interface trunk
show spanning-tree vlan 10
(Bloking port 확인)

sw13(config)#interface range fa0/23-24
sw13(config-if-range)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1

fa0/23, fa0/24 ==> po1, bloking port 사라짐

1      Po1(SU)         LACP      Fa0/23(P)   Fa0/24(P)  

----------------------------------

실습, lab 6-3
==L3 Etherchannle ====

초기화
sw13(config)#default interface range fa0/23-24
sw13(config)#no interface port-channel 1

sw13(config)#interface range fa0/23-24
sw13(config-if-range)#no switchport
sw13(config-if-range)#channel-group 1 mode desirable

sw13(config)#interface port-channel 1
sw13(config-if)#ip address 10.1.12.1 255.255.255.0
sw13(config-if)#exit
sw13(config)#interface lo 0
sw13(config-if)#ip address 1.1.1.1 255.255.255.0
sw13(config-if)#exit
sw13(config)#exit

sw13(config)#ip routing
sw13(config)#router eigrp 109
sw13(config-router)#network 1.1.1.0
sw13(config-router)#network 10.1.12.0
sw13(config-router)#exit


-----------------------------------
교재 Advanced STP


STP(spanning-tree protocol) (802.1d) PVST
  (IEEE)
  ==> 1. 시간(RSTP) 802.1W
  ==> 2. CPU(MST) 802.1S
  (CISCO)
  ==> 1. 시간 portfast, uplinkfast, bakbonfast

1. portfast(listen, learn)생략 30 Sec ==> 0 Sec

  config-if)#spanning-tree portfast
  확인
  show spanning-tree summary

2. uplink fast (rootport, blocking port를 가지고있는 switch에서 셋팅) 30 Sec ==> 0 Sec

  config)#spanning-tree uplinkfast
  확인
  show spanning-tree summary

3. backbon fast (관련된 모든 스위치) 50 Sec ==> 30 Sec (maxage time 생략)
 
  config)#spanning-tree backbonfast
  확인
  show spanning-tree summary
 

-------------------------------------

실습

sw13(config)#interface range fa0/22-23
sw13(config-if-range)#switchport trunk encapsulation dot1q
sw13(config-if-range)#switchport mode trunk
sw13(config-if-range)#no shut
sw13(config-if-range)#exit
sw13(config)#interface fa0/1
sw13(config-if)#switchport access vlan 10
sw13(config-if)#exit

b5(config)#interface fa0/0
b5(config-if)#ip address 172.16.10.1 255.255.255.0
b5(config-if)#no shut

sw13(config)#spanning-tree vlan 10 root primary






2008/06/13 21:46 2008/06/13 21:46
dhappy 이 작성.

STP (802.1D) PVST

 1. RSTP
    root port
    designated port
    alternative port (root port) - 원래 blocking 이지만 alternative로 만들어둠
    backup port (designated port)

    edge port (listen , learn) 생략

    config)#spanning-tree mode rapid-pvst

 2. MSTP
   
    MST (name, revision, group)
    D1
      spanning-tree mode mst ==> (RSTP 자동 enable)
      spanning-tree mst configuration  
        name BCMSN
        revision 1
        instance 1 vlan 1-500
        instance 2 vlan 500-1000
     
      show spanning-tree mst 1
      show spanning-tree mst 2

      spannign-tree mst 1 root primary
      spanning-tree mst 2 root secondary
     
    STP 1000 ===> STP 2개

      show spanning-tree mst configuration
     



-----------------

IOS & Catos 차이

IOS

config)#vlan 10
config-vlan)#name 10f
show vlan

interface fa0/1
  switchport trunk encapsulation dot1q     -- 802.1Q, isl 둘다 지원
  switchport trunk encapsulation isl
  switchport mode trunk

vtp domain BCMSN
vtp mode server

show spanning-tree vlan 1

Catos

#vlan database
-vlan)#vlan 10 name 10F

show vlan-switch

interface fa0/1             -- 802.1Q만 지원
  switchport mode trunk
  no shut

vlan database
  vtp domain BCMSN
  vtp server

  show spanning-tree vlan 1 brief

-----------------

실습 LAB _ 05


sw13(config)#interface fa0/23
sw13(config-if)#switchport trunk encapsulation isl
sw13(config-if)#switchport mode trunk
sw13(config-if)#no shut
sw13(config-if)#exit
sw13(config)#interface fa0/24
sw13(config-if)#switchport trunk encapsulation isl
sw13(config-if)#switchport mode trunk
sw13(config-if)#no shut

sw13#show interface trunk

sw13(config)#vtp domain BCMSN
Domain name already set to BCMSN.
sw13(config)#vtp mode server
Device mode already VTP SERVER.

sw13(config)#vlan 10
sw13(config-vlan)#name VLAN_10
sw13(config-vlan)#exit
sw13(config)#vlan 20
sw13(config-vlan)#name VLAN_20
sw13(config-vlan)#exit
sw13(config)#vlan 30
sw13(config-vlan)#name VLAN_30
sw13(config-vlan)#exit
sw13(config)#vlan 40
sw13(config-vlan)#name VLAN_40
sw13(config-vlan)#exit
sw13(config)#vlan 50
sw13(config-vlan)#name VLAN_50
sw13(config-vlan)#exit
sw13(config)#vlan 60
sw13(config-vlan)#name VLAN_60
sw13(config-vlan)#exit

sw13(config)#spanning-tree mode rapid-pvst

sw13(config)#spanning-tree mode mst
sw13(config)#spanning-tree mst configuration
sw13(config-mst)#name BCMSN
sw13(config-mst)#revision 1
sw13(config-mst)#instance 1 vlan 10, 20, 30
sw13(config-mst)#instance 2 vlan 40, 50, 60
sw13(config-mst)#exit
sw13(config)#spanning-tree mst 1 root primary
sw13(config)#exit

sw13#show spanning-tree mst 1
sw13#show spanning-tree mst configuration
   
sw13(config)#interface fa0/24
sw13(config-if)#spanning-tree mst 2 cost 20000   (default 200000)
(mst 2 FA0/24 Blocking -> FA0/23 Blocking)



================
교재
EhterChannel

trunk
  802.1Q (IEEE)
  ISL (CISCO)

etherchannel
  LACP (IEEE) 802.3ad
  PAGP (CISCO)

interface range fa0/23-24
  channel-protocol lacp
  channel-group 1 mode (active, passive)
 
interface range fa0/23-24
  channel-protocol pagp
  channel-group 1 mode (desirable, auto)

interface range fa0/23-24
  channel-group 1 mode on



sw13(config)#interface range fa0/23-24
sw13(config-if-range)#channel-protocol lacp
sw13(config-if-range)#channel-group 1 mode active
Creating a port-channel interface Port-channel 1

sw13#show spanning-tree mst 2
Po1              Root FWD 100000    128.56   P2p

cost도 100000으로 줄어들었음

확인
show etherchannel 1 summary
interface port-channel 1

삭제
default interface range fa0/23-24
(configuration 삭제)
no interface port-channel 1
(논리적 인터페이스 삭제)



-------------
Multilayer Switch(L3, L2)
  switchport mode access
  switchport mode trunk
  routed port (no switchport) => switchport


  sw13(config)#interface fa0/23
  sw13(config-if)#no switchport   (*)
  sw13(config-if)#ip address 10.1.12.1 255.255.255.0
  sw13(config-if)#exit

  ip routing  (*)
  router eigrp 109


확인
show interface status

실습 LAB 6-2

sw13(config)#interface lo 0
sw13(config-if)#ip address 1.1.1.1 255.255.255.0
sw13(config-if)#exit

sw13(config)#interface fa0/23
sw13(config-if)#no switchport
sw13(config-if)#ip address 10.1.12.1 255.255.255.0
sw13(config-if)#exit

sw13(config)#ip routing
sw13(config)#router eigrp 109
sw13(config-router)#network 1.1.1.0 0.0.0.255
sw13(config-router)#network 10.1.12.0 0.0.0.255
sw13(config-router)#exit

확인
show ip route
ping 2.2.2.2

실습 LAB 6-3

L2 etherchannel
Interface range fa0/23-24
  channel-group 1 mode active
  switchport trunk encapsulation dot1q
  switchport mode trunk

L3 etherchannel
Interface range fa0/23-24
  no swithport
  channel-group 1 mode active
Interface port-channel 1
  ip add 10.1.12.1 255.255.255.0

ip routing
router eigrp 109
  network 10.1.12.0 0.0.0.255

2008/06/12 19:50 2008/06/12 19:50
dhappy 이 작성.