D-H,appy

관리자 글쓰기
블로그 »
블로그 »

# IEEE 802.1d STP 포트 상태

1) Blocking (BLK)

 - 브릿징 루프를 해결하기 위해서 프레임 송수신이 불가능한 포트 차단 상태
 - BPDU만 수신 가능
 - BPDU 송신 불가능
 - 프레임 송수신 불가능
 - Max Age Time : 20초

2) Listening (LIS)

 - Blocking 다음 단계에 시작하거나, 사용하지 않는 포트에 노드가 연결될 경우 시작
 - 루프 체크 단계
 - BPDU만 수신 가능
 - BPDU 송신 불가능
 - 프레임 송수신 불가능
 - Forward Delay Time : 15초

3) Learning (LRN)

 - Mac 주소 학습 단계
 - BPDU 송수신 가능
 - 프레임 송수신 불가능
 - Forward Delay Time : 15초

4) Forwarding (FWD)

 - 프레임 송수신 가능 상태
 - BPDU 송수신 가능

[참고] Portfast

 - 스위치 포트에 PC/라우터(플러딩이 실시되지 않는 장비)를 연결할 경우
    Listening 단계가 불필요하기 때문에 Portfast 기능을 사용하면 바로 Forwarding으로
    이전하게 된다.

 - Portfast 설정된 스위치 포트에 스위치/허브(플러딩 장비)가 연결될 경우
   Listening 단계가 삭제되었기 때문에 브릿징 루프가 발생될 수 있다.

Ex) Portfast 이전 디버깅

SW1[Fa1/9] <----------- [Fa0/0]R3

SW1#debug spanning-tree events
Spanning Tree event debugging is on

SW1(config)#int fa1/9
SW1(config-if)#no shutdown
SW1(config-if)#
*Mar  1 00:07:50.039: STP: VLAN1 Fa1/9 -> listening

*Mar  1 00:08:05.039: STP: VLAN1 Fa1/9 -> learning

*Mar  1 00:08:20.039: STP: VLAN1 Fa1/9 -> forwarding


Ex) Portfast 설정 이후 디버깅

SW1(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single host.
 Connecting hubs, concentrators, switches,  bridges, etc.to this interface
 when portfast is enabled, can cause temporary spanning tree loops.
 Use with CAUTION

%Portfast has been configured on FastEthernet1/9 but will only
 have effect when the interface is in a non-trunking mode.
SW1(config-if)#switchport mode access

SW1(config-if)#no shut

*Mar  1 00:09:17.639: STP: VLAN1 Fa1/9 ->jump to forwarding from blocking


# PVST (Per VLAN Spanning-Tree)

 - VLAN 당 STP를 제공하는 서비스

vlan 11 <- STP
vlan 12 <- STP
vlan 13 <- STP
vlan 14 <- STP

 - 스위치에서 PVST 서비스를 이용하여 VLAN 로드 분산이 가능하다.


SW2(config)# spanning-tree vlan 11 priority 4096
SW3(config)# spanning-tree vlan 11 priority 16384

SW3(config)# spanning-tree vlan 12 priority 4096
SW2(config)# spanning-tree vlan 12 priority 16384

SW1# show spanning-tree vlan 11 brief <- SW1 Fa1/15 BLK
SW1# show spanning-tree vlan 12 brief <- SW1 Fa1/10 BLK

SW1#show spanning-tree vlan 11 brief

VLAN11
  Spanning tree enabled protocol ieee
  Root ID    Priority    4096
             Address     c401.01e0.0001
             Cost        19
             Port        51 (FastEthernet1/10)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c400.01e0.0001
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10     128.51   128    19 FWD     0  4096 c401.01e0.0001 128.52
FastEthernet1/15     128.56   128    19 BLK    19 16384 c402.01e0.0001 128.55

SW1#show spanning-tree vlan 12 brief

VLAN12
  Spanning tree enabled protocol ieee
  Root ID    Priority    4096
             Address     c402.01e0.0002
             Cost        19
             Port        56 (FastEthernet1/15)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c400.01e0.0002
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10     128.51   128    19 BLK    19 16384 c401.01e0.0002 128.52
FastEthernet1/15     128.56   128    19 FWD     0  4096 c402.01e0.0002 128.55


 

2008/06/04 03:12 2008/06/04 03:12

(go to top)

블로그 »

# VTP(VLAN Trunk Protocol)

 - Cisco에서 개발한 프로토콜, Cisco 장비에서만 동작 가능하다.
 - VTP란 트렁크로 구성된 환경에서 스위치간에 VLAN 정보를 공유(Share)하는 기능
 - 단, VLAN 생성/삭제/수정에 대한 정보만 공유하며, 포트를 Access한 내용을 공유 X

 - VTP 사용 조건

 1) 트렁크 구간(Access X)
 2) VTP 도메인 일치
 3) VTP 패스워드 일치 (인증)

 - VLAN 정보 공유 방법 : 'VTP Configuration Revision' 값이 높은 VTP 정보로 일치

 - VTP 모드 3가지 유형

1) VTP Server (기본 모드)

 - VLAN 생성/수정/삭제 가능 <- VLAN 데이터베이스 관리 권한 O
 - VLAN 정보를 전파(광고) O
 - VLAN 정보를 일치(대체) O
 - VLAN 정보를 전달(중계) O
 - Standard VLAN(1~1005) 생성 가능

2) VTP Client

 - VLAN 생성/수정/삭제 불가능
 - VLAN 정보를 전파(광고) X
 - VLAN 정보를 일치(대체) O
 - VLAN 정보를 전달(중계) O
 - 단, 'VTP Configuration Revision' 값이 높을때만 일치시킨다.

3) VTP Transparent (= VTP Disable)

 - VLAN 생성/수정/삭제 가능 <- VLAN 데이터베이스 관리 권한 O
 - VLAN 정보를 전파(광고) X
 - VLAN 정보를 일치(대체) X
 - VLAN 정보를 전달(중계) O
 - Standard VLAN(1~1005) & Extended VLAN(1006~4094) 생성 가능
 - VTP Configuration Revision 값이 항상 '0'으로 동작한다.
 - VTP Configuration Revision 값을 '0'으로 초기화할때 사용한다.


# VTP 설정 방법

1. Cisco IOS

Switch(config)# vtp domain CCNA
Switch(config)# vtp password cisco
Switch(config)# vtp mode [server|client|transparent]

2. Cat OS

Switch# vlan database
Switch(vlan)# vtp domain CCNA
Switch(vlan)# vtp password cisco
Switch(vlan)# vtp [server|client|transparent]
Switch(vlan)# exit

Ex) SW1은 VTP Server이며, SW2는 VTP Client로 구성하여, SW2는 SW1에서 생성한
     VLAN 15~17까지를 공유가 되도록하여라.

 - VTP Domain : CCNA
 - VTP Password : cisco

SW1#vlan database
SW1(vlan)#vtp domain CCNA
SW1(vlan)#vtp pass cisco
SW1(vlan)#vtp server
SW1(vlan)#exit

SW2#vlan database
SW2(vlan)#vtp dom CCNA
SW2(vlan)#vtp pass cisco
SW2(vlan)#vtp client
SW2(vlan)#exit

SW1# vlan database
SW1(vlan)# vlan 15
SW1(vlan)# vlan 16
SW1(vlan)# vlan 17
SW1(vlan)# exit

SW2#show vlan-switch brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                             active    Fa1/0, Fa1/2, Fa1/3, Fa1/4
                                                       Fa1/5, Fa1/6, Fa1/7, Fa1/8
                                                       Fa1/9, Fa1/10, Fa1/12, Fa1/13
                                                       Fa1/14, Fa1/15
11   VLAN_A                           active   
12   VLAN_B                           active   
13   VLAN_C                           active   
15   VLAN0015                         active   
16   VLAN0016                         active   
17   VLAN0017                         active   
1002 fddi-default                     active   
1003 token-ring-default             active   
1004 fddinet-default                  active   
1005 trnet-default                    active

SW1#show vtp status
VTP Version                     : 2
Configuration Revision          : 2
Maximum VLANs supported locally : 256
Number of existing VLANs        : 11
VTP Operating Mode              : Server
VTP Domain Name                 : CCNA
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x97 0x8C 0x40 0xDC 0x73 0xA3 0x01 0xF2
Configuration last modified by 13.13.1.1 at 3-1-02 00:44:18
Local updater ID is 13.13.1.1 on interface Vl1 (lowest numbered VLAN interface found)

SW2#show vtp status
VTP Version                     : 2
Configuration Revision          : 2
Maximum VLANs supported locally : 256
Number of existing VLANs        : 11
VTP Operating Mode              : Client
VTP Domain Name                 : CCNA
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x97 0x8C 0x40 0xDC 0x73 0xA3 0x01 0xF2
Configuration last modified by 13.13.1.1 at 3-1-02 00:44:18


SW1# vlan database
SW1(vlan)# no vlan 15
SW1(vlan)# no vlan 16
SW1(vlan)# no vlan 17
SW1(vlan)# exit

SW2#show vlan-switch brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                            active    Fa1/0, Fa1/2, Fa1/3, Fa1/4
                                                     Fa1/5, Fa1/6, Fa1/7, Fa1/8
                                                     Fa1/9, Fa1/10, Fa1/12, Fa1/13
                                                     Fa1/14, Fa1/15
11   VLAN_A                           active   
12   VLAN_B                           active   
13   VLAN_C                           active   
1002 fddi-default                     active   
1003 token-ring-default             active   
1004 fddinet-default                 active   
1005 trnet-default                    active


Ex) SW1은 VTP Server이며, SW2을 VTP Transparent로 변경하여라.

SW2# vlan database
SW2(vlan)# vtp transparent
SW2(vlan)# exit

SW2#show vtp status       
VTP Version                     : 2
Configuration Revision          : 0
Maximum VLANs supported locally : 256
Number of existing VLANs        : 8
VTP Operating Mode              : Transparent
VTP Domain Name                 : CCNA
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x7E 0xA6 0x7B 0xED 0x69 0x77 0x11 0x27
Configuration last modified by 13.13.1.1 at 3-1-02 00:48:41

 - SW1(VTP Server)에서 vlan 20~21 생성
 - SW2(VTP Transparent)에서 vlan 30~31 생성

SW1#show vlan-switch brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/1, Fa1/2, Fa1/3, Fa1/4
                                                Fa1/5, Fa1/6, Fa1/7, Fa1/8
                                                Fa1/9, Fa1/11, Fa1/12, Fa1/13
                                                Fa1/14, Fa1/15
11   VLAN_A                           active   
12   VLAN_B                           active   
13   VLAN_C                           active   
20   VLAN0020                         active   
21   VLAN0021                         active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   

SW2#show vlan-switch brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0, Fa1/2, Fa1/3, Fa1/4
                                                Fa1/5, Fa1/6, Fa1/7, Fa1/8
                                                Fa1/9, Fa1/10, Fa1/12, Fa1/13
                                                Fa1/14, Fa1/15
11   VLAN_A                           active   
12   VLAN_B                           active   
13   VLAN_C                           active   
30   VLAN0030                         active   
31   VLAN0031                         active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   
SW2#



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





# BPDU (Bridge Protocol Data Unit)

 - IEEE 802.1d STP가 지원되는 모든
   스위치들은 생성 및 전송 가능

 - 멀티케스트 2초 주기 전송 실시

 - BPDU 내용

1) Bridge-ID
2) Cost (10M=100, 100M=19, 1G=4, 10G=2)
3) Port-ID (128.x)
-------------------- 비교/선출 단위
4) Hello Time : 2초
5) Forward Delay Time : 15초
6) Max Age Time : 20초

 - Root Bridge가 선출되면 Root Bridge만
   Configuration BPDU를 생성하여 전송 실시


# IEEE 802.1d Spanning-Tree Protocol

 Bridge-ID : 64bit

 1) Priority : 16bit (기본값 : 32768)
 2) Mac Address : 48bit

1. Root Bridge 선출 (Bridge-ID 이용)

 1) Priority가 가장 낮은 스위치로 선출
 2) MAC 주소가 가장 낮은 스위치로 선출

2. 포트 선정 (Cost 값 이용)

 1) Root Port(RP) : BPDU 수신 포트
 2) Designated Port(DP) : BPDU 송신 포트

3. Blocking 포트 선정

 1) Cost 값이 높은 구간 포트 차단
 2) Sender Bridge ID가 높은 구간 포트 차단
 3) Port-ID가 높은 구간 포트 차단

SW1#show spanning-tree vlan 1 brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    32768
             Address     c400.0bb8.0000
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c400.0bb8.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10     128.51   128    19 FWD     0 32768 c400.0bb8.0000 128.51
FastEthernet1/15     128.56   128    19 FWD     0 32768 c400.0bb8.0000 128.56


 - SW2를 Root Bridge로 선출하며, SW1 Fa1/15를 Blocking 하여라.

SW2(config)# spanning-tree vlan 1 priority 4096
SW3(config)# spanning-tree vlan 1 priority 16384


SW2#show spanning-tree vlan 1 brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    4096
             Address     c401.0bb8.0000
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    4096
             Address     c401.0bb8.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/11     128.52   128    19 FWD     0  4096 c401.0bb8.0000 128.52
FastEthernet1/12     128.53   128    19 FWD     0  4096 c401.0bb8.0000 128.53

SW1#show spanning-tree vlan 1 brief

VLAN1
  Spanning tree enabled protocol ieee
  Root ID    Priority    4096
             Address     c401.0bb8.0000
             Cost        19
             Port        51 (FastEthernet1/10)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32768
             Address     c400.0bb8.0000
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time 0 

Interface                                   Designated
Name                 Port ID Prio Cost  Sts Cost  Bridge ID            Port ID
-------------------- ------- ---- ----- --- ----- -------------------- -------
FastEthernet1/10     128.51   128    19 FWD     0  4096 c401.0bb8.0000 128.52
FastEthernet1/15     128.56   128    19 BLK    19 16384 c402.0bb8.0000 128.55


2008/06/02 16:59 2008/06/02 16:59

(go to top)

블로그 »

# VLAN

  - 사용자가 증가(이더넷 장치)되면 브로드케스트 플러딩양이 증가되기 때문에 LAN 구간
     전송 장비 및 시스템 장비 성능을 저하시키는 문제가 있다.

  - 스위치 모든 포트는 기본적으로 VLAN 1 브로드케스트 도메인에 소속되어 동작하기
    때문에 브로드케스트 프레임을 수신한 스위치는 VLAN 1 도메인 지역으로 전체
    플러딩을 실시한다.

 - 이러한 문제는 스위치에서 VLAN을 구성하면 해결이 가능하다.

 - VLAN 구성 장점

 1) 증가되는 브로드케스트 플러딩 범위를 최소화하여 브로드케스트양을 줄인다.
 2) 서로 다른 VLAN은 서로 다른 브로드케스트 도메인이기 때문에 접근이 불가능하다.
     그래서 보안적인 요소로 사용할 수 있다.
 3) Spanning-Tree Protocol과 함께 사용하여 VLAN 로드 분산이 가능하다.
 4) 관리상 효율적이며, 이동성이 강하다.

 - VLAN 데이터 베이스 정보 확인 (VLAN 1, 1002~1005는 기본적으로 구성되어 있음)

SW1#show vlan-switch brief (실제 스위치에서는 show vlan brief)

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                             active    Fa1/0, Fa1/1, Fa1/2, Fa1/3
                                                      Fa1/4, Fa1/5, Fa1/6, Fa1/7
                                                      Fa1/8, Fa1/9, Fa1/10, Fa1/11
                                                     Fa1/12, Fa1/13, Fa1/14, Fa1/15
1002 fddi-default                     active   
1003 token-ring-default              active   
1004 fddinet-default                  active   
1005 trnet-default                    active   

 - VLAN 데이테베이스 정보는 스위치 Flash 메모리에 별도로 저장되어 관리한다.


# VLAN 구성 단계

 1. VLAN 생성
 2. 생성한 VLAN에 해당 포트를 소속시킨다.


# VLAN 생성 및 삭제

1. Cisco IOS 설정 방법

 Switch(config)# vlan 11
 Switch(config-vlan)# name VLAN_A
 Switch(config-vlan)# vlan 12
 Switch(config-vlan)# name VLAN_B

 Switch(config)# no vlan 11
 Switch(config)# no vlan 12

 - 기본이름을 이용하여 한번에 VLAN 11~15까지 생성 및 삭제

 Switch(config)# vlan 11-15

 Switch(config)# no vlan 11-15

 - 기본이름을 이용하여 한번에 VLAN 11,13,15까지 생성 및 삭제

 Switch(config)# vlan 11,13,15

 Switch(config)# no vlan 11,13,15


2. Cat OS 설정 방법

Switch# vlan database
Switch(vlan)# vlan 11 name VLAN_A
Switch(vlan)# vlan 12 name VLAN_B
Switch(vlan)# exit

Switch# vlan database
Switch(vlan)# no vlan 11
Switch(vlan)# no vlan 12
Switch(vlan)# exit

SW1#vlan database
SW1(vlan)#vlan 11 name VLAN_A
VLAN 11 added:
    Name: VLAN_A
SW1(vlan)#vlan 12 name VLAN_B
VLAN 12 added:
    Name: VLAN_B
SW1(vlan)#vlan 13 name VLAN_C
VLAN 13 added:
    Name: VLAN_C
SW1(vlan)#exit
APPLY completed.
Exiting....

SW1#show vlan-switch brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0, Fa1/1, Fa1/2, Fa1/3
                                                Fa1/4, Fa1/5, Fa1/6, Fa1/7
                                                Fa1/8, Fa1/9, Fa1/10, Fa1/11
                                                Fa1/12, Fa1/13, Fa1/14, Fa1/15
11   VLAN_A                           active   
12   VLAN_B                           active   
13   VLAN_C                           active   
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   


2. VLAN으로 해당 포트 소속 설정 (Access 설정)

VLAN 11 : Fa1/1, Fa1/3 ~ 5
VLAN 12 : Fa1/12 ~ 13

SW1(config)# int range fa1/1 , fa1/3 - 5
SW1(config-if-range)# switchport mode access <- 해당 포트를 싱글 호스트로 변경 설정
SW1(config-if-range)# switchport access vlan 11
SW1(config-if-range)# int range fa1/12 - 13
SW1(config-if-range)# switchport mode access
SW1(config-if-range)# switchport access vlan 12

SW1#show vlan-switch brief 

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                              active    Fa1/1, Fa1/2, Fa1/6, Fa1/7
                                                       Fa1/8, Fa1/9, Fa1/10, Fa1/11
                                                      Fa1/14, Fa1/15
11   VLAN_A                           active    Fa1/1, Fa1/3, Fa1/4, Fa1/5
12   VLAN_B                           active    Fa1/12, Fa1/13
13   VLAN_C                           active   
1002 fddi-default                     active   
1003 token-ring-default              active   
1004 fddinet-default                  active   
1005 trnet-default                    active   


3. 트렁크 구성

 - 스위치와 스위치를 VLAN 개수만큼 Access을 실시하면 확장성 문제가 발생되므로
    트렁크를 구성하여 확장성을 보장시킨다.

 - 트렁크 : 스위치간에 VLAN 프레임을 전송할 때 VLAN-ID를 태킹할때 사용하는 프로로콜

 - Cisco ISL : Cisco Catalyst 스위치에서만 동작 가능하며, 2950 씨리즈에는 지원 안됨
 - IEEE 802.1q : IEEE에서 개발한 표준 트렁크 프로토콜 (dot1q)

SW1(config)# int fa1/10
SW1(config-if)# switchport trunk encapsulation dot1q <- IEEE 802.1q로 태깅 실시
SW1(config-if)# switchport mode trunk <- 트렁크 포트로 변경

SW2(config)# int fa1/11
SW2(config-if)# switchport trunk encapsulation dot1q <- IEEE 802.1q로 태깅 실시
SW2(config-if)# switchport mode trunk <- 트렁크 포트로 변경

SW1,SW2# show interface trunk


SW1#show interfaces trunk (Trunk 모드 : on(수동 모드), auto(대기 모드), desirable(동적 모드))

Port      Mode         Encapsulation  Status        Native vlan
Fa1/10    on           802.1q          trunking       1

Port      Vlans allowed on trunk
Fa1/10    1-1005 <- VLAN 1~1005까지 태깅이 가능하다.

Port      Vlans allowed and active in management domain
Fa1/10    1,11-13 <- 현재 VLAN 데이터베이스에 있는 VLAN 1, 11~13까지 태깅한다.

Port      Vlans in spanning tree forwarding state and not pruned
Fa1/10    1,11-13


4. 각각의 VLAN에 서브넷 할당

 - VLAN 11 : x.x.11.0/24
 - VLAN 12 : x.x.12.0/24
 - VLAN 13 : x.x.13.0/24


5. Inter-VLAN 구성

 - Inter-VLAN을 구성할때 라우터와 스위치간에 VLAN 개수만큼 Access를 하면, 확장성 문제
   가 발생되므로 트렁크로 구성한다.

SW1(config)# int fa1/9
SW1(config-if)# switchport trunk encapsulation dot1q
SW1(config-if)# switchport mode trunk

R3(config)# int fa0/0
R3(config-if)# no shutdown
R3(config-if)# int fa0/0.1 <- VLAN 11 게이트웨이
R3(config-subif)# encapsulation dot1q 11 <- VLAN 11 태깅 실시
R3(config-subif)# ip add x.x.11.254 255.255.255.0 <- VLAN 11 게이트웨이 주소
R3(config-subif)# int fa0/0.2
R3(config-subif)# encapsulation dot1q 12
R3(config-subif)# ip add x.x.12.254 255.255.255.0
R3(config-subif)# int fa0/0.3
R3(config-subif)# encapsulation dot1q 13
R3(config-subif)# ip add x.x.13.254 255.255.255.0

R3#show ip route connected
     13.0.0.0/24 is subnetted, 3 subnets
C       13.13.11.0 is directly connected, FastEthernet0/0.1
C       13.13.12.0 is directly connected, FastEthernet0/0.2
C       13.13.13.0 is directly connected, FastEthernet0/0.3


[참고] Dulpex MisMatch 해결

R3#
*Mar  1 01:49:43.307: %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet0/0 (not full duplex), with SW1 FastEthernet1/9 (full duplex).

R3(config)# int fa0/0
R3(config-if)# speed 100
R3(config-if)# duplex full

SW1(config)# int fa1/9
SW1(config-if)# speed 100
SW1(config-if)# duplex full


# Native VLAN

 - 스위치는 VLAN-ID가 태깅 되지 않은 Untag 프레임을 수신하면 Native VLAN으로
   소속시켜 처리한다. 이때, 기본적으로 Native VLAN은 VLAN 1이 수행한다.
   (Ex: 트렁크 포트로 일반 프레임을 수신한 경우)

 - Native VLAN 변경 : Switch(config-if)# switchport trunk native vlan 11

 - IEEE 802.1q : Untag 프레임을 수신하면 Native VLAN으로 처리한다.
 - Cisco ISL : Untag 프레임을 수신하면 드랍시킨다.


2008/05/31 15:43 2008/05/31 15:43

(go to top)